-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Sat, 12 Jun 2004, David S. Miller wrote:
On Sat, 12 Jun 2004 23:46:52 +0100 (WEST) "Marcos D. Marado Torres" <marado@student.dei.uc.pt> wrote:
As we can read on Documentation/networking/ip-sysctl.txt, /proc/sys/net/ipv4/tcp_rmem is a vercor of 3 integers (min, default and max) which defines the amount of memory reserved/allowed for read buffers for TCP sockets.
If we `echo "0 0 0" > /proc/sys/net/ipv4/tcp_rmem`,
The system administrator can shoot himself in the foot if he wants to.
OK, you answered my first doubt, that was if this was going to be considered a bug or not ;-)
There is nothing to "fix" here just the same as there is no need to add special code to deal with root going:
dd if=/dev/zero of=/proc/kmem
When he does `dd if=/dev/zero of=/proc/kmem` the system replies to he's order
and does what he wants.
One can do `echo "0 0 0" > /proc/sys/net/ipv4/rcp_rmem` because he simply
wants, let's say, disable the kernel to have the ability to reply to TCP
packets. IMHO what should happen is an "hang" of the process (in the case I
described ssh or sshd should just hang), like what happens when we do `echo "0 0 0" > /proc/sys/net/ipv4/tcp_wmem`: after that an `ssh localhost`
will just hang, but the system works.
The whole system craching just because there's no space on TCP read buffers is,
in my oppinion, ilogic.
If you still disagree on my point of view, please just disregard my comments, it's not my intention to create a flame thread here or something like that.
Best regards, Mind Booster Noori
PS -> Maybe, if you think this is not wrong, something should be added to Documentation regarding this issue?
- -- /* ************************************************************************* */
Marcos Daniel Marado Torres AKA Mind Booster Noori
http://student.dei.uc.pt/~marado - marado@student.dei.uc.pt
() Join the ASCII ribbon campaign against html email and Microsoft attachments. /\ Software patents are endangering the computer industry all around the world.
Join the LPF: http://lpf.ai.mit.edu/ http://petition.eurolinux.org/ /* ************************************************************************* */
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFAy5AbmNlq8m+oD34RAiE/AKDRIuUGMOX1skc6Qv+lPPeryFIbFgCg3zE+ NuBZS7imEk6+ulrF+tg9ebU= =COHJ -----END PGP SIGNATURE-----
- : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html