You are Here:
Download Linux Lite 5.6 Final today - See Release Announcements



X Close Ad
X Close Ad
Clear Memory

Author (Read 2554 times)

0 Members and 1 Guest are viewing this topic.

Clear Memory
« on: January 29, 2017, 04:40:50 AM »
 

bfb

  • Banned
  • Occasional Poster
  • **
  • 93
    Posts
  • Country: 00
  • Reputation: 5
  • Linux Lite Member

  • Linux Lite: 3.4 64bit

  • CPU: i5

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GeForce GTX 970
I find this feature in Lite tweaks for 3.2 extremely useful.
Is there a way I could install  it on 2.8 (32 bit) which I run on an ancient Dell netbook with an Atom processor?
I would prefer not to have to put 3.2 on there if I can avoid it, but as it is at the limit for memory (1 gb ram) the Clear memory tweak might be very useful..
 


Re: Clear Memory
« Reply #1 on: January 29, 2017, 08:53:09 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8140
    Posts
  • Country: nz
  • Reputation: 760
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.6 64bit

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Unhide files in your home folder (Ctrl+H) add the following to the bottom of the .bashrc file on a new line:

Code: [Select]
alias clearmem="sudo sh -c 'echo 3 >/proc/sys/vm/drop_caches'"
Save and close the file. Then type:

Code: [Select]
source .bashrc
to activate the new alias.

Then every time you want to clear the memory, just type clearmem in a terminal. Lite Tweaks in 3.x does not work in series 2.x The above is a workaround.
 

Re: Clear Memory
« Reply #2 on: January 29, 2017, 09:18:40 AM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Country: 00
  • Reputation: 305
    • Try to Grow

  • Linux Lite: 3.2 64bit

  • Kernel: 4.x
Thank you Jerry :)
I have bookmarked your tutorial, and I will do this on my first LL computer too, which is 2.n and 1Gb.
 

Re: Clear Memory
« Reply #3 on: January 29, 2017, 09:21:50 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8140
    Posts
  • Country: nz
  • Reputation: 760
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 5.6 64bit

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
No problemo :)
 

Re: Clear Memory
« Reply #4 on: January 30, 2017, 11:11:59 AM »
 

bfb

  • Banned
  • Occasional Poster
  • **
  • 93
    Posts
  • Country: 00
  • Reputation: 5
  • Linux Lite Member

  • Linux Lite: 3.4 64bit

  • CPU: i5

  • MEMORY: 8Gb

  • VIDEO CARD: Nvidia GeForce GTX 970
Thanks a lot for taking the time to explain this. It is much appreciated and this Forum and your helpfulness  are  major reasons why Lite is the best distro in my opinion
 


Tags:
 

X Close Ad
X Close Ad

Download Linux Lite 5.6 Final today - See Release Announcements