LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-22-2004, 12:44 AM   #1
har5ha
Member
 
Registered: Mar 2004
Location: NY
Distribution: Red Hat 9 [Kernel 2.6.6-1.435]
Posts: 72

Rep: Reputation: 15
Unhappy freeing memory in linux


HI ALL,


i want to optimize my systen for performance by free up memory,.
and want to avoid recompiling the kernel.



"PLEASE PROVIDE ME TIPS TO TWEAK MY SYSTEM"



My System Configuration

AMD Athlon
256 mb ram
RED HAT 9 [2.6 Kernel]





I Stopped allmost all the service's for the sake of performance..

is there any way i can tweak more [i need httpd , by the way... ]



# top

80 processes: 79 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 15.3% user 5.1% system 0.0% nice 0.0% iowait 79.5% idle
Mem: 257108k av, 250996k used, 6112k free, 0k shrd, 14384k buff
140656k active, 80568k inactive
Swap: 610428k av, 0k used, 610428k free 123516k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
1388 root 15 0 38056 27M 12240 S 6.4 11.0 3:07 0 X
1703 root 15 0 49400 30M 28272 S 6.0 12.2 1:21 0 firefox-bin
1847 root 15 0 20908 7676 11344 S 2.7 2.9 0:20 0 xmms
1810 root 16 0 25384 13M 23004 S 1.7 5.3 0:05 0 konsole
1528 root 15 0 24396 11M 22588 S 1.5 4.6 0:44 0 kdeinit
1877 root 17 0 3876 1068 3716 R 0.9 0.4 0:00 0 top
1630 root 15 0 32804 20M 28344 S 0.1 8.1 0:04 0 kdeinit
1635 root 16 0 26236 13M 23744 S 0.1 5.5 0:03 0 kdeinit
1776 root 15 0 27700 15M 24884 S 0.1 6.3 0:11 0 kdeinit
1 root 16 0 1312 488 1276 S 0.0 0.1 0:01 0 init
2 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd/0
3 root 5 -10 0 0 0 SW< 0.0 0.0 0:00 0 events/0
4 root 5 -10 0 0 0 SW< 0.0 0.0 0:00 0 khelper
5 root 15 -10 0 0 0 SW< 0.0 0.0 0:00 0 kacpid
20 root 5 -10 0 0 0 SW< 0.0 0.0 0:00 0 kblockd/0
21 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
32 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 pdflush
33 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 pdflush
35 root 13 -10 0 0 0 SW< 0.0 0.0 0:00 0 aio/0
34 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kswapd0
152 root 16 0 0 0 0 SW 0.0 0.0 0:00 0 kseriod
193 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
541 root 16 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
542 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
543 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
544 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
545 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
927 root 16 0 1900 972 1628 S 0.0 0.3 0:00 0 dhclient
1064 root 16 0 1380 548 1324 S 0.0 0.2 0:00 0 syslogd
1068 root 15 0 1308 440 1272 S 0.0 0.1 0:00 0 klogd
1087 rpc 19 0 1460 528 1408 S 0.0 0.2 0:00 0 portmap
1124 root 16 0 1348 444 1316 S 0.0 0.1 0:00 0 gpm
1152 xfs 16 0 6176 3976 3152 S 0.0 1.5 0:01 0 xfs
1170 root 16 0 6316 2156 5788 S 0.0 0.8 0:00 0 httpd
1171 root 18 0 1288 400 1260 S 0.0 0.1 0:00 0 mingetty
1172 root 18 0 1288 400 1260 S 0.0 0.1 0:00 0 mingetty
1173 root 18 0 1288 400 1260 S 0.0 0.1 0:00 0 mingetty
1174 root 18 0 1288 400 1260 S 0.0 0.1 0:00 0 mingetty
1175 root 18 0 1288 400 1260 S 0.0 0.1 0:00 0 mingetty
1176 root 18 0 1288 400 1260 S 0.0 0.1 0:00 0 mingetty
1177 root 16 0 14296 3252 13840 S 0.0 1.2 0:00 0 gdm-binary





Bye !!!!
 
Old 07-22-2004, 12:52 AM   #2
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
another way to tweak performance is to adjust your hard disk's parameters...

for this you can use hdparm as root...
 
Old 07-23-2004, 10:12 AM   #3
har5ha
Member
 
Registered: Mar 2004
Location: NY
Distribution: Red Hat 9 [Kernel 2.6.6-1.435]
Posts: 72

Original Poster
Rep: Reputation: 15
Thanks for ur input......
 
Old 07-23-2004, 12:32 PM   #4
Mike Blick
Member
 
Registered: May 2002
Location: Los Angeles
Distribution: Mandrake 10, LFS 4.1
Posts: 179

Rep: Reputation: 30
I see you're running KDE. One way to increase performance is to run a lightweight desktop such as fluxbox (http://fluxbox.sourceforge.net). You'll still be able to run your KDE apps.
 
Old 07-23-2004, 01:59 PM   #5
win32sux
Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
fluxbox rules!

=)
 
Old 07-23-2004, 03:29 PM   #6
eisman
Member
 
Registered: Jul 2004
Location: The Netherlands
Distribution: Sidux , Debian, Haiku, PC-BSD, CentOS --> XenExpress
Posts: 77

Rep: Reputation: 16
or run blackbox, rox as a desktop manager.

but why do you want to have these performance?
 
Old 07-23-2004, 03:53 PM   #7
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
there are several things you can optimize by using sysctrl. it's just a script that writes your adjustments to the /proc/sys/.. entries on your system at startup. you may edit them on the fly on the running system too. since every sys is different i can't give you any good values here.
use hdparm to tweak your ide as mentioned above.
if you're using 2.4 kernels here's another: use elvtune and raise read_ & write_latency (1024 & 4096 gave me good troughtput/latency). the (nearly) same is /sys/block/.../queue/iosched/.. under 2.6. have a look at the documentation in your kernel-src-tree.

further i recommend rolling your own kernel since it isn't that hard and you sure can spare
thing out you don't need.

sl mritch.
 
Old 07-23-2004, 05:00 PM   #8
har5ha
Member
 
Registered: Mar 2004
Location: NY
Distribution: Red Hat 9 [Kernel 2.6.6-1.435]
Posts: 72

Original Poster
Rep: Reputation: 15
thanks once again guys......
 
  


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
'Freeing unused kernel memory' isn't solved yet VertX Linux - Software 2 02-19-2005 06:49 AM
Freeing Up Used Memory zoso Linux - Newbie 7 01-11-2005 09:44 PM
Freeing up Memory DigiCrime Linux - General 5 09-30-2003 07:25 AM
Hang after freeing unused kernel memory darkcloud Linux - General 9 07-07-2003 08:12 PM
What Happened to Freeing up my Memory/Resources? johan the olive Linux - Hardware 2 02-27-2003 02:14 PM


All times are GMT -5. The time now is 09:22 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration