public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
[parent not found: <Pine.LNX.4.33.0112181508001.3410-100000@penguin.transmeta.com>]
* Re: Scheduler ( was: Just a second ) ...
@ 2001-12-18  5:59 V Ganesh
  0 siblings, 0 replies; 168+ messages in thread
From: V Ganesh @ 2001-12-18  5:59 UTC (permalink / raw)
  To: linux-kernel; +Cc: wli

In article <20011217205547.C821@holomorphy.com> you wrote:
: On Mon, Dec 17, 2001 at 08:27:18PM -0800, Linus Torvalds wrote:
:> The most likely cause is simply waking up after each sound interrupt: you
:> also have a _lot_ of time handling interrupts. Quite frankly, web surfing
:> and mp3 playing simply shouldn't use any noticeable amounts of CPU.

: I think we have a winner:
: /proc/interrupts
: ------------------------------------------------
:            CPU0
:   0:   17321824          XT-PIC  timer
:   1:          4          XT-PIC  keyboard
:   2:          0          XT-PIC  cascade
:   5:   46490271          XT-PIC  soundblaster
:   9:     400232          XT-PIC  usb-ohci, eth0, eth1
:  11:     939150          XT-PIC  aic7xxx, aic7xxx
:  14:         13          XT-PIC  ide0

: Approximately 4 times more often than the timer interrupt.
: That's not nice...

a bit offtopic, but the reason why there are so many interrupts is
that there's probably something like esd running. I've observed that idle
esd manages to generate tons of interrupts, although an strace of esd
reveals it stuck in a select(). probably one of the ioctls it issued
earlier is causing the driver to continuously read/write to the device.
the interrupts stop as soon as you kill esd.

: SoundBlaster 16
: A change of hardware should help verify this.

it happens even with cs4232 (redhat 7.2, 2.4.7-10smp), so I doubt it's
a soundblaster issue.

ganesh

^ permalink raw reply	[flat|nested] 168+ messages in thread
* Re: Scheduler ( was: Just a second ) ...
@ 2001-12-18  5:11 Thierry Forveille
  2001-12-17 21:41 ` John Heil
  2001-12-18 14:31 ` Alan Cox
  0 siblings, 2 replies; 168+ messages in thread
From: Thierry Forveille @ 2001-12-18  5:11 UTC (permalink / raw)
  To: linux-kernel

Linus Torvalds (torvalds@transmeta.com) writes
> On Mon, 17 Dec 2001, Rik van Riel wrote:
> >
> > Try readprofile some day, chances are schedule() is pretty
> > near the top of the list.
>
> Ehh.. Of course I do readprofile.
>  
> But did you ever compare readprofile output to _total_ cycles spent?
>
I have a feeling that this discussion got sidetracked: cpu cycles burnt 
in the scheduler indeed is non-issue, but big tasks being needlessly moved
around on SMPs is worth tackling.

^ permalink raw reply	[flat|nested] 168+ messages in thread
[parent not found: <20011217200946.D753@holomorphy.com>]
* Re: Just a second ...
@ 2001-12-16  0:13 Linus Torvalds
  2001-12-17 22:48 ` Scheduler ( was: Just a second ) Davide Libenzi
  0 siblings, 1 reply; 168+ messages in thread
From: Linus Torvalds @ 2001-12-16  0:13 UTC (permalink / raw)
  To: Davide Libenzi; +Cc: Kernel Mailing List


On Sat, 15 Dec 2001, Davide Libenzi wrote:
>
> when you find 10 secs free in your spare time i really would like to know
> the reason ( if any ) of your abstention from any schdeuler discussion.
> No hurry, just a few lines out of lkml.

I just don't find it very interesting. The scheduler is about 100 lines
out of however-many-million (3.8 at least count), and doesn't even impact
most normal performace very much.

We'll clearly do per-CPU runqueues or something some day. And that worries
me not one whit, compared to thigns like VM and block device layer ;)

I know a lot of people think schedulers are important, and the operating
system theory about them is overflowing - it's one of those things that
people can argue about forever, yet is conceptually simple enough that
people aren't afraid of it. I just personally never found it to be a major
issue.

Let's face it - the current scheduler has the same old basic structure
that it did almost 10 years ago, and yes, it's not optimal, but there
really aren't that many real-world loads where people really care. I'm
sorry, but it's true.

And you have to realize that there are not very many things that have
aged as well as the scheduler. Which is just another proof that scheduling
is easy.

We've rewritten the VM several times in the last ten years, and I expect
it will be changed several more times in the next few years. Withing five
years we'll almost certainly have to make the current three-level page
tables be four levels etc.

In comparison to those kinds of issues, I suspect that making the
scheduler use per-CPU queues together with some inter-CPU load balancing
logic is probably _trivial_. Patches already exist, and I don't feel that
people can screw up the few hundred lines too badly.

		Linus


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

end of thread, other threads:[~2001-12-27  9:49 UTC | newest]

Thread overview: 168+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20011218020456.A11541@redhat.com>
2001-12-18 16:50 ` Scheduler ( was: Just a second ) Linus Torvalds
2001-12-18 16:56   ` Rik van Riel
2001-12-18 17:18     ` Linus Torvalds
2001-12-18 19:04       ` Alan Cox
2001-12-18 21:02         ` Larry McVoy
2001-12-18 21:14           ` David S. Miller
2001-12-18 21:17             ` Larry McVoy
2001-12-18 21:19               ` Rik van Riel
2001-12-18 21:30               ` David S. Miller
2001-12-18 21:18           ` Rik van Riel
2001-12-19 17:44           ` IRC (was: Scheduler) Daniel Phillips
2001-12-19 17:51             ` Larry McVoy
2001-12-19 18:24               ` Daniel Phillips
2001-12-19 18:19             ` M. Edward (Ed) Borasky
2001-12-19 18:27               ` Daniel Phillips
2001-12-19 18:40               ` J Sloan
2001-12-19 16:50         ` Scheduler ( was: Just a second ) Daniel Phillips
     [not found]           ` <Pine.LNX.4.33.0112190859050.1872-100000@penguin.transmeta.com>
2001-12-19 18:57             ` aio Ben LaHaise
2001-12-19 19:29               ` aio Dan Kegel
2001-12-20  4:04                 ` aio Benjamin LaHaise
2001-12-19 20:09               ` aio Daniel Phillips
2001-12-19 20:21               ` aio Davide Libenzi
     [not found]               ` <mailman.1008792601.3391.linux-kernel2news@redhat.com>
2001-12-19 20:23                 ` aio Pete Zaitcev
2001-12-20  0:13               ` aio David S. Miller
2001-12-20  0:21                 ` aio Benjamin LaHaise
2001-12-20  0:36                   ` aio Andrew Morton
2001-12-20  0:55                     ` aio H. Peter Anvin
2001-12-20  0:47                   ` aio Davide Libenzi
2001-12-20  1:16                 ` aio Bill Huey
2001-12-20  1:20                   ` aio David S. Miller
2001-12-20  2:26                     ` aio Bill Huey
2001-12-20  2:45                       ` aio David S. Miller
2001-12-19 18:57                         ` aio John Heil
2001-12-20  3:06                           ` aio David S. Miller
2001-12-19 19:30                             ` aio John Heil
2001-12-20  5:29                               ` aio David S. Miller
2001-12-20  3:21                             ` aio Bill Huey
2001-12-27  9:36                               ` aio Martin Dalecki
2001-12-20  3:07                         ` aio Bill Huey
2001-12-20  3:13                           ` aio David S. Miller
2001-12-20  3:47                             ` aio Benjamin LaHaise
2001-12-20  5:39                               ` aio David S. Miller
2001-12-20  5:58                                 ` aio Benjamin LaHaise
2001-12-20  6:00                                   ` aio David S. Miller
2001-12-20  6:46                                     ` aio Mike Castle
2001-12-20  6:55                                       ` aio Robert Love
2001-12-20  7:13                                         ` aio Mike Castle
2001-12-20  7:01                                       ` aio David S. Miller
2001-12-20  7:27                                 ` aio Daniel Phillips
     [not found]                                 ` <Pine.LNX.4.33.0112201127400.2656-100000@localhost.localdomain>
2001-12-20 11:49                                   ` aio William Lee Irwin III
2001-12-20 16:32                                   ` aio Dan Kegel
2001-12-20 18:05                                     ` aio Davide Libenzi
2001-12-20 21:45                                   ` aio Lincoln Dale
2001-12-20 21:59                                     ` aio Linus Torvalds
2001-12-24 11:44                                       ` aio Gerold Jury
2001-12-20 23:02                                     ` aio Lincoln Dale
2001-12-21 17:24                               ` aio Alan Cox
2001-12-21 17:16                                 ` aio Benjamin LaHaise
2001-12-23  5:35                                   ` aio Bill Huey
2001-12-20 14:38                             ` aio Luigi Genoni
2001-12-20 17:26                             ` aio Henning Schmiedehausen
2001-12-20 20:04                               ` aio M. Edward (Ed) Borasky
2001-12-20 23:53                               ` aio David S. Miller
2001-12-21  0:28                                 ` Offtopic Java/C# [Re: aio] Bill Huey
     [not found]                         ` <mailman.1008817860.10606.linux-kernel2news@redhat.com>
2001-12-20  5:16                           ` aio Pete Zaitcev
2001-12-20 16:16                         ` aio Dan Kegel
2001-12-21 11:44                           ` aio Gerold Jury
2001-12-21 13:48                             ` aio Ingo Molnar
2001-12-21 15:27                               ` aio Gerold Jury
2001-12-24 11:08                                 ` aio Gerold Jury
2001-12-20 17:24                         ` aio Henning Schmiedehausen
2001-12-20  2:37                     ` aio Cameron Simpson
2001-12-20  2:47                       ` aio David S. Miller
2001-12-20  2:52                         ` aio Cameron Simpson
2001-12-20  2:58                           ` aio David S. Miller
2001-12-20  5:47                             ` aio Linus Torvalds
2001-12-20  5:57                               ` aio David S. Miller
2001-12-20  5:59                                 ` aio Benjamin LaHaise
2001-12-20  6:02                                   ` aio David S. Miller
2001-12-20  6:07                                     ` aio Benjamin LaHaise
2001-12-20  6:12                                       ` aio David S. Miller
2001-12-20  6:23                                         ` aio Linus Torvalds
2001-12-20 10:18                                           ` aio Ingo Molnar
2001-12-20 18:20                                             ` aio Robert Love
2001-12-20 22:30                                               ` aio Cameron Simpson
2001-12-20 22:46                                                 ` aio Benjamin LaHaise
2001-12-20  6:09                                     ` aio Linus Torvalds
2001-12-20 17:28                                       ` aio Suparna Bhattacharya
     [not found]                     ` <mailman.1008816001.10138.linux-kernel2news@redhat.com>
2001-12-20  5:07                       ` aio Pete Zaitcev
2001-12-20  5:10                         ` aio Cameron Simpson
2001-12-21 17:28                     ` aio Alan Cox
2001-12-23  5:46                       ` aio Bill Huey
2001-12-23  6:34                         ` aio Dan Kegel
2001-12-23 18:43                           ` aio Davide Libenzi
2001-12-26 20:42                         ` Java and Flam^H^H^H^H AIO (was: aio) Daniel Phillips
2001-12-18 19:11       ` Scheduler ( was: Just a second ) Mike Galbraith
2001-12-18 19:15       ` Rik van Riel
2001-12-18 22:32         ` in defense of the linux-kernel mailing list Ingo Molnar
2001-12-18 17:55   ` Scheduler ( was: Just a second ) Davide Libenzi
2001-12-18 19:43   ` Alexander Viro
     [not found] <Pine.LNX.4.33.0112181508001.3410-100000@penguin.transmeta.com>
2001-12-20  3:50 ` Rik van Riel
2001-12-20  4:04   ` Ryan Cumming
2001-12-20  5:39   ` David S. Miller
2001-12-20  5:58     ` Linus Torvalds
2001-12-20  6:01       ` David S. Miller
2001-12-20 22:40         ` Troels Walsted Hansen
2001-12-20 23:55           ` Chris Ricker
2001-12-20 23:59             ` CaT
2001-12-21  0:06             ` Davide Libenzi
2001-12-20 11:29     ` Rik van Riel
2001-12-20 11:34       ` David S. Miller
2001-12-20  5:52   ` Linus Torvalds
2001-12-18  5:59 V Ganesh
  -- strict thread matches above, loose matches on Subject: below --
2001-12-18  5:11 Thierry Forveille
2001-12-17 21:41 ` John Heil
2001-12-18 14:31 ` Alan Cox
     [not found] <20011217200946.D753@holomorphy.com>
2001-12-18  4:27 ` Linus Torvalds
2001-12-18  4:55   ` William Lee Irwin III
2001-12-18  6:09     ` Linus Torvalds
2001-12-18  6:34       ` Jeff Garzik
2001-12-18 12:23       ` Rik van Riel
2001-12-18 14:29       ` Alan Cox
2001-12-18 17:07         ` Linus Torvalds
2001-12-18 15:51       ` Martin Josefsson
2001-12-18 17:08         ` Linus Torvalds
2001-12-18 16:16       ` Roger Larsson
2001-12-18 17:16         ` Herman Oosthuysen
2001-12-18 17:16         ` Linus Torvalds
2001-12-18 17:21       ` David Mansfield
2001-12-18 17:27         ` Linus Torvalds
2001-12-18 17:54           ` Andreas Dilger
2001-12-18 18:27             ` Doug Ledford
2001-12-18 18:52               ` Andreas Dilger
2001-12-18 19:03                 ` Doug Ledford
2001-12-19  9:19               ` Peter Wächtler
2001-12-19 11:05               ` Helge Hafting
2001-12-21 20:23               ` Rob Landley
2001-12-18 18:35             ` Linus Torvalds
2001-12-18 18:58           ` Alan Cox
2001-12-18 19:31             ` Gerd Knorr
2001-12-18 18:25       ` William Lee Irwin III
2001-12-18 14:21     ` Adam Schrotenboer
2001-12-18 18:13   ` Davide Libenzi
2001-12-16  0:13 Just a second Linus Torvalds
2001-12-17 22:48 ` Scheduler ( was: Just a second ) Davide Libenzi
2001-12-17 22:53   ` Linus Torvalds
2001-12-17 23:15     ` Davide Libenzi
2001-12-17 23:18       ` Linus Torvalds
2001-12-17 23:39         ` Davide Libenzi
2001-12-17 23:52         ` Benjamin LaHaise
2001-12-18  1:11           ` Linus Torvalds
2001-12-18  1:46             ` H. Peter Anvin
2001-12-18  5:54             ` Benjamin LaHaise
2001-12-18  6:10               ` Linus Torvalds
2001-12-18  1:54     ` Rik van Riel
2001-12-18  2:35       ` Linus Torvalds
2001-12-18  2:51         ` David Lang
2001-12-18  3:08         ` Davide Libenzi
2001-12-18  3:19           ` Davide Libenzi
2001-12-18 14:09         ` Alan Cox
2001-12-18  9:12           ` John Heil
2001-12-18 15:34           ` degger
2001-12-18 18:35             ` Mike Kravetz
2001-12-18 18:48             ` Davide Libenzi
2001-12-18 16:50           ` Mike Kravetz
2001-12-18 17:22             ` Linus Torvalds
2001-12-18 17:50               ` Davide Libenzi
2001-12-18 17:00           ` Linus Torvalds
2001-12-18 19:17             ` Alan Cox

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