Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157634788
D40216.id122250.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
461 B
Referenced Files
None
Subscribers
None
D40216.id122250.diff
View Options
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1168,7 +1168,12 @@
}
if (nswbuf == 0) {
- nswbuf = min(nbuf / 4, 256);
+ /*
+ * Pager buffers are allocated for short periods, so scale the
+ * number of reserved buffers based on the number of CPUs rather
+ * than amount of memory.
+ */
+ nswbuf = min(nbuf / 4, 32 * mp_ncpus);
if (nswbuf < NSWBUF_MIN)
nswbuf = NSWBUF_MIN;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, May 24, 2:52 PM (3 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33475147
Default Alt Text
D40216.id122250.diff (461 B)
Attached To
Mode
D40216: buf: Make the number of pbufs slightly more dynamic
Attached
Detach File
Event Timeline
Log In to Comment