LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-05-2006, 01:16 PM   #1
bpottle
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 5 // 2.6.15 kernel
Posts: 8

Rep: Reputation: 0
Increasing send buffer with sysctl


Currently running Fedora Core 5, 2.6.15

I'm running a program from the flow-tools package that generates sample data and sends it to a socket. However, when I execute it, I get a string of messages reading:
Code:
flow-send: send(): Message too long
flow-send: send(): Message too long
flow-send: send(): Message too long
I'm assuming this is the EMSGSIZE kernel error from the Googling I've done. This is the output I currently get for the two relevant settings (according to what I'm reading)
Code:
[root@starbuck]# sysctl net.core.rmem_max
  net.core.rmem_max = 80000000
[root@starbuck]# sysctl net.ipv4.tcp_wmem
  net.ipv4.tcp_wmem = 4096    65536    8388608
I'm not sure of the exact message size it's trying to send, but all I want to do is increase my settings to the point where they're large enough to allow it through -- so a ridiculous overshot is fine, I'm just not sure how to enter the command. Which do I change, and how?

Thanks,
--Ben
 
Old 07-05-2006, 01:45 PM   #2
bpottle
LQ Newbie
 
Registered: May 2006
Distribution: Fedora Core 5 // 2.6.15 kernel
Posts: 8

Original Poster
Rep: Reputation: 0
I'm not sure if it's relevant or not... but I'm actually running a collector right before this to receive the data I'm generating, and it looks like it issues some socket-related command when it runs:
Code:
[root@starbuck]# ./flow-receive 0/0/2055 | ./flow-print
flow-receive: setsockopt(size=4194304)
...(listening)
--Ben
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the difference between the free buffer and buffer in the buffer hash queue? Swagata Linux - Enterprise 0 05-25-2006 11:57 PM
increasing buffer size in memory slice Linux - General 1 09-30-2004 08:10 AM
Send data to the keyboard buffer rrodrigues Programming 5 07-20-2004 09:26 AM
sysctl nullpt *BSD 3 08-06-2003 01:14 PM
Send Receive Buffer in Linux? defa0009 Linux - General 6 06-21-2003 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:04 PM.

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
Open Source Consulting | Domain Registration