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 <[EMAIL PROTECTED]>
To: Charles Sprickman <[EMAIL PROTECTED]>
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. it seems to be
aggravated by the amount of different pc hardware available, which is why
the config option for sleep is definable.
-t
At 07:45 PM 4/14/2001 -0400, you wrote:
>How far can I go? The conf file says the recommended max is 1,024 and
>that setting it too high might cause skipping...
>
>Here's the result with 0 listeners and the sleep timer set to 999:
>
> PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
>25292 scserv 55 0 46860K 46340K RUN 1:09 93.58% 91.16% sc_serv
>
>The cpu usage goes down as more people connect. Odd.
>
>In the forums, there is a post about this, and the guy fixed it by using
>the freebsd 3.x version. Perhaps I'll try that? Or even the Linux
>version under emulation?
>
>It just seems odd that it should chew up all that processor (this is an
>otherwise idle PIII-800) doing nothing...
>
>Thanks,
>
>Charles
>
>| Charles Sprickman | Internet Channel
>| INCH System Administration Team | (212)243-5200
>| [EMAIL PROTECTED] | [EMAIL PROTECTED]
>
>On Sat, 14 Apr 2001, Tom Pepper wrote:
>
> > try increasing the sleep= value in the .conf file and let me know at
> > what point it seems to work for you.
> >
> > -t
> >
> > On Friday, April 13, 2001, at 11:31 PM, Charles Sprickman wrote:
> >
> > > Hi,
> > >
> > > We're checking this out on FreeBSD 4.2, and it seems to work OK, even as
> > > it chews up CPU.
> > >
> > > Currently, the server is idle, web interface still responding, etc:
> > >
> > > last pid: 19214; load averages: 1.04, 1.05, 1.01 up 50+12:28:15
> > > 02:27:23
> > > 25 processes: 2 running, 23 sleeping
> > > CPU states: 41.2% user, 0.0% nice, 57.2% system, 0.0% interrupt, 1.6%
> > > idle
> > > Mem: 411M Active, 151M Inact, 90M Wired, 44K Cache, 112M Buf, 353M Free
> > > Swap: 1024M Total, 1024M Free
> > >
> > > PID USERNAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
> > > 16822 scserv 53 0 6660K 6108K RUN 463:43 96.19% 96.19% sc_serv
> > > 43230 mysql 2 0 415M 400M poll 581:21 0.00% 0.00% mysqld
> > >
> > > Any idea why the high cpu usage? We've been playing with RealServer and
> > > outsourced WMA crap, and now we're trying shoutcast. Other than this,
> > > it
> > > looks good.
> > >
> > > Let me know if there's any information you'd like.
> > >
> > > Thanks,
> > >
> > > Charles
> > >
> > > | Charles Sprickman | Internet Channel
> > > | INCH System Administration Team | (212)243-5200
> > > | [EMAIL PROTECTED] | [EMAIL PROTECTED]
> > >
> >
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message