Project

General

Profile

Bug #5128

arc_memory_throttle uses vmem_size return as bytes

Added by Steven Hartland about 6 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2014-09-04
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:

Description

arc_memory_throttle uses the return from vmem_size(heap_arena, VMEM_FREE), which is page count, when setting up available_memory on i386, which is a size in bytes.

https://github.com/illumos/illumos-gate/blob/master/usr/src/uts/common/fs/zfs/arc.c#L3634

Fix:-

-           MIN(available_memory, vmem_size(heap_arena, VMEM_FREE));
+           MIN(available_memory, ptob(vmem_size(heap_arena, VMEM_FREE)));

No data to display

Also available in: Atom PDF