Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I run the command ps aux to see what was running....i saw a whole bunch of instances of when i tried to open a large video file with kaffiene player, i ended up using mplayer!!
i killed them processes and i monitored by ram and it started to free space every time i killed one, so it was working "GREAT" and machine has speeded up again but just wondering why this happens????
Nothing looks unusual there. Linux always uses almost all of the RAM. Even if you built a monster with 2 Gb of Ram, you'd probably see that it is using 1.9+Gb within half an hour of starting up. We'll need somebody with more knowledge than me to explain why this happends, but it isn't unusual. Just because your Ram is used doesn't mean the computer is slower - can you provide any info on what it is that is happening slower?
Your 2nd post makes more sense - a failed start attempt will hog resources, and will keep working until it gives you an error or you kill it. For whatever reason your kaffein wasn't giving an error, so it took you killing the process for it to free up the memory.
ps -ef or ps-aux depending on distro is often your best friend.
If the process are named kaffiene, you can use the killall command rather than having to use the kill command with each process number.
killall -9 kaffiene
Originally posted by jschiwal If the process are named kaffiene, you can use the killall command rather than having to use the kill command with each process number.
killall -9 kaffiene
I wouldn't recommend -9 as the de facto method of killing something - it makes no attempt to exit gracefully and free resources. -15 is a better bet and is the default when calling killall with no parameters:
Code:
killall kaffeine
killall (or kill) -9 sends the process the SIGKILL signal which quits immediately with no clean-up operation. killall (or kill) -15 sends the process the SIGTERM signal which instructs it to exit gracefully.
i think the reason for Linux 'using up' all of the available memory is to do with caching... whereby stuff is left hanging around for quick retrieval later if necessary.. but the 'cached' memory is actually freely available for other use if required.. i think that's the gist of it, but i'm no programmer, so if anyone can explain further, i'm sure it would help a few of us!
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625
Rep:
Many daemons start up multiple copies of themselves so if they get a bunch of requests all at once they have the processes ready to service them. See mod_prefork in Apache for another example.
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625
Rep:
The thing to watch is swap space. When the system has to swap a lot that's when performance takes a really big hit. A little swapping is OK, but when you see a lot of swap space used, that's when you know you need to invest in more RAM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.