mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-02 12:20:51 +00:00
only use direct map if system has more than 2GB
This commit is contained in:
parent
32237d8492
commit
71bc1ce36e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=192209
@ -3432,7 +3432,7 @@ arc_init(void)
|
||||
/* Start out with 1/8 of all memory */
|
||||
#if defined(_KERNEL) && (__amd64__)
|
||||
arc_c = physmem*PAGE_SIZE / 8;
|
||||
if (physmem*PAGE_SIZE > kmem_size())
|
||||
if (physmem*PAGE_SIZE > kmem_size() && (physmem > (1UL<<31)))
|
||||
arc_large_memory_enabled = 1;
|
||||
#else
|
||||
arc_c = kmem_size() / 8;
|
||||
|
Loading…
Reference in New Issue
Block a user