* Mel Gorman <mel@csn.ul.ie> wrote:Mel, does the patch below fix this bug for you? (Note: you will need to enable CONFIG_SCHEDSTATS=y too.) if yes, then Linus please pull this single fix from: git://git.kernel.org/pub/scm/linux/kernel/git/mingo/linux-2.6-sched.git | Ingo Molnar (1): | sched: fix profile=sleep | | sched_fair.c | 10 ++++++++++ | 1 file changed, 10 insertions(+) risk is low: the new code only runs with CONFIG_SCHEDSTATS=y (default:off) and profile=sleep (default:off), so it ought to be fairly safe to add at this point. (and we had very similar code in v2.6.22 anyway) Ingo -------------------------> Subject: sched: fix profile=sleep From: Ingo Molnar <mingo@elte.hu> fix sleep profiling - we lost this chunk in the CFS merge. Found-by: Mel Gorman <mel@csn.ul.ie> Signed-off-by: Ingo Molnar <mingo@elte.hu> --- kernel/sched_fair.c | 10 ++++++++++ 1 file changed, 10 insertions(+) Index: linux/kernel/sched_fair.c =================================================================== --- linux.orig/kernel/sched_fair.c +++ linux/kernel/sched_fair.c @@ -639,6 +639,16 @@ static void enqueue_sleeper(struct cfs_r se->block_start = 0; se->sum_sleep_runtime += delta; + + /* + * Blocking time is in units of nanosecs, so shift by 20 to + * get a milliseconds-range estimation of the amount of + * time that the task spent sleeping: + */ + if (unlikely(prof_on == SLEEP_PROFILING)) { + profile_hits(SLEEP_PROFILING, (void *)get_wchan(tsk), + delta >> 20); + } } #endif } -
| Glauber de Oliveira Costa | [PATCH 0/19] desc_struct integration |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| jmerkey | [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc4 released |
| Oliver Pinter | Re: x86: 4kstacks default |
git: | |
| Linus Torvalds | Re: VCS comparison table |
| Mark Junker | git on MacOSX and files with decomposed utf-8 file names |
| Junio C Hamano | Re: More precise tag following |
| Len Brown | fatal: unable to create '.git/index': File exists |
| Mayuresh Kathe | Re: What is our ultimate goal?? |
| Diana Eichert | Re: OpenBSD on decTOP? |
| Richard Stallman | Real men don't attack straw men |
| knitti | Re: HP Procurve or Soekris w. OpenBSD ? |
| Mark Lord | Re: 2.6.25-rc8: FTP transfer errors |
| Andi Kleen | [PATCH RFC] [1/9] Core module symbol namespaces code and intro. |
| Ritesh Kumar | SO_RCVBUF doesn't change receiver advertised window |
| Evgeniy Polyakov | Re: [BUG] New Kernel Bugs |
