Re: Possible memleak somewhere in 2.2.0?

Andrea Arcangeli (andrea@e-mind.com)
Wed, 27 Jan 1999 17:41:48 +0100 (CET)


On Wed, 27 Jan 1999, Mike A. Harris wrote:

> 1 root@red:/usr/src/linux-2.2.0/Documentation# m
> total: used: free: shared: buffers: cached:
> Mem: 65097728 63467520 1630208 18608128 2113536 12513280
> Swap: 41086976 24330240 16756736
> MemTotal: 63572 kB
> MemFree: 1592 kB
> MemShared: 18172 kB
> Buffers: 2064 kB
> Cached: 12220 kB
> SwapTotal: 40124 kB
> SwapFree: 16364 kB
>
>
> Do I sense a memleak here? My system has been up for maybe 8
> hours. I've done email in PINE, and browsed slashdot and a few
> other sites in netscape with KDE running. Normally my swap
> doesn't get touched barely at all.

Can you do a swapoff -a and then a swapon -a? The swap cache should be
garbage collected that way.

My ftp://e-mind.com/pub/linux/arca-tree/2.2.0_arca-6.gz avoid the orphaned
swap cache entried to stay alive when they can' be anymore useful (so you
don't need to swapoff -a to force them to go away). This has the advantage
of decreasing the fragmentation on the swap space.

Andrea Arcangeli

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