RE: Low memory killer problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your remind,
I found lowmemorykiller.c have been removed, and ION module still exist since v4.12-rc1.
I will pay attention to ION module.

But I still have 3 questions,
Is there any substitute for low-memory-killer after kernel v4.12-rc1 ?
Can I accounted the ION free to free memory?
Is there any different from ION free and the normal system memory free?

ION free means:   IonTotal - IonInUse  - ION reserved memory.
Thanks a lot.

-----Original Message-----
From: Greg KH [mailto:gregkh@xxxxxxxxxxxxxxxxxxx] 
Sent: Monday, May 15, 2017 5:00 PM
To: Zhiyuan Zhu(朱志遠)
Cc: vinmenon@xxxxxxxxxxxxxx; linux-mm@xxxxxxxxx; skhiani@xxxxxxxxxxxxxx; torvalds@xxxxxxxxxxxxxxxxxxxx; Jet Li(李發傑)
Subject: Re: Low memory killer problem

On Mon, May 15, 2017 at 08:22:38AM +0000, zhiyuan_zhu@xxxxxxx wrote:
> Dear Greg,
> 
> Very sorry my mail history is lost.
> 
> I found a part of ION memory will be return to system in android 
> platform, But these memorys  can’t accounted in low-memory-killer strategy.
> …
> And I also found ION memory comes from,  kmalloc/vmalloc/alloc pages/reserved memory.
> I understand reserved memory shouldn't accounted to free memory.
> But the memory which alloced by kmalloc/vmalloc/alloc pages, can be reclaimed.
> 
> But the low-memory killer can't accounted this part, Many thanks.
> 
> Code location, 
>    ---> drivers/staging/android/lowmemorykiller.c   -> lowmem_scan

That file is gone from the latest kernel release, sorry.  So there's not much we can do about this code anymore.

See the mailing list archives for what should be used instead of this code, there is a plan for what to do.

Also note that the ION code has had a lot of reworks lately as well.

good luck!

greg k-h

��.n������g����a����&ޖ)���)��h���&������梷�����Ǟ�m������)������^�����������v���O��zf������




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux