LS3.0 scratches hard disk every second?

#1
Hi -

I've installed LS 3.0 on my Mac for development and notice that it accesses the hard disk every second. Even if I'm not browsing any web pages it does this. And it never seems to stop.

I've fiddled around with various log file settings, but nothing seems to help. Wondering if you have any ideas on what other setting it might be that is causing this to happen? Maybe some sort of cache setting perhaps?

It's only annoying because my mac is otherwise quiet :)

Thanks!
 

mistwang

LiteSpeed Staff
#2
LSWS writes to a status report file under /tmp/lshttpd every second, it might be caused by that.
On other OS, the file should be cached in memory and there is no real disk opteration. Maybe MacOS is special. :)
 
#5
Ram disk seems to be working! Here's a patch to lswsctrl (no checks for ensuring we're on osx though)...

42a43,49
>
> ram_disk=`/usr/bin/hdid -nomount ram://2048`
> /sbin/newfs_hfs $ram_disk
> /bin/rm -rf /tmp/lshttpd
> /bin/mkdir /tmp/lshttpd
> /sbin/mount -t hfs $ram_disk /tmp/lshttpd
>
53a61,62
> /sbin/umount /tmp/lshttpd
> /usr/bin/hdiutil detach $ram_disk
63a73,76
> sleep 1
> ram_disk=`/bin/df | /usr/bin/grep /tmp/lshttpd | /usr/bin/cut -f1 -d" "`
> /sbin/umount /tmp/lshttpd
> /usr/bin/hdiutil detach $ram_disk
 
Top