MCPcopy Create free account
hub / github.com/F-Stack/f-stack / arc_set_limits

Function arc_set_limits

freebsd/contrib/openzfs/module/zfs/arc.c:7589–7597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7587}
7588
7589void
7590arc_set_limits(uint64_t allmem)
7591{
7592 /* Set min cache to 1/32 of all memory, or 32MB, whichever is more. */
7593 arc_c_min = MAX(allmem / 32, 2ULL << SPA_MAXBLOCKSHIFT);
7594
7595 /* How to set default max varies by platform. */
7596 arc_c_max = arc_default_max(arc_c_min, allmem);
7597}
7598void
7599arc_init(void)
7600{

Callers 2

arc_hotplug_callbackFunction · 0.85
arc_initFunction · 0.85

Calls 1

arc_default_maxFunction · 0.50

Tested by

no test coverage detected