PDA

View Full Version : slim.exe memory usage



Tony Jones
2004-12-19, 11:03
I just got the Squeezebox and it's working great except within 10 hours I exceeded available virtual
memory and the system had to bump the paging file. I have 384mb RAM with same sized paging
file.

Searching on gmame I can't see much on this other than "do you have shortcuts/links in your
music library".

I did a Windows "Search for Files/Folders" looking for *.lnk on my E: drive (library is E:/Music)
and it came back with nothing.

I killed SlimServer.exe.

But in the task manager I still have:
slim.exe 1:00:56 cpu 57,380k mem-usage 532,006 ior 9,115 iow

When I try to kill slim.exe I get "access denied".

I did a 100% standard install of 5.4.0 on Win2000 SP2

Have 6000 files in E:/Music.

Search and browse were working (from the Squeezebox) after I installed so I assume the db
was built.

I recall checking the memory usage the first time and it seemed reasonable but I may have
been looking at the memusage of SlimServer.exe.

After this I added a couple more CDs to the library and did the rescan via the SlimServer
interface (is there any way to just incrementally add to the db without rescanning everything?).

I started this last rescan about 12 hours ago. I'm assuming this was the cause of the bloated
slim.exe. But no clue on why it can't be killed. I have administrator rights.

Appreciate any advice. I did some searching for "access denied" on gmame and couldn't
find anything, apologies if something here is a FAQ.

Tony

Philip Meyer
2004-12-19, 11:49
>When I try to kill slim.exe I get "access denied".
>
I assume this because you have installed SlimServer as a service. It runs as a different user, so you might not be able to kill the process. You shouldn't be trying to kill it. Instead go to control panel administrative tools -> services, find slimserver in the list, and stop it from there.

Phil

Tony Jones
2004-12-19, 13:51
Ah makes total sense. I just did a standard install, don't recall being prompted for it to run as a
service. Didn't even think about this, wow, it's been a long time since I did Windows development :)

So when the task is created task manager shows it's initial footprint is 5M, rapidly grows in
size. By the time it finally tells the SCM it's up and running it's back upto 50M :-(

Is this normal? This rivals Firefox for bloat.
Oh well, I just upped my pagefile size to 2xRAM.

Thanks for the reply Philip.

Tony

"Philip Meyer" <slim (AT) hergest (DOT) demon.co.uk> wrote in message
news:85jbs0tcfn3h5i7mp8ovs1j7oe5bnu54ie (AT) 4ax (DOT) com...
> >When I try to kill slim.exe I get "access denied".
> >
> I assume this because you have installed SlimServer as a service. It runs as a different user, so you might not be able to kill
the process. You shouldn't be trying to kill it. Instead go to control panel administrative tools -> services, find slimserver in
the list, and stop it from there.
>
> Phil

Jack Coates
2004-12-19, 14:09
Tony Jones wrote:
> Ah makes total sense. I just did a standard install, don't recall being prompted for it to run as a
> service. Didn't even think about this, wow, it's been a long time since I did Windows development :)
>
> So when the task is created task manager shows it's initial footprint is 5M, rapidly grows in
> size. By the time it finally tells the SCM it's up and running it's back upto 50M :-(
>
> Is this normal? This rivals Firefox for bloat.
> Oh well, I just upped my pagefile size to 2xRAM.
>
> Thanks for the reply Philip.
>
> Tony
>

There's an active push to move from in-memory hashes to a SQL database,
but at this time the song information is stored in memory and takes a
chunk of RAM. The memory usage you're seeing is in-line with expected
results -- here's just shy of 7000 songs on my server:

[jack@felix jack]$ grep VmSize /proc/`pidof slimserver`/status
VmSize: 61396 kB

The growth of RAM becomes non-linear at some point, there are people
with 20K and 30K tracks who are sad with the current performance.

If you want to try out the SQL code, it's in CVS and was just announced
to have hit "kinda usable" status... I don't think it will actually
reduce memory usage or improve performance at this point though, it's
more a matter of getting the architecture in place to do so. Wiser minds
than mine may have more to say on this front :)
--
Jack at Monkeynoodle dot Org: It's a Scientific Venture...
Riding the Emergency Third Rail Power Trip since 1996!