RE: Greedy kswapd reclaim behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Is it expected that kswapd reclaims significantly more pages than the high
> watermark?

What zones(DMA, DMA32, Normal, etc.) do you have in the system? You can check
under /proc/zoneinfo.
Each zone has its own Kswapd  thread. Whenever a zone's free memory
is less than low watermark, Kswapd thread of that zone is woke up and it tries
to reclaim memory till the zone's high watermark is reached.   During reclaim,
pages are swapped out from the zone's lru lists and various caches in kernel.
only swap out from lru lists ensure that pages released belong to the zone,
which kswapd is running for.
Caches shrinking doesn't necessarily release the pages of a particular zone.
The memory reclaimed from caches can belong to other zones and the kswapd
doesn't sleep based on total free memory available.

You need to check the free memory available in the zone, which kswapd is running for.

-Krishna Reddy
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]