FreeBSD Bugzilla – Attachment 99656 Details for
Bug 138790
[zfs] ZFS ceases caching when mem demand is high
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.21 KB, created by
Peter Much
on 2009-09-13 23:50:05 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Peter Much
Created:
2009-09-13 23:50:05 UTC
Size:
1.21 KB
patch
obsolete
>*** sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c.orig Wed Aug 5 20:45:41 2009 >--- sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c Sat Sep 5 00:19:30 2009 >*************** >*** 1821,1831 **** > > #ifdef _KERNEL > > /* > * If pages are needed or we're within 2048 pages > * of needing to page need to reclaim > */ >! if (vm_pages_needed || (vm_paging_target() > -2048)) > return (1); > > if (needfree) >--- 1821,1835 ---- > > #ifdef _KERNEL > >+ if (vm_page_count_min()) >+ return (1); >+ > /* > * If pages are needed or we're within 2048 pages > * of needing to page need to reclaim > */ >! if ((vm_pages_needed || (vm_paging_target() > -2048)) && >! (arc_size > arc_c_min)) > return (1); > > if (needfree) >*************** >*** 3338,3344 **** > available_memory += MIN(evictable_memory, arc_size - arc_c_min); > } > >! if (inflight_data > available_memory / 4) { > ARCSTAT_INCR(arcstat_memory_throttle_count, 1); > return (ERESTART); > } >--- 3342,3348 ---- > available_memory += MIN(evictable_memory, arc_size - arc_c_min); > } > >! if ((inflight_data > available_memory / 4) && (arc_size > arc_c_min)) { > ARCSTAT_INCR(arcstat_memory_throttle_count, 1); > return (ERESTART); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 138790
: 99656