Thread: Swapping
View Single Post
  #9  
Old 10-16-2007, 06:45 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Originally Posted by Giorgi View Post
1. I thought that error I posted was caused because that I dont had enough space on tmp partition... is not that right?
No, when buffer memory was used up in the middle of a request, this error will occur. LSWS cannot switch from buffer memory to swap memory in the middle of a request. Some area can be improved in the future.

Quote:
2. and I have 3gb RAM, why litespeed wont use it at first place and then start to swap to tmp?
If LSWS uses all 3gb RAM for the buffer, the server will become extremely slow. So, there is a configurable limit. once the limit is hit, it will start swap to tmp for new requests.

I think we will avoid buffer large request body in the buffer memory, instead, it will go straight to the tmp swap.

Even when swap is used, it is more likely that the swap file is cached in the memory, so the performance hit is minimum, and the OS kernel has more freedom to use system memory efficiently.
Reply With Quote