Re: [mod_python] Sessions performance and some numbers
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > Apache Mod-Python > Re: [mod_python] Sessions performance and some numbers




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: [mod_python] Sessions performance and some numbers  
dharana


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-09-05 12:45 PM



Barry Pearce wrote:
>
> Right but both flock (which is not used by the example above) and
> sempahores etc have serious imlpications for the operating system when
> you start looking at 10000 of them. Semaphores typically dont get
> cleaned up when the process dies - bad news - you have used o/s
> resource. file locks do. However, if you use a .lck file then
> technically you can support a million concurrently. By the time your
> system using flock/semaphores gets that far you have probably run out of
> memory on your server - so now I would be concerned about how long a
> session remained 'locked' for - otherwise it is easy to produce a DoS
> attack by simply starting up a large number of sessions in whatever the
> timeframe is...
>

One small question, as I don't think I understand this completely. In
the case of FileSession semaphores become used only with the lock calls
enabled, not without them, right? And in the worst case, if the locks
where there they would create a semaphore per session until the cleanup
function gets called and deletes them? Does it works likes this?







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 08:55 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register