add sysctl.conf lines on install?

Asked by eris23

The message log for Transmission lists the following (in a recent raring install):

Tue May 28 12:45:40 2013 error UDP Failed to set receive buffer: requested 4194304, got 425984
Tue May 28 12:45:40 2013 UDP Please add the line "net.core.rmem_max = 4194304" to /etc/sysctl.conf
Tue May 28 12:45:40 2013 error UDP Failed to set send buffer: requested 1048576, got 425984
Tue May 28 12:45:40 2013 UDP Please add the line "net.core.wmem_max = 1048576" to /etc/sysctl.conf

Can the initial installation of Transmission modify the sysctl.conf file? I've added those lines on raring, quantal, precise, etc -- so it's a long term state of affairs.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu transmission Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#1

"Can the initial installation of Transmission modify the sysctl.conf file? "

No, I don't think so. I've use transmission a lot of time and I still use it, but I never saw any additional lines in sysctl.conf.

Look this topic on Transmission Forums for a solution
https://forum.transmissionbt.com/viewtopic.php?f=2&t=11566

Regards
 NikTh

Revision history for this message
eris23 (jdkatz23) said :
#2

I know that Transmission doesn't currently modify the sysctl.conf file. My question is: can a "deb" file (such as those for Transmission) add lines to the sysctl.conf file? If so, I'll make a "wishlist" bug report.

The advice in the link is for a device that modifies the sysctl.conf file on boot, thus is not really applicable to the average installation.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

I've never had to add to sysctl.conf for any application. Sounds like something specific to your network hardware so adding it to everyones system is little shortsighted. You could report a bug but I suspect it will not be implemented unless it will benefit all users on all hardware.

Revision history for this message
Thomas Krüger (thkrueger) said :
#4

I would also recommend to debug the problem properly before applying a solution like this.

But to give an answer to the question:
The proper way to add settings to sysctl is to create a file in /etc/sysctl.d/ .
Read /etc/sysctl.d/README for details!

Can you help with this problem?

Provide an answer of your own, or ask eris23 for more information if necessary.

To post a message you must log in.