Re: Sound performance problems in FreeBSD

From: Suleiman Souhlal <ssouhlal_at_FreeBSD.org>
Date: Fri, 10 Sep 2004 09:31:23 -0400
Hi,

>   FYI, after a few IRC discussions with Markus, we've discovered that 
> turning off the memory part of Gnome's System Monitor applet, would 
> get rid of the skips. I believe the problem is that both sysctl and 
> the sound drivers are Giant-locked, and so there is some contention. 
> An easy way to reproduce these
> skips is to run `while true; do sysctl vm.vmtotal; done`, while 
> playing an mp3.

In case you are interested, we've confirmed that Giant contention is 
the problem: Applying the hack at 
http://people.freebsd.org/~ssouhlal/giantless-sysctl.diff , which 
removes Giant from sysctl, seems to stop the skips when running the 
above command. Of course, it doesn't prevent skips from happening 
during heavy file operation, which would probably require VFS locking 
(or of course, locking the sound drivers, which is probably easier), 
and maybe, a better disk scheduler.

--
Suleiman Souhlal     | ssouhlal_at_vt.edu
The FreeBSD Project  | ssouhlal_at_FreeBSD.org
Received on Fri Sep 10 2004 - 11:31:35 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:11 UTC