LinuxQuestions.org
Review your favorite Linux distribution.
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, 05: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, 06:10 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,652
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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, 06: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, 07:47 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,103

Rep: Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117Reputation: 4117
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, 09:01 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,622

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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 09:11 PM.
 
1 members found this post helpful.
Old 07-06-2013, 09:05 AM   #6
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,652
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
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 09:09 AM.
 
Old 07-06-2013, 09:19 AM   #7
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
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 Madhu Desai; 07-06-2013 at 09: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 07: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 02:21 AM
Clearing Ram Cyric Slackware 2 10-08-2004 01:54 AM
clearing ram? eyexer0 Linux - General 15 06-02-2003 03:30 PM
clearing RAM hamsterdude Linux - Hardware 3 09-08-2002 04:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:38 PM.

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
Open Source Consulting | Domain Registration