Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 05, 2016, 06:36:21 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Software wanted: warn when free RAM falls below xxx MB  (Read 3442 times)

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,136
    • View Profile
    • Donate to Member
Software wanted: warn when free RAM falls below xxx MB
« on: July 16, 2015, 09:30:47 AM »
Hi,

I'm looking for a small program that can alert me in some unobstrusive way* when the free RAM (as shown in the Windows task manager) drops below a certain level. Is there something like that out there?

*for example by changing its 'system tray' area icon from blue to red

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,277
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #1 on: July 16, 2015, 09:45:12 AM »
A few monitor utilities are described here:

http://lifehacker.co...-monitor-for-windows

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,664
    • View Profile
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #2 on: July 16, 2015, 09:50:37 AM »
Give me a few minutes and I can have something written for you.  What kind of icon design were you thinking of?  Simple squares of colour?  Something else?

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,136
    • View Profile
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #3 on: July 16, 2015, 10:18:10 AM »
Give me a few minutes and I can have something written for you.  What kind of icon design were you thinking of?  Simple squares of colour?  Something else?

That would be awesome! :D Hmm... maybe just the letters "RAM" on a unicolor background which changes according to (customizable) available RAM levels? Red, yellow and green.

And thank you, MilesAhead.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,406
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #4 on: July 16, 2015, 10:27:52 AM »
That sounds like a great feature idea to add to my Process Piglet tool  :up:


I'll add it asap.

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,136
    • View Profile
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #5 on: July 16, 2015, 10:45:18 AM »
That sounds like a great feature idea to add to my Process Piglet tool  :up: I'll add it asap.

Oh, didn't even know about that one. :)

MilesAhead

  • Supporting Member
  • Joined in 2009
  • **
  • Posts: 7,277
    • View Profile
    • Miles Ahead Software
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #6 on: July 16, 2015, 11:44:05 AM »
That sounds like a great feature idea to add to my Process Piglet tool  :up: I'll add it asap.

Oh, didn't even know about that one. :)

Me either.  Looking forward to the update.

TaoPhoenix

  • Supporting Member
  • Joined in 2011
  • **
  • Posts: 4,550
    • View Profile
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #7 on: July 16, 2015, 12:07:46 PM »
... What kind of icon design were you thinking of?  Simple squares of colour?  Something else?

I like the idea of something like the way Task Manager sits there with a square with a dark background and a solid color rises and falls showing Cpu usage. Task Manager's is green. You could do the same look with blue and it would be a great pair because at least for my daily use, Cpu use and memory use are far from the same, and I don't currently have anything fancy installed that dynamically monitors memory.

And as Miles has remarked elsewhere, the number one culprit for me too about memory is when the browsers start to hog it, typically with Flash videos.

Heh I knew about ProcessPiglet, but I had forgotten about it! I'll put a note in my DC personal space to think about it sometime later.


IainB

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 6,137
  • Slartibartfarst
    • View Profile
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #8 on: July 16, 2015, 12:08:59 PM »
I had completely forgotten about, or had not noticed that - NANY 2014 Release: Process Piglet.
Looks quite handy anyway.
By the way, that's an interesting introductory video you made for it @mouser - thanks.
I'd be keen to see it merged with Process Tamer like you suggest though.

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,664
    • View Profile
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #9 on: July 16, 2015, 12:10:05 PM »
Give this a try, please: http://skwire.dcmembers.com/apps/snacks/brotherSTrayMem.zip

Notes:
  • There are a few values in the INI file you can modify.  By default, the application checks the RAM every second, the yellow level is set at 2/3 of available RAM, and the red level is set at 1/3 of available RAM.
  • The icons it uses are in the /icons folder.  I included two sets I made so feel free to use whichever you want (or make your own and share).
  • Hovering over the tray icon will show a tooltip with the available RAM on your computer.

I've done some basic testing with it but let me know if you have any issues.

image.png

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,664
    • View Profile
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #10 on: July 16, 2015, 12:12:34 PM »
I like the idea of something like the way Task Manager sits there with a square with a dark background and a solid color rises and falls showing Cpu usage. Task Manager's is green. You could do the same look with blue and it would be a great pair because at least for my daily use, Cpu use and memory use are far from the same, and I don't currently have anything fancy installed that dynamically monitors memory.

Process Explorer does what you're asking.  Launch it and look under Options > Tray Icons.

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,136
    • View Profile
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #11 on: July 16, 2015, 03:43:35 PM »
Give this a try, please:

You are quick! :) Thanks! Is it possible for you to base the code on the "free" RAM instead on the "available" RAM? For me, free RAM is a much better indicator: things tend to slow down when all free RAM is used up (probably because of increased pagefile usage).

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,136
    • View Profile
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #12 on: July 16, 2015, 03:51:46 PM »
http://www.donationc...ouser/ProcessPiglet/

Just one more thing (ok, two): You could put your nice video demo of it on http://www.donationc...ouser/ProcessPiglet/ . And the "Click _here_ to forcefully restart this process" could also include an option to just kill the process (that would be one use scenario for me).

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,664
    • View Profile
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #13 on: July 16, 2015, 04:36:11 PM »
s it possible for you to base the code on the "free" RAM instead on the "available" RAM? For me, free RAM is a much better indicator: things tend to slow down when all free RAM is used up (probably because of increased pagefile usage).

AFAIK, Free is (roughly) the value of Available minus Cached.  However, the data in Cached is not written to disk, i.e., it's not swapped to disk.  Windows just holds it in memory in case it needs to be used again and it's immediately overwritten, in RAM, by new data if the system needs the RAM.  That is, this all happens in RAM, not the HDD/SSD.  In other words, your system should release that cached RAM immediately when it's needed and your system shouldn't slow down.

At any rate, I can't seem to find an MSDN article on how to retrieve those Free and/or Cached values anyway.   :(  Maybe somebody else can point me to one.

brotherS

  • Master of Good Ideas
  • Honorary Member
  • Joined in 2005
  • **
  • Posts: 2,136
    • View Profile
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #14 on: July 16, 2015, 05:02:30 PM »
Thanks for the explanation, I'll play around with different values and see how it works!  8)

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 2,778
    • View Profile
    • Donate to Member
Re: Software wanted: warn when free RAM falls below xxx MB
« Reply #15 on: July 17, 2015, 01:36:04 AM »
For a continues display of memory and CPU load I'm using True Launch Bar (shareware), with the System Monitor plugin set for "History (line) 16". When hovered with the mouse it shows a lot of relevant information:
Screenshot - 17-07-2015 , 08_28_45.png

The Page(file) info I hardly ever user, but the CPU and memory lines (green & red) sometimes give me a clue why my system reacts a little slow (i7 4800MQ @ 2.7 GHz with 16 GB :P).