Fossil

Diff
Login

Differences From Artifact [782ca2e63e]:

To Artifact [99fb9a59df]:


344
345
346
347
348
349
350
351

352
353

354
355


356
357
358
359
360
361
362
344
345
346
347
348
349
350

351
352

353
354

355
356
357
358
359
360
361
362
363







-
+

-
+

-
+
+







systems that support the "getloadavg()" API.  Most modern Unix systems have
this interface, but Windows does not, so the feature will not work on Windows.
Note also that Linux implements "getloadavg()" by accessing the "/proc/loadavg"
file in the "proc" virtual filesystem.  If you are running a Fossil instance
inside a chroot() jail on Linux, you will need to make the "/proc" file
system available inside that jail in order for this feature to work.  On
the self-hosting Fossil repository, this was accomplished by adding a line
to the "/etc/mtab" or "/etc/fstab" file that looks like:
to the "/etc/fstab" file that looks like:
<blockquote><pre>
chroot_jail_proc /home/www/proc proc r 0 0
chroot_jail_proc /home/www/proc proc ro 0 0
</pre></blockquote>
Pathnames should be adjusted for individual systems, of course.
The /home/www/proc pathname should be adjusted so that the "/proc" component is
in the root of the chroot jail, of course.
<p>
To see if the load-average limiter is functional, visit the [/test_env] page
of the server to view the current load average.  If the value for the load
average is greater than zero, that means that it is possible to activate
the load-average limiter on that repository.  If the load average shows
exactly "0.0", then that means that Fossil is unable to find the load average
(either because it is in a chroot() jail without /proc access, or because