OS/2, eCS & ArcaOS - Technical > Storage

JFS - cache MIN and MAX buffer parameters

<< < (2/2)

Dave Yeo:
Could always look at the source. I see this comment in jfs_cachemgr.c,

--- Code: ---/*
 * try to keep free buffers availble:
 *
 * check if the free list needs replenishing from the cache
 * list. we'll replenish the free list if the number of cbufs
 * on the free list plus the number of cbufs being written to
 * disk for the purpose of replacement (i.e. heading for the
 * free list) is less than or equal to minfree.
 */
if (cachemgr.nfreecbufs + cachemgr.numiolru <= cachemgr.minfree)
{
        /* compute the number of cbufs to recycle from the cache
         * list to keep the number of cbufs on the freelist
         * or heading for the freelist to be maxfree.
         */
        nb = cachemgr.maxfree - cachemgr.nfreecbufs -
                                        cachemgr.numiolru;

--- End code ---

And more.
https://github.com/OS2World/DRV-JFS-GPL


Dariusz Piatkowski:
Dave!


--- Quote from: Dave Yeo on September 23, 2022, 10:07:56 pm ---Could always look at the source. I see this comment in jfs_cachemgr.c,...
--- End quote ---

CODE!!! My oh my, I'm gonna get me some of that...Thank you!!!

Navigation

[0] Message Index

[*] Previous page

Go to full version