Changeset View
Changeset View
Standalone View
Standalone View
share/man/man9/zone.9
Context not available. | |||||
.Nm uma_zone_set_max, | .Nm uma_zone_set_max, | ||||
.Nm uma_zone_get_max, | .Nm uma_zone_get_max, | ||||
.Nm uma_zone_get_cur, | .Nm uma_zone_get_cur, | ||||
.Nm uma_zone_set_warning | .Nm uma_zone_set_warning, | ||||
.Nm uma_zone_set_maxaction | |||||
.Nd zone allocator | .Nd zone allocator | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In sys/param.h | .In sys/param.h | ||||
Context not available. | |||||
.Fn uma_zone_get_cur "uma_zone_t zone" | .Fn uma_zone_get_cur "uma_zone_t zone" | ||||
.Ft void | .Ft void | ||||
.Fn uma_zone_set_warning "uma_zone_t zone" "const char *warning" | .Fn uma_zone_set_warning "uma_zone_t zone" "const char *warning" | ||||
.Ft void | |||||
.Fn uma_zone_set_maxaction "uma_zone_t zone" "void (*maxaction)(uma_zone_t)" | |||||
.In sys/sysctl.h | .In sys/sysctl.h | ||||
.Fn SYSCTL_UMA_MAX parent nbr name access zone descr | .Fn SYSCTL_UMA_MAX parent nbr name access zone descr | ||||
.Fn SYSCTL_ADD_UMA_MAX ctx parent nbr name access zone descr | .Fn SYSCTL_ADD_UMA_MAX ctx parent nbr name access zone descr | ||||
Context not available. | |||||
.Fn uma_zone_set_warning | .Fn uma_zone_set_warning | ||||
function sets a warning that will be printed on the system console when the | function sets a warning that will be printed on the system console when the | ||||
given zone becomes full and fails to allocate an item. | given zone becomes full and fails to allocate an item. | ||||
The warning will be printed not often than every five minutes. | The warning will be printed no more often than every five minutes. | ||||
Warnings can be turned off globally by setting the | Warnings can be turned off globally by setting the | ||||
.Va vm.zone_warnings | .Va vm.zone_warnings | ||||
sysctl tunable to | sysctl tunable to | ||||
Context not available. | |||||
.Va 0 . | .Va 0 . | ||||
.Pp | .Pp | ||||
The | The | ||||
.Fn uma_zone_set_maxaction | |||||
function sets a function that will be called when the given zone becomes full | |||||
and fails to allocate an item. | |||||
The function will be called with the zone locked. Also, the function | |||||
that called the allocation function may have held additional locks. Therefore, | |||||
this function should do very little work (similar to a signal handler). | |||||
.Pp | |||||
The | |||||
.Fn SYSCTL_UMA_MAX parent nbr name access zone descr | .Fn SYSCTL_UMA_MAX parent nbr name access zone descr | ||||
macro declares a static | macro declares a static | ||||
.Xr sysctl | .Xr sysctl | ||||
Context not available. |