linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [RFC][PATCH 0/2] Quicklist is slighly problematic.
@ 2008-08-20 11:05 KOSAKI Motohiro
  2008-08-20 11:07 ` [RFC][PATCH 1/2] Show quicklist at meminfo KOSAKI Motohiro
                   ` (3 more replies)
  0 siblings, 4 replies; 43+ messages in thread
From: KOSAKI Motohiro @ 2008-08-20 11:05 UTC (permalink / raw)
  To: LKML, linux-mm, Andrew Morton, Christoph Lameter
  Cc: kosaki.motohiro, tokunaga.keiich

Hi Cristoph,

Thank you for explain your quicklist plan at OLS.

So, I made summary to issue of quicklist.
if you have a bit time, Could you please read this mail and patches?
And, if possible, Could you please tell me your feeling?


--------------------------------------------------------------------

Now, Quicklist store some page in each CPU as cache.
(Each CPU has node_free_pages/16 pages)

and it is used for page table cache.
Then, exit() increase cache, the other hand fork() spent it.

So, if apache type (one parent and many child model) middleware run,
One CPU process fork(), Other CPU process the middleware work and exit().

At that time, One CPU don't have page table cache at all,
Others have maximum caches.

	QList_max = (#ofCPUs - 1) x Free / 16
	=> QList_max / (Free + QList_max) = (#ofCPUs - 1) / (16 + #ofCPUs - 1)

So, How much quicklist spent memory at maximum case?
That is #CPUs proposional because it is per CPU cache but cache amount calculation doesn't use #ofCPUs.

	Above calculation mean

	 Number of CPUs per node            2    4    8   16
	 ==============================  ====================
	 QList_max / (Free + QList_max)   5.8%  16%  30%  48%


Wow! Quicklist can spent about 50% memory at worst case.
More unfortunately, it doesn't have any cache shrinking mechanism.
So it cause some wrong thing.

1. End user misunderstand to memory leak happend.
	=> /proc/meminfo should display amount quicklist

2. It can cause OOM killer
	=> Amount of quicklists shouldn't be proposional to #ofCPUs.





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

^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2008-08-26 20:35 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-20 11:05 [RFC][PATCH 0/2] Quicklist is slighly problematic KOSAKI Motohiro
2008-08-20 11:07 ` [RFC][PATCH 1/2] Show quicklist at meminfo KOSAKI Motohiro
2008-08-20 18:35   ` Andrew Morton
2008-08-21  7:36     ` KOSAKI Motohiro
2008-08-22  1:05       ` KOSAKI Motohiro
2008-08-22  4:28         ` Andrew Morton
2008-08-22 13:23           ` Robin Holt
2008-08-22 13:56             ` Christoph Lameter
2008-08-23  8:24           ` KOSAKI Motohiro
2008-08-24  5:29             ` Andrew Morton
2008-08-20 11:08 ` [RFC][PATCH 2/2] quicklist shouldn't be proportional to # of CPUs KOSAKI Motohiro
2008-08-20 15:27   ` Christoph Lameter
2008-08-21  6:46   ` Andrew Morton
2008-08-21  7:13     ` David Miller, Andrew Morton
2008-08-21  7:18       ` KOSAKI Motohiro
2008-08-21  7:27       ` Andrew Morton
2008-08-21  7:31         ` KOSAKI Motohiro
2008-08-21  9:32         ` Peter Zijlstra
2008-08-21 10:04           ` KOSAKI Motohiro
2008-08-21 10:09             ` David Miller, KOSAKI Motohiro
2008-08-21 10:13               ` KOSAKI Motohiro
2008-08-21 10:26                 ` David Miller, KOSAKI Motohiro
2008-08-21 10:22             ` KOSAKI Motohiro
2008-08-21 12:02               ` KOSAKI Motohiro
2008-08-25 18:48             ` Mike Travis
2008-08-25 23:33               ` KOSAKI Motohiro
2008-08-26 20:35                 ` Mike Travis
2008-08-25 18:44           ` Mike Travis
2008-08-25 18:40       ` Mike Travis
2008-08-25 23:31         ` KOSAKI Motohiro
2008-08-20 14:10 ` [RFC][PATCH 0/2] Quicklist is slighly problematic Christoph Lameter
2008-08-20 14:49   ` KOSAKI Motohiro
2008-08-20 15:26     ` Christoph Lameter
2008-08-21  2:13   ` Robin Holt
2008-08-21  2:16     ` Robin Holt
2008-08-21  3:08     ` David Miller, Robin Holt
2008-08-21 13:10       ` Christoph Lameter
2008-08-20 18:31 ` Andrew Morton
2008-08-21  2:42   ` Robin Holt
2008-08-21 13:07     ` Christoph Lameter
2008-08-21 13:14       ` Robin Holt
2008-08-21 13:18         ` Christoph Lameter
2008-08-21 13:45           ` Robin Holt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox