WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Trying to free up ram (SOLVED)!  (Read 12256 times)

Offline cURIOUSgEORGE

  • Full Member
  • ***
  • Posts: 140
Trying to free up ram (SOLVED)!
« on: May 26, 2011, 08:43:50 PM »
 I just tried to move some tce's to On-Demand too save more ram...........

I had everything in On-Boot with control panel system stats telling me that I have 192000kb of free ram

soo, I move about 5 items to On-Demand and rebooted then immediately checked system stats free ram and see that it says 5000kb left of free ram..........

How does that even make any sense! ?

And on TOP OF ALL OF THAT "I THEN MOVED EVERYTHING BACK TOO HOW IT ORIGINALLY WAS (On-Boot) AND NOW IT SAYS I HAVE 35000KB of free ram!

Haha, whoaaaaaaaa, what's going on here? Am I missing something ?

Educate me, Thanks George
« Last Edit: July 05, 2011, 08:06:53 AM by cURIOUSgEORGE »

Offline cURIOUSgEORGE

  • Full Member
  • ***
  • Posts: 140
Re: What the hell is going on?
« Reply #1 on: May 26, 2011, 09:41:59 PM »
 Read this and as confused as I am ???

Comon now, bring out the big guns........

Curaga

TinyPoodle

Gerald Clark

Or anybody else that has a clue........

Thanks, George

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
about measuring memory usage
« Reply #2 on: May 26, 2011, 09:47:27 PM »
Do
Code: [Select]
sudo cache-clearbefore measuring free mem.
« Last Edit: May 29, 2011, 12:02:37 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline cURIOUSgEORGE

  • Full Member
  • ***
  • Posts: 140
Re: What the hell is going on?
« Reply #3 on: May 26, 2011, 09:52:25 PM »
 TinyPoodle YOU SCARE THE SHIT OUT OF ME (You know too much) hahaha

Thank you VERY much, that worked!

I wonder why it didn't work just by simply shutting down and rebooting.

Anyways, I'm happy, soo thank you.

Offline cURIOUSgEORGE

  • Full Member
  • ***
  • Posts: 140
Re: What the hell is going on?
« Reply #4 on: May 26, 2011, 10:50:45 PM »
 Okay, like I said that did work but................

 Now, after I reboot I'm noticing that everything is ****** up again,hmmmm
It's still seeing the "incorrect" amount of (MemFree and Committed_AS) :'(

Do I have to run the command (sudo cache-clear) every time that I want to see accurate results? Or is there another solution ?

and also when I do run (sudo cache-clear) ------> Why doesn't it change the (committed_AS) ?


Thanks, George

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: What the hell is going on?
« Reply #5 on: May 26, 2011, 10:54:16 PM »
The system will use all available memory as cache, releasing it as needed.
Either run cache-clear before running 'free' or add up the free and cache values.

Offline cURIOUSgEORGE

  • Full Member
  • ***
  • Posts: 140
Re: What the hell is going on?
« Reply #6 on: May 26, 2011, 11:02:08 PM »
 Hmmmmmmmmmmm, "That's some mickey mouse shit right there."

 As much as I love TC/MC more then anything, it just doesn't seem proper - to have to do that.

hmmm

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: What the hell is going on?
« Reply #7 on: May 26, 2011, 11:22:53 PM »
You don't "have" to do anything.
Just ignore the memory figures and run your applications.
This is not a Tiny Core issue.  All Linux work this way.

Offline cURIOUSgEORGE

  • Full Member
  • ***
  • Posts: 140
Re: What the hell is going on?
« Reply #8 on: May 26, 2011, 11:29:54 PM »
 Gerald, I know that I don't "have" too but, if I want to see accurate results then I "have" too.

You are right though, just ignore it because I know the truth is that I have more available ram then it's actually showing, and ignoring it is what  I will do..... "no biggie" , just sucks a little bit but it is what it is and thanks for your help once again.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
about measuring memory usage
« Reply #9 on: May 27, 2011, 02:00:48 AM »
and also when I do run (sudo cache-clear) ------> Why doesn't it change the (committed_AS) ?

Where exactly is that?
« Last Edit: May 29, 2011, 12:03:15 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline cURIOUSgEORGE

  • Full Member
  • ***
  • Posts: 140
Re: What the hell is going on?
« Reply #10 on: May 27, 2011, 05:53:53 AM »
From the control Panel and then click on system stats then click MEM.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
about measuring memory usage
« Reply #11 on: May 27, 2011, 07:36:20 AM »
Found same in meanwhile with
Code: [Select]
cat /proc/meminfo
Not sure of what relevance it would be though.   ???
« Last Edit: May 29, 2011, 12:03:51 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
about measuring memory usage
« Reply #12 on: May 27, 2011, 08:58:00 PM »
The system will use all available memory as cache, releasing it as needed.
Either run cache-clear before running 'free' or add up the free and cache values.

Running cache-clear would not exclude non-droppable cache as opposed to subtracting.
I am under the impression that the part of tmpfs which resides in RAM is accounted as cache, which is not unsignificant with TC in particular.
« Last Edit: May 29, 2011, 12:04:19 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11519
Re: about measuring memory usage
« Reply #13 on: May 28, 2011, 03:57:05 AM »
Hi cURIOUSgEORGE
I've seen the subject of concern over free memory come up a couple of times before. One of the
design philosophies of the memory manager is that "unused memory is wasted memory". As a result,
when you closed a program it stays in memory so that it will start quicker if you decide to run it again.
Now when you start a program that requires more memory than is free, the memory manager looks
through the memory for sections that are not part of running programs and starts freeing up the oldest
pieces of memory for the program you are starting. This is a simplistic explanation but it gives you the
basic idea. So unless you are having problems, a low number for free RAM means the memory
manager is doing it's job. I've also seen it suggested to run cache-clear periodically in the background
to boost the reported amount of free memory, this is a bad idea. To demonstrate, the program I am
currently working on takes 2 seconds to compile. After running cache-clear it takes 10 seconds to
compile, and if I compile it again it's back to 2 seconds. It runs faster because the memory manager
is keeping the most recently used data in RAM. When you are done reading this would you please go
to your first post, click on edit, and change the title to something relating to the subject, for example,
"Trying to free up RAM" or "Why do I have so little free RAM" or something else appropriate.
« Last Edit: May 29, 2011, 12:08:30 PM by Rich »

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: What the hell is going on?
« Reply #14 on: May 28, 2011, 06:11:20 AM »
thanks for clarity, hiro, this is interesting