Skip to contentSkip to conversation

Swap Usage with Kernel 2.4.14

DISCUSSION war 4 participants 5 messages Nov 17, 2001

lore
Share & tools
lore

war

author
#0 lore raw

Regular usage on my box, launching netscape, opera, pan, xchat, gaim; the kernel eventually digs into swap.

However, the swap is never released?

Mem: 900596K av, 185896K used, 714700K free, 0K shrd, 4172K
buff
Swap: 2048276K av, 63728K used, 1984548K free 91176K
cached

Are there any settings I should have set or be aware of?

I current use 4GB support, 1GB of ram, 2GB of swap.

Having 1GB, I thought I had enough memory for basic operations without the disk swapping like mad.

#1 lore raw
Quoted 10 lines · war

Regular usage on my box, launching netscape, opera, pan, xchat, gaim; the kernel eventually digs into swap.

However, the swap is never released?

Mem: 900596K av, 185896K used, 714700K free, 0K shrd, 4172K
buff
Swap: 2048276K av, 63728K used, 1984548K free 91176K
cached

Quoted 6 lines

Are there any settings I should have set or be aware of?

I current use 4GB support, 1GB of ram, 2GB of swap.

Having 1GB, I thought I had enough memory for basic operations without the disk swapping like mad.

run top and change it to show the "swap" field. Now check to see which processes are in swap...

Does anyone know another way to get this information? I didn't find anything in ps that would help... :(

Mike

#2 lore raw
In reply to war
Quoted 10 lines · war

Regular usage on my box, launching netscape, opera, pan, xchat, gaim; the kernel eventually digs into swap.

However, the swap is never released?

Mem: 900596K av, 185896K used, 714700K free, 0K shrd, 4172K
buff
Swap: 2048276K av, 63728K used, 1984548K free 91176K
cached

Quoted 7 lines

Are there any settings I should have set or be aware of?

I current use 4GB support, 1GB of ram, 2GB of swap.

Having 1GB, I thought I had enough memory for basic operations without the disk swapping like mad.

AFAIK with 2.4.14 processes can be in memory and swap at the same time.

Quoted 5 lines

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#3 lore raw
In reply to war
Quoted 11 lines · Alvaro Lopes
Quoted 10 lines · war

Regular usage on my box, launching netscape, opera, pan, xchat, gaim; the kernel eventually digs into swap.

However, the swap is never released?

Mem: 900596K av, 185896K used, 714700K free, 0K shrd, 4172K
buff
Swap: 2048276K av, 63728K used, 1984548K free 91176K
cached

Quoted 9 lines
Quoted 6 lines

Are there any settings I should have set or be aware of?

I current use 4GB support, 1GB of ram, 2GB of swap.

Having 1GB, I thought I had enough memory for basic operations without the disk swapping like mad.

AFAIK with 2.4.14 processes can be in memory and swap at the same time.

look at swap cached in /proc/meminfo that will tell you what is
mirrored.
Also, your box may not be actually doing much swapping if any at all. vmstat will tell if you're actually doing any swapping at a given time. Allocation may carry over to swap, but it doesn't effect performance in any way in doing so. That's why looking at anything but vmstat really wont tell you much about what's actually being used in swap.

#4 lore raw
In reply to war
Quoted 5 lines · safemode

Also, your box may not be actually doing much swapping if any at all. vmstat will tell if you're actually doing any swapping at a given time. Allocation may carry over to swap, but it doesn't effect performance in any way in doing so. That's why looking at anything but vmstat really wont tell you much about what's actually being used in swap.

procinfo will also list the number of swap(in|out) since the last reboot...