Using linux terminal only. Make sure to include each of the files specified at t
ID: 3737766 • Letter: U
Question
Using linux terminal only. Make sure to include each of the files specified at the bottom in your submitting for a thumbs up.
free is a command that displays used and available memory in your systenm Read the man page of the free command Run the command free -w several times, running other programs in between, and store the results in a hle. Take note of the memory used, memory used for buffers, memory used for cache, and swap used Run ram-intensive programs, or enough instances of programs, that there are significant (noticeable) changes to the available memory, buffers, cache, and swap. Do this at least until you can see meaningful changes to swap Keep track of which programs you started between samples Choose five meaningful samples points. Keep them in chronological order. They do not have to be a sequence of 5 runs, but sample i should occur before sample j for all i ? j Draw a graph as follows: X-axis: Time (or sample number): Y-axis: memory use, use(i) Memory Úsed per unit time, (ii) Memory Buffered per unit time, (iii) Memory Cached per unit time, and (iiii) Swap Used per unit time. Note: Indicate for each of the five samples (Time on X-axis) the programs that you started and are still running when the sample is taken. This means to indicate all programs started between the two selected samples, not just the new instances of programs started between (j - 1 and j) Note: you may use the Y-axis on the left and right side for difference scales (Used/Available ram may be in the millions of bytes while swap may be in the thousands) Be sure to properly label your graph.Explanation / Answer
bash > mkdir ~/where/you/want/the/DDIR # make the DDIR bash > export DDIR=/where/you/made/the/DDIR # create a shell variable to store it bash > cd $DDIR # cd into that data dir bash > ls -l red+blue_all.txt -rw-r--r-- 1 hjm hjm 26213442 2008-09-10 16:49 red+blue_all.txt ^^^^^^^^
bash > ls -lh red+blue_all.txt # ^ -rw-r--r-- 1 hjm hjm 25M 2008-09-10 16:49 red+blue_all.txt # ^^^ (25 Megabytes)
bash > wc red+blue_all.txt 385239 1926195 26213442 red+blue_all.txt
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.