free RAM memory

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
Cenz
Posts: 1
Joined: 10 Jun 2013 10:31

free RAM memory

Post by Cenz » 10 Jun 2013 10:35

I would like to read the free memory and automatically kill tasks to increase free memory
thank you

RyanB
Posts: 4
Joined: 17 May 2013 12:43

Re: free RAM memory

Post by RyanB » 13 Jun 2013 16:24

Me too!

pilusona
Posts: 39
Joined: 02 Dec 2012 03:47
Location: India

Re: free RAM memory

Post by pilusona » 20 Jun 2013 04:39

Me too :)
Samsung Galaxy Note 8
Android 9.
Non-rooted

evebrea
Posts: 116
Joined: 12 Aug 2013 15:28

Re: free RAM memory

Post by evebrea » 21 Aug 2013 02:44

me too!

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: free RAM memory

Post by Martin » 22 Aug 2013 18:14

You could read the file /proc/meminfo to get some memory stats (action Init Variable Text File: /proc/meminfo) and use a script to extract the relevant part until a built-in action becomes available.

Regards
Martin

bobchernow
Posts: 56
Joined: 16 Mar 2013 14:10

Re: free RAM memory

Post by bobchernow » 24 Aug 2013 17:01

After issuing three command Martin suggests, this code will calculate the free ram.


mem=split(stdout, "kB");
memfree=getElement(mem, 1);
memcached=getElement(mem, 3);
memfree=substring(memfree, indexOf(memfree, ":")+1, length(memfree));
memcached=substring(memcached, indexOf(memcached, ":")+1, length(memcached));
global_totalfree="{(memfree+memcached)/1024,numberformat,0}";

Locked