| Summary: | [linprocfs] /proc/meminfo cannot handle multiple swap spaces. | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Jim.Pirzyk <Jim.Pirzyk> |
| Component: | kern | Assignee: | Dag-Erling Smørgrav <des> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.4-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
Responsible Changed From-To: freebsd-bugs->des Assign to linprocfs maintainer State Changed From-To: open->closed Fixed in r159995, confirmed by brucec@ |
Here is the confgured swap space: pstat -sk Device 1K-blocks Used Avail Capacity Type /dev/rad0s1b 2097024 32 2096992 0% Interleaved /dev/rad2s1b 2097024 0 2097024 0% Interleaved Total 4194048 32 4194016 0% But here is what cat /compat/linux/proc/meminfo reports: total: used: free: shared: buffers: cached: Mem: 533966848 83238912 450727936 31825920 0 19726336 Swap: 2147483648 18446744071562362880 4294672384 MemTotal: 521452 kB MemFree: 440164 kB MemShared: 31080 kB Buffers: 0 kB Cached: 19264 kB SwapTotal: 2097152 kB SwapFree: 4194016 kB Notice that SwapFree is more than SwapTotal in both cases. How-To-Repeat: Have the linprocfs filesystems mounted and two swap spaces.