DragonFly kernel List (threaded) for 2008-01
DragonFly BSD
DragonFly kernel List (threaded) for 2008-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: objcache depot not used?


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 28 Jan 2008 20:25:10 -0800 (PST)

    Oh, we probably want to change that calculation to free at least a few
    items to backing store, rather then cache to the limit.

	n = 0;
	if (cluster_limit > 0) {
		n = (cluster_limit - ncpus * 2 * mag_capacity) / mag_capacity;
		n >>= 1;	/* retain at most 50% of the limit */
				/* can be negative */
	}
	if (n < 2)		/* minimum, also handles unlimited case */
		n = 2;
	if (n > 10)		/* don't go overboard */
		n = 10;


						-Matt



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]