On 08.03.2013 19:17, Alan Cox wrote:
On 03/08/2013 04:14, Andre Oppermann wrote:
Author: andre
Date: Fri Mar  8 10:14:58 2013
New Revision: 248031
URL: http://svnweb.freebsd.org/changeset/base/248031

Log:
   Move the auto-sizing of the callout array from init_param2() to
   kern_timeout_callwheel_alloc() where it is actually used.

   This is a mechanical move and no tuning parameters are changed.

   The pre-allocated callout array is only used for legacy timeout(9)
   calls and is only allocated and active on cpu0.  Eventually all
   remaining users of timeout(9) should switch to the callout_* API.


In the meantime, until all legacy timeout(9) users are updated, I think
that it would be wise to retain the comment that describes where the
magic number 18508 comes from.

A valid point.  Reintroduced in r248141.

I was investigating the current users of timeout() and couldn't find any
remaining direct relation to maxproc or maxfiles.

The use of timeout(9) is almost entirely limited to drivers in the CAM/SCSI
area to manage CCB's.  The highest number of outstanding transactions and
timers seems to be limited to around 256 per driver.  The majority of those
also seem to be rather easy and mostly mechanical callout_* conversion targets.
This is only a preliminary finding though, I didn't attempt to convert any of
those.

--
Andre

_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to