All of lore.kernel.org
 help / color / mirror / Atom feed
* 2.6.8-rc2-mm2, staircase sched and ESD
@ 2004-08-04 21:44 Zan Lynx
  2004-08-04 22:31 ` Con Kolivas
  0 siblings, 1 reply; 4+ messages in thread
From: Zan Lynx @ 2004-08-04 21:44 UTC (permalink / raw)
  To: LKML

[-- Attachment #1: Type: text/plain, Size: 723 bytes --]

The 2.6.8-rc2-mm2 kernel has the staircase scheduler, right?  Well, I am
seeing an odd thing.  At least, I think it is odd.

I'm running Fedora Core 2 and playing music with Rhythmbox.  When I
watch top sorted by priority, I see esd slowly increase its priority
until it reaches 38, then it goes back to 20.  ESD is only using 1-2%
CPU.

This is causing a problem because doing just about anything in X, like
bring up a new window or drag a window causes the sound to just stop.

Why does ESD's priority keep climbing?

Oh yes, this does not happen if I change /proc/sys/fs/interactive to 0. 
When it is 0, X's priority climbs faster than ESDs and does not cause
the problem.
-- 
Zan Lynx <zlynx@acm.org>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: 2.6.8-rc2-mm2, staircase sched and ESD
  2004-08-04 21:44 2.6.8-rc2-mm2, staircase sched and ESD Zan Lynx
@ 2004-08-04 22:31 ` Con Kolivas
  2004-08-05  1:42   ` Nick Piggin
  2004-08-10 21:08   ` Martin Schlemmer
  0 siblings, 2 replies; 4+ messages in thread
From: Con Kolivas @ 2004-08-04 22:31 UTC (permalink / raw)
  To: Zan Lynx; +Cc: LKML

Zan Lynx writes:

> The 2.6.8-rc2-mm2 kernel has the staircase scheduler, right?  Well, I am
> seeing an odd thing.  At least, I think it is odd.
> 
> I'm running Fedora Core 2 and playing music with Rhythmbox.  When I
> watch top sorted by priority, I see esd slowly increase its priority
> until it reaches 38, then it goes back to 20.  ESD is only using 1-2%
> CPU.
> 
> This is causing a problem because doing just about anything in X, like
> bring up a new window or drag a window causes the sound to just stop.
> 
> Why does ESD's priority keep climbing?
> 
> Oh yes, this does not happen if I change /proc/sys/fs/interactive to 0. 
> When it is 0, X's priority climbs faster than ESDs and does not cause
> the problem.

Yes this is a known issue with esd. It basically wakes up far too frequently 
for it's own good. esd should not be required with alsa drivers and 
2.6 since alsa supports sharing of the sound card / mixing on it's own so 
adding esd adds an unnecessary layer to the sound drivers. It ends 
up doing this:
esd->oss emulation->alsa.

Cheers,
Con


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

* Re: 2.6.8-rc2-mm2, staircase sched and ESD
  2004-08-04 22:31 ` Con Kolivas
@ 2004-08-05  1:42   ` Nick Piggin
  2004-08-10 21:08   ` Martin Schlemmer
  1 sibling, 0 replies; 4+ messages in thread
From: Nick Piggin @ 2004-08-05  1:42 UTC (permalink / raw)
  To: Con Kolivas; +Cc: Zan Lynx, LKML

Con Kolivas wrote:

> Zan Lynx writes:
>
>> The 2.6.8-rc2-mm2 kernel has the staircase scheduler, right?  Well, I am
>> seeing an odd thing.  At least, I think it is odd.
>>
>> I'm running Fedora Core 2 and playing music with Rhythmbox.  When I
>> watch top sorted by priority, I see esd slowly increase its priority
>> until it reaches 38, then it goes back to 20.  ESD is only using 1-2%
>> CPU.
>>
>> This is causing a problem because doing just about anything in X, like
>> bring up a new window or drag a window causes the sound to just stop.
>>
>> Why does ESD's priority keep climbing?
>>
>> Oh yes, this does not happen if I change /proc/sys/fs/interactive to 
>> 0. When it is 0, X's priority climbs faster than ESDs and does not cause
>> the problem.
>
>
> Yes this is a known issue with esd. It basically wakes up far too 
> frequently for it's own good. esd should not be required with alsa 
> drivers and 2.6 since alsa supports sharing of the sound card / mixing 
> on it's own so adding esd adds an unnecessary layer to the sound 
> drivers. It ends up doing this:
> esd->oss emulation->alsa.
>

Even so, this would be a showstopper if we're talking about replacing 
the 2.6 scheduler,
wouldn't you agree?


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

* Re: 2.6.8-rc2-mm2, staircase sched and ESD
  2004-08-04 22:31 ` Con Kolivas
  2004-08-05  1:42   ` Nick Piggin
@ 2004-08-10 21:08   ` Martin Schlemmer
  1 sibling, 0 replies; 4+ messages in thread
From: Martin Schlemmer @ 2004-08-10 21:08 UTC (permalink / raw)
  To: Con Kolivas; +Cc: Zan Lynx, LKML

[-- Attachment #1: Type: text/plain, Size: 2148 bytes --]

On Thu, 2004-08-05 at 00:31, Con Kolivas wrote:
> Zan Lynx writes:
> 
> > The 2.6.8-rc2-mm2 kernel has the staircase scheduler, right?  Well, I am
> > seeing an odd thing.  At least, I think it is odd.
> > 
> > I'm running Fedora Core 2 and playing music with Rhythmbox.  When I
> > watch top sorted by priority, I see esd slowly increase its priority
> > until it reaches 38, then it goes back to 20.  ESD is only using 1-2%
> > CPU.
> > 
> > This is causing a problem because doing just about anything in X, like
> > bring up a new window or drag a window causes the sound to just stop.
> > 
> > Why does ESD's priority keep climbing?
> > 
> > Oh yes, this does not happen if I change /proc/sys/fs/interactive to 0. 
> > When it is 0, X's priority climbs faster than ESDs and does not cause
> > the problem.
> 
> Yes this is a known issue with esd. It basically wakes up far too frequently 
> for it's own good. esd should not be required with alsa drivers and 
> 2.6 since alsa supports sharing of the sound card / mixing on it's own so 
> adding esd adds an unnecessary layer to the sound drivers. It ends 
> up doing this:
> esd->oss emulation->alsa.
> 

This is not entirely true - or at least not on a more modern
distro that uses alsa:

---
nosferatu root # lsof | grep esd | grep /dev
esd        8886  azarah  mem    CHR     116,16                6226 /dev/snd/pcmC0D0p
esd        8886  azarah    0r   CHR        1,3                 756 /dev/null
esd        8886  azarah    1u   CHR        4,4                1193 /dev/vc/4
esd        8886  azarah    2u   CHR        4,4                1193 /dev/vc/4
esd        8886  azarah   29u   CHR     116,16                6226 /dev/snd/pcmC0D0p
esd        8886  azarah   30r   CHR     116,33                6058 /dev/snd/timer
esd       16748  azarah  mem    CHR     116,16                6226 /dev/snd/pcmC0D0p
esd       16748  azarah   29u   CHR     116,16                6226 /dev/snd/pcmC0D0p
nosferatu root # ldd `which esd` | grep asound
        libasound.so.2 => /usr/lib/libasound.so.2 (0x41b0d000)
nosferatu root #
---

-- 
Martin Schlemmer

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2004-08-10 22:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-04 21:44 2.6.8-rc2-mm2, staircase sched and ESD Zan Lynx
2004-08-04 22:31 ` Con Kolivas
2004-08-05  1:42   ` Nick Piggin
2004-08-10 21:08   ` Martin Schlemmer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.