LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 07-05-2013, 06:46 PM   #1
Synergy23
LQ Newbie
 
Registered: Nov 2009
Posts: 12

Rep: Reputation: 0
Clearing RAM on openSUSE 12.3


Just out of curiosity, is there a way to clear RAM without rebooting on openSUSE 12.3?

I haven't had any issues yet, but I prefer hibernate to full shutdowns as I move around a lot during the day. (Not that the openSUSE boot up takes that long, though. Just a preference.) In the past, when I have done that with Windows and Linux Mint for several days at a time it would become laggy and the sound quality would get sort of fuzzy/pop. I assumed this to be crowded RAM, and rebooting always resolved it.

So, is there a way to clear the cache without a reboot?
 
Old 07-05-2013, 07:10 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
Hi, apparently GNU/Linux won't clean the cache if it's in use. But...

there are 2 instances the same, setup a cron job...
http://ttux.net/post/clear-memory-cache-linux/

and again with out cron, using the same command.
http://ttux.net/post/clear-memory-cache-linux/

seems to work.

HTH, Glenn
 
Old 07-05-2013, 07:50 PM   #3
Synergy23
LQ Newbie
 
Registered: Nov 2009
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GlennsPref View Post
Hi, apparently GNU/Linux won't clean the cache if it's in use. But...

there are 2 instances the same, setup a cron job...
http://ttux.net/post/clear-memory-cache-linux/

and again with out cron, using the same command.
http://ttux.net/post/clear-memory-cache-linux/

seems to work.

HTH, Glenn
Thanks! It says permission denied for me, though. Any ideas?
 
Old 07-05-2013, 08:47 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Root/sudo - although I'd be surprised if it isn't done automatically. The suspend tools try to minimise what they have to save, although it's been a while since I looked at them.

I hope you're not hibernating both Windoze and Linux at the same time - i.e. boot 'doze, hibernate, then boot Linux and hibernate. Seen some warnings somewhere against doing that.
 
1 members found this post helpful.
Old 07-05-2013, 10:01 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
if you need a tool then BleachBit will do it .

every now and then you might have a program that has a mem leak and will not relinquish the ram

logging out normally will fix that

Code:
su -
zypper in bleachbit
-- NOTE
there is NO KDE menu icon nor /usr/share/applications/ *.desktop file
so you need to run it from the terminal

Last edited by John VV; 07-05-2013 at 10:11 PM.
 
1 members found this post helpful.
Old 07-06-2013, 10:05 AM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Posts: 3,366
Blog Entries: 33

Rep: Reputation: 216Reputation: 216Reputation: 216
Try it as root. You NEED to be root!

The advantage of a cronjob is when the cache is not touchable, cron will run again, eventually catching a chance to unload stale cache fragments.

Last edited by GlennsPref; 07-06-2013 at 10:09 AM.
 
Old 07-06-2013, 10:19 AM   #7
mddnix
Member
 
Registered: Mar 2013
Location: Bangalore, India
Distribution: Redhat, Arch, Ubuntu
Posts: 504

Rep: Reputation: 137Reputation: 137
Quote:
Originally Posted by John VV View Post
if you need a tool then BleachBit will do it .
Cool!!! didn't knew such tool existed (Linux's own CCleaner). Searched for it in different repositories, but couldn't find it anywhere for CentOS 6. Finally, as a last try checked developer's website and found latest rpm for CentOS 6 .

It also created menu items (for both regular and root user) under 'System Tools'.

Cheers!!!

Edit: Double Cool!!!. It has also bonus pack .rpm... i have no idea what it is, but i'll install it also and try it anyway .

Last edited by mddnix; 07-06-2013 at 10:32 AM.
 
  


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
Problem in clearing up cache when it reaches half of ram size LittleMaster Linux - Server 4 08-23-2012 08:54 PM
Boot difficulty & no sound after RAM upgrade on Toshiba P100-194 with opensuse 10.2 vinceneil Linux - Laptop and Netbook 4 05-17-2007 03:21 AM
Clearing Ram Cyric Slackware 2 10-08-2004 02:54 AM
clearing ram? eyexer0 Linux - General 15 06-02-2003 04:30 PM
clearing RAM hamsterdude Linux - Hardware 3 09-08-2002 05:14 PM


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