Performance tuning: Difference between revisions

No edit summary
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
 
Line 4: Line 4:


One good article on the subject is at http://www.ibm.com/developerworks/linux/library/l-linux-memory.html  They talk about using the "free" command to look at your memory.  Although you can add a <code>-s</code> switch to redo the command every so many seconds, this will just run output scrolling through your console, so the better option would be to use <code>free</code> in tandem with <code>watch</code> which has the added benefit of being capable of highlighting the differences for you.
One good article on the subject is at http://www.ibm.com/developerworks/linux/library/l-linux-memory.html  They talk about using the "free" command to look at your memory.  Although you can add a <code>-s</code> switch to redo the command every so many seconds, this will just run output scrolling through your console, so the better option would be to use <code>free</code> in tandem with <code>watch</code> which has the added benefit of being capable of highlighting the differences for you.
<source lang="bash">
<syntaxhighlight lang="bash">
# see how memory is being used (in Megabytes)
# see how memory is being used (in Megabytes)
# hit "Ctrl C" to cancel
# hit "Ctrl C" to cancel
watch -n 1 --differences free -m
watch -n 1 --differences free -m
</source>
</syntaxhighlight>


Amazon Web Services (AWS) points to [https://fasterdata.es.net/host-tuning/background/ this article on host tuning] as reference (; which is very lame in my opinion. Amazon should have a whole wiki dedicated to host tuning!)
Amazon Web Services (AWS) points to [https://fasterdata.es.net/host-tuning/background/ this article on host tuning] as reference (; which is very lame in my opinion. Amazon should have a whole wiki dedicated to host tuning!)