Trust No Program
This topic is locked: you cannot edit posts or make replies.
tzuk


Joined: 22 Jun 2004
Posts: 15004
Reply with quote
Earlier, I said,

tzuk wrote:
I might be able to introduce small delays when a lot of programs are created during a short period of time. But I should tell you, I am not considering this a top priority.


I tried this approach but I couldn't get it to work well in practice. Whatever value I used for "maximum of programs at once", it meant that this many programs at once can spawn multiple copies of themselves. The end result was always an unmanageable system.

The hard limit approach turns out to work much better, so version 3.45.01 introduces two new settings:

ProcessLimit1=100
ProcessLimit2=200

Once the sandbox has more than X programs at the same time, each new program will be delayed for ten seconds before it starts to run. (X is the number specified in ProcessLimit1.)

Once the sandbox has more than Y programs at the same time, each new program will be immediately terminated. (Y is the number specified in ProcessLimit2.)

The default numbers are 100 and 200 as mentioned above. ProcessLimit2 cannot be smaller than ProcessLimit1.

Creative values can turn off one or both modes. For example,

ProcessLimit2=999999

will effectively disable the termination feature. Whereas,

ProcessLimit1=50
ProcessLimit2=50

Will effectively disable the delaying feature.

_________________
tzuk
View user's profileSend private message
Ruhe


Joined: 03 Jul 2008
Posts: 803
Location: Germany
Reply with quote
tzuk wrote:
The default numbers are 100 and 200

So this whole feature is enabled by default?
View user's profileSend private message
tzuk


Joined: 22 Jun 2004
Posts: 15004
Reply with quote
Yes, with sufficiently large default values that it shouldn't interfere with your day-to-day use, and might actually be useful when you run across a program that spawns itselfs endlessly.
View user's profileSend private message
Buster


Joined: 06 Aug 2007
Posts: 2185
Reply with quote
tzuk wrote:
Creative values can turn off one or both modes. For example,
ProcessLimit2=999999
will effectively disable the termination feature. Whereas,
ProcessLimit1=50
ProcessLimit2=50
Will effectively disable the delaying feature.


Ok, this solve my doubts. Wink
View user's profileSend private message
Cisqo
Guest

Reply with quote
Thanks alot Tzuk! do you plan on extending the GUI to allow modification of these setting?
tzuk


Joined: 22 Jun 2004
Posts: 15004
Reply with quote
At some point, sure.
View user's profileSend private message
Set a limit to the number of sandboxed processes
You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 2 of 2  

Use the RSS feed to watch this topic for replies
  
  
 This topic is locked: you cannot edit posts or make replies.  

Sandboxie is Copyright © 2004-2012 by Sandboxie Holdings LLC.  All rights reserved.
Sandboxie.com | Contact Author
This site has been viewed 208,529,289 times since June 2004