Hi All,
I am trying to understand working of low memory killer. Can you please
suggest from where lowmem_shrink function is getting called. And in which
part of source code the the threshold values will be compared or how the OS
comes to know to start the low memory killer. And in which source
Hi Raja Pawn,
I am trying to test the low memory killer driver. I am not able to simulate
it.
On Thursday, November 18, 2010 11:09:03 AM UTC+5:30, Raja Pavan wrote:
>
> We are testing the lowmemorykiller.c driver of android, using a sample
> test application that malloc() and memset() memory.
Unfortunately there are no unit test cases; at the end of the day, this is
often a part of tuning the platform and seeing that it is behaving
appropriately in use.
That said, I would really like to have some CTS tests for this. These are
tricky to do since the guarantees are so loose, but I think
Is there any test methodology available from android, for testing LMK
driver?
On Nov 25, 11:17 am, Dianne Hackborn wrote:
> There are no guarantees about things being killed at an exact level. In
> fact what the current "memory level" is, is quite fuzzy if not just outright
> not knowable.
>
> I
There are no guarantees about things being killed at an exact level. In
fact what the current "memory level" is, is quite fuzzy if not just outright
not knowable.
Is there a problem you are trying to address?
On Wed, Nov 24, 2010 at 9:49 PM, Raja Pavan wrote:
> Hi Dianne
>
> I did run the test
Hi Dianne
I did run the test application (shared with you) on emulator.
It was killed.
It has been observed that the adb shell is also killed (as it is not
available anymore)
But How do I know whether the process is crashing at the watermark
level?
Thanks
Raja
On Nov 23, 10:19 pm, Dianne Hac
Please let me know if there is some test appliaction available in
android repository. (CTS or some where)
I am pasting the code of sample test application below.
#include
#include
#include
#include
int main()
{
int size,i=0;
int **ptr = NULL;
int pid[6];
pid_t my_pid = (pid_t) 0;