On 12/15/2012 11:16 PM, hito kiri wrote:
> I figured that the swap usage was a problem because even while my
> computer is idle I can hear the hard drive working, which it never
> seemed to do until the swap usage grew.
you may have a problem, but i do not think the problem is “continuous
growth of swap usage” because (as others have said) your memory/swap
usage looks normal for Linux…by that i mean that Windows and Linux
use memory/swap in totally different ways, and if you watch Linux and
measure it using Windows standards it will scare you, have a read here
http://www.linuxatemyram.com/
but, you may have a problem! it would be good to learn what is hitting
your hard drive while the system is ‘idle’?
first: it is nearly impossible to hear any activity going on in hard
drives made in the last few years…some are absolutely silent, other
almost so…so, are you sure it is a hard drive sound you are
hearing? do you have an LED which lights to show disk activity? watch it
and if you see it blink without that sound, or you hear that sound
without the light blinking then you are not hearing the hard drive…
could you be hearing a CPU/GPU/case or power supply cooling fan?? or
maybe a chicken bone rattling around??
if it for sure is the disk being hit it would be good to learn by what!
but what is idle? i’d say start by turning off browser, email client,
IRC client, music application, torrent…every application you have
started…
then watch the LED and listen for the sound…how often is the drive
being hit? how many times per minute? and/or how many seconds between
each sound?
then, open one terminal and start top…wait a minute for all activity
to smooth out and then watch the drive LED while listening for the
sound: each time you see the LED blink AS you hear the sound then look
to Top to tell what is happening…
Top lags a little bit because it show you a “snap shot” of what is
happening each few seconds…so when you see the LED blink AND hear the
sound look immediately look at top and see what is on top…but, THEN
the important thing is what does it change to immediately after the sound.
for several minutes watch the LED, listen and note what jumps to the top
of top immediately after each sound…
if i do that here i will see a series of different processes jump to the
top of top, like: Xorg, konsole, top, Xorg, plasma-desktop, Xorg, kde4,
and those just kinda bounce in and out of being somewhere in the top
five…each using zero or 1 percent of CPU and everything else using
zero CPU…
all the while (here) about 880 MB of 1 GB of RAM and about 260 MB of 2
GB of swap is used…those figures bounce around a little, but not much
and if i watch for hours (without moving the mouse or touching the
keyboard) the used swap will not climb enough to mention…
what do you see and hear during an experiment like that?
–
dd http://tinyurl.com/DD-Caveat