On Tue, 14 Aug 2007, Peter Zijlstra wrote:Clean file backed pages dominate memory on most boxes. They can be calculated by NR_FILE_PAGES - NR_FILE_DIRTY On my 2G system that is Cached: 1731480 kB Dirty: 424 kB So for most load the patch as is will fix your issues. The problem arises if you have extreme loads that are making the majority of pages anonymous. We could change min_free_kbytes to specify the number of free + clean pages required (if we can do atomic reclaim then we do not need it anymore). Then we can specify a large portion of memory for min_free_kbytes. 20%? That would give you 400M on my box which would certainly suffice. If the amount of clean file backed pages falls below that limit then do the usual reclaim. If we write anonymous pages out to swap then they can also become clean and reclaimable. -
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 002/196] Chinese: rephrase English introduction in HOWTO |
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
| Antonio Almeida | HTB accuracy for high speed |
| David Miller | [GIT]: Networking |
