objcache depot not used?

Matthew Dillon dillon at apollo.backplane.com
Mon Jan 28 20:28:19 PST 2008


    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





More information about the Kernel mailing list