Loading ...
Sorry, an error occurred while loading the content.
 

disk resource limits - caution

Expand Messages
  • Stephen C. Grubb
    Ploticus, by default, sets a size limit via setrlimit(2), on the size of created files. The default size limit is 5 MB. This has turned out to be problematic
    Message 1 of 1 , Oct 8, 2002
      Ploticus, by default, sets a size limit via setrlimit(2), on the size of
      created files. The default size limit is 5 MB. This has turned out to be
      problematic and will be removed from the next release. CPU limits will
      remain.

      It turns out that the disk resource limits lead to some subtle problems,
      because the limit applies EVEN WHEN APPENDING!!!

      For example, when running as a CGI, if ploticus writes diagnostics to
      standard error, and the web server is capturing standard error and
      throwing it into a file somewhere, and this file eventually gets bigger
      than 5MB, ploticus will terminate with a resource limit exceeded error.
      This can even sometimes occur before ploticus is able to call setrlimit(2)
      to raise the limit.

      Source code users can remove the problem by modifying reslimits.c to look
      like this:

      if( type[0] == 'c' ) setrlimit( RLIMIT_CPU, rlp );
      /* else if( type[0] == 'f' ) setrlimit( RLIMIT_FSIZE, rlp ); */

      You can also raise the limit in your config file or in the script via proc
      settings, but as I mentioned this might not help in certain cases.

      -Steve


      Stephen C. Grubb scg@...
      Scientific Software Engineer, The Jackson Laboratory
      600 Main Street Bar Harbor, Maine 04609 USA
    Your message has been successfully submitted and would be delivered to recipients shortly.