Increate HMB limit from 1% to 5%.
SSD capacity in laptops is growing faster then RAM size, so my original guess seems too low on second thought. Hopefully nobody will build large array of those crappy SSDs. MFC after: 2 weeks X-MFC-with: 356474
This commit is contained in:
parent
6f5bc35d94
commit
1c7dd40e58
@ -881,8 +881,8 @@ nvme_ctrlr_hmb_alloc(struct nvme_controller *ctrlr)
|
||||
int err, i;
|
||||
uint64_t max;
|
||||
|
||||
/* Limit HMB to 1% of RAM size per device by default. */
|
||||
max = (uint64_t)physmem * PAGE_SIZE / 100;
|
||||
/* Limit HMB to 5% of RAM size per device by default. */
|
||||
max = (uint64_t)physmem * PAGE_SIZE / 20;
|
||||
TUNABLE_UINT64_FETCH("hw.nvme.hmb_max", &max);
|
||||
|
||||
min = (long long unsigned)ctrlr->cdata.hmmin * 4096;
|
||||
|
Loading…
x
Reference in New Issue
Block a user