LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-01-2012, 09:05 PM   #1
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 195

Rep: Reputation: 50
Changes to sysctl.conf not working


I need to set the following so avast will run on my system:

sysctl -w kernel.shmmax=10000000

It works great, but I would rather not type this at boot everytime so I edited /etc/sysctl.conf and added the following line:

sysctl -w kernel.shmmax = 100000000

When I reboot the system it does not take effect, I still have to go to the command line and enter the command again. Anyone have any ideas to help?

I am running Fedora 16 i686

Thanks
 
Old 01-01-2012, 09:18 PM   #2
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 195

Original Poster
Rep: Reputation: 50
Dumb question sorry guys.

For anyone who comes across this thread the sanswer is to NOT add the sysctl command in the line. Just add the following to /etc/sysctl.conf

kernel.shmmax = 100000000
 
Old 01-03-2012, 10:38 PM   #3
cool.nirbhay@gmail.com
LQ Newbie
 
Registered: Oct 2011
Location: New Delhi, INDIA
Distribution: RHEL6
Posts: 1

Rep: Reputation: Disabled
[root@server2 ~]# vim /etc/sysctl.conf
kernel.shmmax = 100000000

save and quit.
 
Old 01-11-2012, 08:19 AM   #4
mathew_p_a
LQ Newbie
 
Registered: Oct 2009
Posts: 7
Blog Entries: 1

Rep: Reputation: 1
Quote:
Originally Posted by cool.nirbhay@gmail.com View Post
[root@server2 ~]# vim /etc/sysctl.conf
kernel.shmmax = 100000000

save and quit.
After editing sysctl.conf, you need to give
Code:
sysctl -p
to make it effective without reboot.
 
  


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
/etc/Sysctl.conf really I need it? Beised Linux - Software 2 08-25-2004 09:36 AM
sysctl.conf resets itself? JohnLocke Linux - Newbie 1 07-14-2004 11:24 PM
/etc/sysctl.conf ??? biscristi Linux - Software 0 06-03-2004 10:50 AM
sysctl.conf nocturnal *BSD 4 12-11-2003 07:43 PM
help! the /etc/sysctl.conf darkstarreddiam Linux - Networking 2 05-08-2003 10:55 PM


All times are GMT -5. The time now is 06:32 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