Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Apr 2001 23:57:41 +0100
From:      void <float@firedrake.org>
To:        Charles Sprickman <spork@inch.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Shoutcast, high cpu, threads
Message-ID:  <20010417235741.A11063@firedrake.org>
In-Reply-To: <Pine.BSF.4.30.0104170144020.696-100000@shell.inch.com>; from spork@inch.com on Tue, Apr 17, 2001 at 01:47:11AM -0400
References:  <Pine.BSF.4.30.0104170144020.696-100000@shell.inch.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 17, 2001 at 01:47:11AM -0400, Charles Sprickman wrote:
> Hi,
> 
> I'm running shoutcast on a 4.2R machine, and I'm finding that the
> shoutcast server, when idle climbs up to around 90% cpu usage.  Included
> is a bit of back-and-forth with a shoutcast support person.
> 
> I'm not too clear on what he's talking about, is there any information I
> can pass on to him to help debug this?  While I will take his suggestion
> on increasing the sleep time, I don't want to push it too far or I may end
> up with a "stuttering" server.
> 
> Thanks,
> 
> Charles
> 
> ---------- Forwarded message ----------
> Date: Mon, 16 Apr 2001 10:27:33 -0700
> From: Tom Pepper <tom@winamp.com>
> To: Charles Sprickman <spork@inch.com>
> Subject: Re: high cpu usage
> 
> keep going up.  your machine is fast enough that values as high as 10,000
> may show improvement.
> 
> you're seeing this problem because freebsd is the only o/s i know of that
> ignores sleep values with very small microsecond values.

The man pages say:

 sleep - suspend process execution for an interval measured in seconds
 usleep - suspend process execution for an interval measured in microseconds

Maybe he's using the wrong routine?

-- 
 Ben

"I told Paddy no, I told Steve no, I told Paul no, and Ben fell asleep."
                   --Kate C. (no, different Ben, I would have stayed up)

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010417235741.A11063>