mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Suggested code change : Simple : Scale pdflush threads from desktop to server
@ 2009-07-11  1:25 Mitchell Erblich
  2009-07-11  1:48 ` Mitchell Erblich
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Mitchell Erblich @ 2009-07-11  1:25 UTC (permalink / raw)
  To: linux-kernel

Group,

		pdflush threads clean dirty pages

	  Under the past simple assumption that a greater number of
	  page daemon threads will have the TENDENCY to clean
	  the pages faster.

	Another assumption is that a server will have at least 2x / 4x the
	number of drives and memory, so allocating more pdflush() threads
	makes sense.

	Relying on a recent change, code base on whether the system is
	a desktop or a server, scale the number of pdthreads() which would
	result in the below code change.

	The suggestion is to double the MIN number of threads and set the
	MAX number to 4x.

	./mm/pdflush.c
	/* Scale for a server */
	#define MIN_PDFLUSH_THREADS 	4		/* 2x desktop value */
	#define MAX_PDFLUSH_THREADS 	32		/* 4x desktop value */


	/*
	 * secondary suggestion is to add a DEBUG type /var/log/system  
messages that
	 * will rate limit independent of desktop or server.
          */

	else if (nr_pdflush_threads == MAX_PDFLUSH_THREADS) {
		   /* optional PDFLUSH msg */
		   if (printk_ratelimit() {
	 		                            printk(KERN_INFO "MAX_PDFLUSH_THREADS  
Limited\n");
                    }
          }
	

	

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

end of thread, other threads:[~2009-07-11 13:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-11  1:25 Suggested code change : Simple : Scale pdflush threads from desktop to server Mitchell Erblich
2009-07-11  1:48 ` Mitchell Erblich
2009-07-11  8:16 ` Chris Snook
2009-07-11  9:54   ` Mitchell Erblich
2009-07-11 13:42 ` Peter Zijlstra

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

Powered by JetHome