Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 12-11-2005, 11:19 PM   #1
Registered: Oct 2002
Location: San Francisco, CA
Distribution: redhat
Posts: 50

Rep: Reputation: 16
Clear Free Memory


I have a laptop that was given to me to use for work. I do not have many funds right now, so at home I boot Knoppix on the notebook.

For some reason I feel like my company might take a peek at the remaining data left in memory on bootup. So my question is: how can I clear the linux system memory?

Is there any command line tools that might help me do this?

I have been thinking that I increase the heap size available to Java applications, then writing a Java application that will create an array the size of the free memory, and then setting the entire array to null or something.

However, this will require that I copy the file from some networked location, compile it locally, etc. I feel like I'm running through a lot of hoops.

Is there any easier way?

Thanks for any tips.
Old 12-11-2005, 11:33 PM   #2
Registered: Jun 2005
Posts: 542

Rep: Reputation: 34
See THC's secure-delete at

There's smem and sswap.
Old 12-11-2005, 11:45 PM   #3
Registered: Oct 2002
Location: San Francisco, CA
Distribution: redhat
Posts: 50

Original Poster
Rep: Reputation: 16
Wow that's great! The application looks like it is _exactly_ what I am looking for. Thanks for your suggestion!
Old 12-12-2005, 01:12 PM   #4
Registered: Oct 2005
Location: A safe distance from Detroit
Distribution: SuSE 10.0, Knoppix
Posts: 98

Rep: Reputation: 17
Depending on how much RAM your notebook has, and whether or not you configure a swap file, Knoppix may not leave any tracks at all on the drive. If you have lots of RAM, you may not need to configure a swap file, and if you don't save the configuration or create a homedir, Knoppix will be running directly from RAM and won't touch the drive at all.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
free physical memory saavik Solaris / OpenSolaris 7 08-26-2005 01:22 PM
How do I clear the memory cache on my linux server? robgo777 Linux - Software 2 01-09-2005 02:30 AM
How to clear/flush the INACT_DIRTY in MEMORY cabloy Linux - Hardware 4 12-12-2004 09:19 PM
How much memory is really 'free'? robbiemorgan Linux - Newbie 4 09-19-2004 08:05 PM
Free memory disappearing Vampyric Linux - General 2 02-17-2004 09:40 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration