mjg 99543c9107 cache: decrease ncnegfactor to 5
The current mechanism is bogus in several ways:
- the limit is a percentage of total entries added, which means negative
entries get evicted all the time even if there are plenty of resources
- evicting code is almost not concurrent, which makes it unable to
remove entries fast enough when doing something as simple as -j 104
buildworld
- there is no support for performing mass removal if necessary

Vast majority of negative entries never get any hits. Only evicting
them when the filesystem demands it results in a significant growth of
the namecache with almost no improvement in the hit ratio.

Sample result about afer 90 minutes of poudriere -j 104:

           current    no evict   % of the original
numneg     219737     2013157    916
numneghits 266711906  263544562  98 [1]

[1] this may look funny but there is a certain dose of variation to the
build

The number was chosen as something which mostly eliminates spurious
evictions during lighter workloads but still keeps the total at bay.

Sponsored by:	The FreeBSD Foundation
2019-09-27 19:14:03 +00:00
..
2019-09-27 18:43:36 +00:00
2019-09-27 18:43:36 +00:00
2019-09-27 18:43:36 +00:00
2019-09-26 15:41:10 +00:00
2019-09-27 18:43:36 +00:00
2019-09-27 19:14:03 +00:00
2019-08-25 17:13:00 +00:00
2019-09-27 18:43:36 +00:00
2019-09-27 18:43:36 +00:00
2019-09-27 18:43:36 +00:00
2019-09-27 18:43:36 +00:00
2019-09-27 18:43:36 +00:00
2019-02-04 21:28:25 +00:00
2019-09-27 18:43:36 +00:00