LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-12-2009, 11:21 AM   #1
jf.argentino
Member
 
Registered: Apr 2008
Location: Toulon (France)
Distribution: FEDORA CORE
Posts: 493

Rep: Reputation: 50
Socket receiving buffer exceeding the "rmem_max" value


Hello,

For an application with "heavy" network receiving throughput, I need to increase the receiving kernel buffer size of my socket with "setsockopt (SO_RCVBUF)".

But I found strange that the buffer size I pass to the "setsockopt (SO_RCVBUF)" can exceed the "rmem_max" value: "setsockopt (SO_RCVBUF)" return 0 and "netstat -su" show far less receiving buffer error than if I don't make the "setsockopt (SO_RCVBUF)". So for now I was thinking that it works.

But, as I still have some errors, I increase the "rmem_max" value, and all my errors disappear, so why the "setsockopt (SO_RCVBUF)" return without error when the bufsize is over the rmem_max value?

regards.
 
Old 02-14-2009, 07:23 PM   #2
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
I'd say that "setsockopt (SO_RCVBUF)" exceeded "rmem_max" default value and not "rmem_max" maximum limit.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Socket Programming making use of "select()" and "writefds" johncsl82 Programming 10 11-13-2011 01:27 PM
Problems receiving mail after switching from "mbox" to Maildir in dovecot. robertjinx Linux - Server 13 10-24-2008 03:44 PM
Receiving constant error "Missing Dependency: /usr/bin/php is needed" GreenDragonComputers Linux - Software 3 05-09-2007 02:40 AM
Kmail: set SMTP server per "receiving account" acp Linux - Desktop 1 03-13-2007 03:08 PM
Squid: "Socket error... (55) no buffer space available J_Szucs Linux - Networking 1 08-30-2004 09:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration