LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > LS3.0 scratches hard disk every second?

Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2007, 09:11 AM
phallstrom phallstrom is offline
Member
 
Join Date: Jan 2007
Posts: 28
Default LS3.0 scratches hard disk every second?

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!
Reply With Quote
  #2  
Old 03-20-2007, 09:59 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
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.
Reply With Quote
  #3  
Old 03-20-2007, 10:45 AM
phallstrom phallstrom is offline
Member
 
Join Date: Jan 2007
Posts: 28
I bet that is it.

Anyway to tell it not to do that or is that a necessary requirement?
Reply With Quote
  #4  
Old 03-20-2007, 05:17 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
No way to stop it at this moment, one possible solution is to mount a RAM disk at /tmp/lshttpd/ .
Reply With Quote
  #5  
Old 03-21-2007, 08:43 AM
phallstrom phallstrom is offline
Member
 
Join Date: Jan 2007
Posts: 28
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:36 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.