diff options
author | ed <ed@FreeBSD.org> | 2009-02-04 17:10:01 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2009-02-04 17:10:01 +0000 |
commit | 35bb1e1a7394c8e17b5671bed4ae695d81e1abab (patch) | |
tree | 02bce5bd0f5b0135bc3882bc0901e6ffd56641a4 /etc | |
parent | 5af7ae8eacea1f123d5f1dfce499fa0a528f2815 (diff) | |
download | FreeBSD-src-35bb1e1a7394c8e17b5671bed4ae695d81e1abab.zip FreeBSD-src-35bb1e1a7394c8e17b5671bed4ae695d81e1abab.tar.gz |
Remove slush space from clists.
Right now we only have a very small amount of drivers that use clists,
but we still allocate 50 cblocks as slush space, which allows drivers to
temporarily overcommit their storage. Most of the drivers don't allow
this anyway.
I've performed the following changes:
- We don't allocate any cblocks on startup.
- I've removed the DDB command, because it has nothing useful to print
now. You can obtain the amount of allocated blocks by running `vmstat
-m | grep clist'.
- I've removed cfreecount, which is now unused.
- The old code first tries to allocate using M_NOWAIT, followed by
M_WAITOK. This doesn't make any sense, so just remove this logic. It
seems the drivers allow us to sleep anyway.
We can even remove ccmax from clist_alloc_cblocks and c_cbmax from
struct clist, but this breaks binary compatibility.
This reduces the amount of allocated cblocks on my system from 54 to 4.
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions