Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Memory usage/Memory hole? fix, or am I a nervous Nellie?

  1. #1
    Join Date
    Aug 2010
    Location
    Earth, usually...
    Beans
    Hidden!

    Memory usage/Memory hole? fix, or am I a nervous Nellie?

    Hello everyone!
    Quick NOOB question here. I've done some searching first, so I'll finally post a question at you all.
    I've noticed my RAM usage ends up being around 96 percent after being up and running for a while. (i.e. Anywhere from say 24 to 72 hours) Things still seem to run OK and I haven't exactly been able to pinpoint the 'process', though after killing a couple of them I can bring the mem usage down to about 50 percent.
    Is there a way to do a cron job that reclaims the memory? This is the physical Ram not the swap.
    Also from startup when I get into the System Monitor it shows that right after boot-up I'm utilizing about 500 mb, or 5 percent of the physical Ram. (I have 8 Gb of ddr3) I am no longer using MS's OS and boot only Ubuntu. It looks as if the Ram never stops increasing in usage. (as in a 'memory hole' so-to-speak?)
    My system is screaming fast! I just want to keep it that way! Any help or info would be great. It is NOT an emergency! The Ubuntu Forums have been a tremendous help to me personally in the past and I appreciate ahead of time any help...

    Thanks,
    Jed

  2. #2
    Join Date
    Jun 2008
    Location
    London, Kentucky
    Beans
    2,093
    Distro
    Ubuntu Development Release

    Re: Memory usage/Memory hole? fix, or am I a nervous Nellie?

    Can you open system monitor, go to processes and see what's using all of your memory. That may help you find your memory leak.
    Intel-System Freeze Post#22
    How to mark your thread [SOLVED]
    Registered Linux User-#473773-Ubuntu User-#23255-Machine-#384048

  3. #3
    Join Date
    Oct 2005
    Location
    Southern Ontario, Canada
    Beans
    1,244
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Memory usage/Memory hole? fix, or am I a nervous Nellie?

    Thats normal, Ubuntu will use any memory not in use by programs as cache to improve loading times. The system will automatically allocate memory to applications you open when needed. Any good OS will always try and use ALL of your memory to improve system performance and loading times for frequently used applications.
    There is an easy way, and a hard way to do things.
    If you're anything like me, you've tried to do things things the hard way,

    and broke something.......

    (\ /)
    (O.o)
    (> <)

  4. #4
    Join Date
    Jun 2008
    Location
    London, Kentucky
    Beans
    2,093
    Distro
    Ubuntu Development Release

    Re: Memory usage/Memory hole? fix, or am I a nervous Nellie?

    Quote Originally Posted by Ocxic View Post
    Thats normal, Ubuntu will use any memory not in use by programs as cache to improve loading times. The system will automatically allocate memory to applications you open when needed. Any good OS will always try and use ALL of your memory to improve system performance and loading times for frequently used applications.
    That may be true, but I have several OS's installed with half the RAM he has and I've never seen mine use over 40% of my physical RAM.
    It usually runs less than 25%

    Jed, are you using 32-bit or 64-bit Ubuntu?
    To take advantage of all your RAM you would have to be using 64-bit.
    Last edited by Dutch70; March 30th, 2011 at 06:43 AM.
    Intel-System Freeze Post#22
    How to mark your thread [SOLVED]
    Registered Linux User-#473773-Ubuntu User-#23255-Machine-#384048

  5. #5
    Join Date
    Oct 2006
    Location
    Tucson, AZ
    Beans
    1,420
    Distro
    Xubuntu 10.04 Lucid Lynx

    Re: Memory usage/Memory hole? fix, or am I a nervous Nellie?

    Quote Originally Posted by Jedcurtis View Post
    Hello everyone!
    Quick NOOB question here. I've done some searching first, so I'll finally post a question at you all.
    I've noticed my RAM usage ends up being around 96 percent after being up and running for a while. (i.e. Anywhere from say 24 to 72 hours) Things still seem to run OK and I haven't exactly been able to pinpoint the 'process', though after killing a couple of them I can bring the mem usage down to about 50 percent.
    Is there a way to do a cron job that reclaims the memory? This is the physical Ram not the swap.
    Also from startup when I get into the System Monitor it shows that right after boot-up I'm utilizing about 500 mb, or 5 percent of the physical Ram. (I have 8 Gb of ddr3) I am no longer using MS's OS and boot only Ubuntu. It looks as if the Ram never stops increasing in usage. (as in a 'memory hole' so-to-speak?)
    My system is screaming fast! I just want to keep it that way! Any help or info would be great. It is NOT an emergency! The Ubuntu Forums have been a tremendous help to me personally in the past and I appreciate ahead of time any help...

    Thanks,
    Jed
    Open a terminal window, and type "free -m" - what is that telling you? Here's an example:
    Code:
    lloyd@dell:~/stuff$ free -m
                 total       used       free     shared    buffers     cached
    Mem:          2004        721       1282          0        112        391
    -/+ buffers/cache:        217       1786
    Swap:          956          0        956
    The thing to note above is that the "Mem:" line reports 721Mb used, but if you look at the "-/+ buffers/cache:" line, it's only actually using 217Mb of that for programs - the rest is just Linux trying to optimize things by using free RAM for buffers and caching.

    If that shows that your system is actually using all that RAM (not just for buffers), then run the "top" command, and then hit "M" (must be uppercase) to sort by how much memory the various programs are actually using. Does that show any single process with an unusual amount of memory?

    Lloyd B.
    Don't tell me to get a life.
    I had one once.
    It sucked.

  6. #6
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Memory usage/Memory hole? fix, or am I a nervous Nellie?

    Hi

    The thing to note above is that the "Mem:" line reports 721Mb used, but if you look at the "-/+ buffers/cache:" line, it's only actually using 217Mb of that for programs - the rest is just Linux trying to optimize things by using free RAM for buffers and caching.
    Not much more to say really.

    My system is screaming fast!
    And that is why your Linux is so blindingly fast

    Great explanation lloyd_b.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  7. #7
    Join Date
    Aug 2010
    Location
    Earth, usually...
    Beans
    Hidden!

    Re: Memory usage/Memory hole? fix, or am I a nervous Nellie?

    Here is my 'free -m' from the terminal;

    total used free shared buffers cached
    Mem: 7994 4643 3351 0 292 1297
    -/+ buffers/cache: 3053 4941
    Swap: 19337 0 19337

    Like I said in the first post it's not causing anything to slow down, It was more or less for my own curiosity. In the past working with that "other" OS the more memory in use meant the guarantee of a crash or blue screen at best. In my experience in the old days letting the OS do its thing was kind of alien in nature. You could never trust it. Not so with Linux eh? I've been on an Ubuntu only system now for almost a year and I dont remember one crash yet! And I'm still accidentaly learning stuff as well. Gotta love Linux!
    Jed

  8. #8
    Join Date
    Oct 2006
    Location
    Tucson, AZ
    Beans
    1,420
    Distro
    Xubuntu 10.04 Lucid Lynx

    Re: Memory usage/Memory hole? fix, or am I a nervous Nellie?

    Quote Originally Posted by Jedcurtis View Post
    Here is my 'free -m' from the terminal;

    total used free shared buffers cached
    Mem: 7994 4643 3351 0 292 1297
    -/+ buffers/cache: 3053 4941
    Swap: 19337 0 19337

    Like I said in the first post it's not causing anything to slow down, It was more or less for my own curiosity. In the past working with that "other" OS the more memory in use meant the guarantee of a crash or blue screen at best. In my experience in the old days letting the OS do its thing was kind of alien in nature. You could never trust it. Not so with Linux eh? I've been on an Ubuntu only system now for almost a year and I dont remember one crash yet! And I'm still accidentaly learning stuff as well. Gotta love Linux!
    Jed
    Based on those numbers, you were actually using 3Gb of memory for programs at the time that was run. Which is higher than I've ever seen on typical desktop machines, but not too outrageous for some servers. Without a better idea of what you're using that machine for it's kinda hard to tell what to expect. Also - what kind of graphics does that machine have? If it's one of those that uses system RAM instead of having its own on-board RAM, then it may account for that seemingly high memory usage.

    Wait until it gets back up to that 90%+ point, and run "free -m" again to confirm that something is actually eating up your RAM. Then use the "top" method I mentioned before to identify what it is that's using it.

    Even if one of your programs *does* have a "memory leak", it won't crash Linux - at some point, it'll ask for more than Linux can deliver, and Linux will kill it. So the worst case you'd see (except the case of a memory leak in the kernel or a device driver) would be one program that crashes, not the whole system.

    Lloyd B.
    Don't tell me to get a life.
    I had one once.
    It sucked.

  9. #9
    Join Date
    Aug 2010
    Location
    Earth, usually...
    Beans
    Hidden!

    Re: Memory usage/Memory hole? fix, or am I a nervous Nellie?

    Lloyd, (and all the rest that have replied here the past few days!) here is the results of my laptop being up and running for a couple of days...

    Code:
    root@jed-dv6:/# free -m
                 total       used       free     shared    buffers     cached
    Mem:          7994       7191        803          0        320       1546
    -/+ buffers/cache:       5324       2670
    Swap:        19337          0      19337
    root@jed-dv6:/# uptime
     01:30:02 up 2 days,  2:27,  2 users,  load average: 0.01, 0.04, 0.05
    So right now, not fully utilizing "all" the ram, but around 65%... Just wondering if this is normal for a laptop or should I be concerned? Never runs hot, fans don't run excessively, all seems fine.
    Below is a screen grab of my sys mon;



    So there you have it. Hope this all helps. Like I've said, I just want to learn whats best practice and proceed accordingly. This is by far the best OS I've ever had, and when you add in for free, well, It don't get no better than that. This forum has been incredibly helpful, and I certainly appreciate it. It adds tremendous value to a superb free product that I'm amazed hasn't finally put MS down.
    Any advice on the ram issue (if it is an issue, of which I'm still a bit uncertain) is appreciated of course. Almost 30 years in the computer industry and I can still be a NOOB again! Life is grand...
    Jed

    BTW Lloyd it is an nvidia 1gb on board video ram. Not part of the system ram.
    Last edited by Jedcurtis; April 1st, 2011 at 07:22 AM.

  10. #10
    Join Date
    Oct 2006
    Location
    Tucson, AZ
    Beans
    1,420
    Distro
    Xubuntu 10.04 Lucid Lynx

    Re: Memory usage/Memory hole? fix, or am I a nervous Nellie?

    That does *not* look good. You still have plenty of reserve (it's using close to 2Gb for buffers and such), but usage shouldn't have climbed from around 3Gb to 5Gb over that period of time.

    Looking at that process list - those top two really jump out at me. Nothing called an "applet" should be using up 2Gb of memory, especially "nm-applet", which is for Network Manager. I have no clue what "indicator-applet" is, but that 490Mb looks extremely high for it. Those two combined account for over half of memory used...

    What Ubuntu version are you using? You may be a victim of this bug.

    Lloyd B.
    Don't tell me to get a life.
    I had one once.
    It sucked.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •