incorrect units for /proc/sys/net/ipv4/tcp_mem?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm having difficulty understanding the three values reported in
/proc/sys/net/ipv4/tcp_mem.  All the documentation I've read seems to
imply that it is the amount of memory used/reserved for TCP socket
buffers, measured in units of pages.  But assuming a page size of 4096
bytes, the numbers reported on my machine appear to be grossly in
excess of the total memory in my system:
# cat /proc/sys/net/ipv4/tcp_mem
196608  262144  393216
This would mean a maximum upper bound of 393216*4096 = 1610612736
bytes, or 1.6GB.  But my machine has just 512MB of total memory, so
there is obviously something amiss.  I'd appreciate any help in
understanding these variables.
Thanks!
-Zubin
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux