Re: wrong SWAP values in top's output

From: Jan Knutar
Date: Sat Dec 17 2005 - 08:08:58 EST


On Friday 16 December 2005 11:08, you wrote:

> 463680 used swap

> PID %MEM VIRT SWAP RES CODE DATA SHR nFLT nDRT S PR NI %CPU COMMAND
> 18551 14.1 345m 273m 71m 1712 343m 101m 1373 0 S 5 -10 4.0 XFree86
> 25397 49.5 505m 255m 249m 164 505m 40m 3700 0 S 15 0 2.0 mozilla-bin
> 24759 0.5 236m 234m 2416 16 236m 54m 138 0 S 17 0 0.0 java_vm

Shared pages and similar?

Seens like top's "SWAP" column is simply VIRT-RES.

Let's not also forget that read-only executable code just gets discarded
from memory, and not pushed to swap. If needed again, it gets read back
in from the file.

Oh, it's supposedly also bad to renice X to -10 with recent kernels ;-)

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