Skip to content

Commit

Permalink
6293 ztest failure: error == 28 (0xc == 0x1c) in ztest_tx_assign()
Browse files Browse the repository at this point in the history
Reviewed by: George Wilson <[email protected]>
Reviewed by: Prakash Surya <[email protected]>
Reviewed by: Richard Elling <[email protected]>
Approved by: Richard Lowe <[email protected]>
  • Loading branch information
ahrens committed Oct 10, 2015
1 parent ba3132c commit 8fe00bf
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions usr/src/uts/common/fs/zfs/arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -5020,6 +5020,16 @@ arc_init(void)
arc_c_max = arc_c_min;
arc_c_max = MAX(allmem * 3 / 4, arc_c_max);

/*
* In userland, there's only the memory pressure that we artificially
* create (see arc_available_memory()). Don't let arc_c get too
* small, because it can cause transactions to be larger than
* arc_c, causing arc_tempreserve_space() to fail.
*/
#ifndef _KERNEL
arc_c_min = arc_c_max / 2;
#endif

/*
* Allow the tunables to override our calculations if they are
* reasonable (ie. over 64MB)
Expand Down

0 comments on commit 8fe00bf

Please sign in to comment.