Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F136242219
D20514.id58316.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
690 B
Referenced Files
None
Subscribers
None
D20514.id58316.diff
View Options
Index: head/sys/vm/uma_core.c
===================================================================
--- head/sys/vm/uma_core.c
+++ head/sys/vm/uma_core.c
@@ -146,7 +146,7 @@
/* kmem soft limit. */
static unsigned long uma_kmem_limit = LONG_MAX;
-static volatile unsigned long uma_kmem_total;
+static unsigned long uma_kmem_total;
/* Is the VM done starting up? */
static enum { BOOT_COLD = 0, BOOT_STRAPPED, BOOT_PAGEALLOC, BOOT_BUCKETS,
@@ -3737,14 +3737,14 @@
uma_size(void)
{
- return (uma_kmem_total);
+ return (atomic_load_long(&uma_kmem_total));
}
long
uma_avail(void)
{
- return (uma_kmem_limit - uma_kmem_total);
+ return (uma_kmem_limit - uma_size());
}
void
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 17, 8:20 PM (15 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25446487
Default Alt Text
D20514.id58316.diff (690 B)
Attached To
Mode
D20514: Export some UMA info via sysctl.
Attached
Detach File
Event Timeline
Log In to Comment