linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Miklos Szeredi <miklos@szeredi.hu>
To: mingo@elte.hu
Cc: jdike@addtoit.com, user-mode-linux-devel@lists.sourceforge.net,
	linux-kernel@vger.kernel.org
Subject: Re: scheduling anomaly on uml (was: -rt doesn't compile for UML)
Date: Thu, 29 Nov 2007 17:07:23 +0100	[thread overview]
Message-ID: <E1Ixlv9-0001rb-U7@dorka.pomaz.szeredi.hu> (raw)
In-Reply-To: <20071129105744.GI10577@elte.hu> (message from Ingo Molnar on Thu, 29 Nov 2007 11:57:44 +0100)

> > I can't say I'm understading these traces very well, but here's a 
> > snippet that looks a bit strange.  I'm running 'while true; do date; 
> > done' in parallel with the dd.
> > 
> > For some time it is doing 100% CPU as expected, then it goes into a 
> > second or so of mosty idle (afaics), and then returns to the normal 
> > pattern again.
> 
> try:
> 
>   echo 1 > /proc/sys/kernel/stackframe_tracing
> 
> to get symbolic stack backdumps for the wakeup points, and add 
> trace_special_sym() calls to generate extra stackdump entries at 
> arbitrary places. schedule() does not have it right now - it might make 
> sense to add it.

OK, this helped.

It looks like the delays are caused by the page allocator, and not
UML.  Which is good news, because I'm supposed to understand memory
management better than scheduling.

Thanks,
Miklos



    bash-504   0.... 6312803us!: schedule <kswapd0-33> (-5 0)
    bash-504   0.... 6313820us : userspace()<-fork_handler()<-<2f0a3670>()<-(    0)()
    bash-504   0.... 6313821us+: (    0)()<-(    0)()<-(    0)()<-(    0)()
    date-5726  0.... 6315334us+: pipe_read()<-do_sync_read()<-vfs_read()<-sys_read()
    date-5726  0.... 6315336us : handle_syscall()<-handle_trap()<-userspace()<-fork_handler()
    bash-504   0.... 6315340us!: schedule <date-5726> (0 0)
    bash-504   0.... 6315731us+: io_schedule_timeout()<-congestion_wait()<-throttle_vm_writeout()<-shrink_zone()
    bash-504   0.... 6315733us : shrink_zones()<-try_to_free_pages()<-__alloc_pages()<-do_wp_page()
  <idle>-0     0.... 6315738us!: schedule <bash-504> (0 20)
  <idle>-0     0.Nh. 6476223us+: __trace_start_sched_wakeup <bash-504> (120 -1)
  <idle>-0     0.Nh. 6476228us+: __trace_start_sched_wakeup <kswapd0-33> (115 -1)
  <idle>-0     0.Nh. 6476232us+: __trace_start_sched_wakeup <dd-5155> (120 -1)
  <idle>-0     0.... 6476256us+: cpu_idle()<-rest_init()<-start_kernel()<-start_kernel_proc()

  parent reply	other threads:[~2007-11-29 16:07 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-28 12:47 -rt doesn't compile for UML Miklos Szeredi
2007-11-28 12:50 ` Ingo Molnar
2007-11-28 13:09   ` Miklos Szeredi
2007-11-28 13:15     ` Ingo Molnar
2007-11-28 13:15       ` Ingo Molnar
2007-11-28 13:24         ` Miklos Szeredi
2007-11-28 15:08     ` Jeff Dike
2007-11-28 15:38       ` Miklos Szeredi
2007-11-28 15:41         ` Ingo Molnar
2007-11-28 16:00           ` Miklos Szeredi
2007-11-28 16:05             ` Ingo Molnar
2007-11-28 16:57               ` Miklos Szeredi
2007-11-28 17:02                 ` Ingo Molnar
2007-11-28 17:02                 ` Miklos Szeredi
2007-11-28 17:24                   ` Ingo Molnar
2007-11-28 17:25                   ` Miklos Szeredi
2007-11-28 17:38         ` Jeff Dike
2007-11-28 15:06 ` Jeff Dike
2007-11-28 15:35   ` Miklos Szeredi
2007-11-28 18:29     ` Jeff Dike
2007-11-28 18:37       ` Ingo Molnar
2007-11-28 18:46       ` Miklos Szeredi
2007-11-29 10:19         ` scheduling anomaly on uml (was: -rt doesn't compile for UML) Miklos Szeredi
2007-11-29 10:57           ` Ingo Molnar
2007-11-29 11:36             ` Miklos Szeredi
2007-11-29 11:50               ` Ingo Molnar
2007-11-29 16:07             ` Miklos Szeredi [this message]
2007-11-29 16:25               ` Ingo Molnar
2007-11-29 18:05                 ` Miklos Szeredi
2007-11-29 19:26                   ` Ingo Molnar
2007-11-29 17:02           ` Jeff Dike
2007-11-29 17:16             ` Ingo Molnar
2007-11-29 17:58               ` Miklos Szeredi
2007-11-30 19:44             ` Miklos Szeredi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1Ixlv9-0001rb-U7@dorka.pomaz.szeredi.hu \
    --to=miklos@szeredi.hu \
    --cc=jdike@addtoit.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).