How to add LMK(low memory killer) support to any kernel?

359 views
Skip to first unread message

İlhan Atahan

unread,
Jun 20, 2020, 10:17:46 AM6/20/20
to Android-x86
Hi to everyone;

This feature is supported by kernel 4.19.7.

I am thinking of using this feature with other kernels.

I opened a topic because I did not know enough about it, can you help me?

Antony Stone

unread,
Jun 20, 2020, 10:48:20 AM6/20/20
to andro...@googlegroups.com
This sounds like a question you should ask on a Linux kernel (developers')
mailing list.

It's nothing Android-specific, so I don't think you're going to find most of the
people with that expertise here.


Antony.

--
Was ist braun, liegt ins Gras, und raucht?
Ein Kaminchen...

Please reply to the list;
please *don't* CC me.

Rahul Jain

unread,
Jun 20, 2020, 11:52:40 AM6/20/20
to andro...@googlegroups.com


On Sat, 20 Jun, 2020, 7:47 PM İlhan Atahan, <ata.ilhan...@gmail.com> wrote:
Hi to everyone;

This feature is supported by kernel 4.19.7.

I am thinking of using this feature with other kernels.

I am not an expert but You may find good read from - 

As per it from 4.12 kernel it is removed from kernel space and userspace take care of it. 

Below config may enable in kernel driver. 
CONFIG_ANDROID_LOW_MEMORY_KILLER=y

I opened a topic because I did not know enough about it, can you help me?

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-x86...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-x86/7088b51b-196f-4ca3-aea6-3c8fd99e2949o%40googlegroups.com.

İlhan Atahan

unread,
Jun 20, 2020, 1:28:22 PM6/20/20
to Android-x86
Thank you Anthony. I think this is an android feature.

20 Haziran 2020 Cumartesi 17:48:20 UTC+3 tarihinde Antony Stone yazdı:

İlhan Atahan

unread,
Jun 20, 2020, 1:32:26 PM6/20/20
to Android-x86
Also, I am not an expert.So i started this topic.Thank you.

20 Haziran 2020 Cumartesi 18:52:40 UTC+3 tarihinde Rahul Jain yazdı:


On Sat, 20 Jun, 2020, 7:47 PM İlhan Atahan, <ata.ilha...@gmail.com> wrote:
Hi to everyone;

This feature is supported by kernel 4.19.7.

I am thinking of using this feature with other kernels.

I am not an expert but You may find good read from - 

As per it from 4.12 kernel it is removed from kernel space and userspace take care of it. 

Below config may enable in kernel driver. 
CONFIG_ANDROID_LOW_MEMORY_KILLER=y

I opened a topic because I did not know enough about it, can you help me?

--
You received this message because you are subscribed to the Google Groups "Android-x86" group.
To unsubscribe from this group and stop receiving emails from it, send an email to andro...@googlegroups.com.

Chih-Wei Huang

unread,
Jun 21, 2020, 12:05:17 AM6/21/20
to Android-x86
LMK was developed by Google for Android (only).
However, its design was obviously objected by the
upstream developers so it was removed from the
mainline kernel since 2017.

Google has developed the userspace low memory killer daemon (lmkd)
to replace the in-kernel lmk driver, as Rahul pointed out.
In short, the driver was deprecated.
So why do you still want to use it?


İlhan Atahan <ata.ilhan...@gmail.com> 於 2020年6月21日 週日 上午1:32寫道:

İlhan Atahan

unread,
Jun 21, 2020, 3:37:11 AM6/21/20
to Android-x86
2GB Ram is not enough for me😀.

I use swap disk, but lmk can reduce swap need.

spin877

unread,
Jun 21, 2020, 10:41:05 AM6/21/20
to Android-x86

echo 3 > /proc/sys/vm/drop_caches

İlhan Atahan

unread,
Jun 22, 2020, 4:02:43 AM6/22/20
to Android-x86
What does it do? Spin877

spin877

unread,
Jun 22, 2020, 5:09:55 AM6/22/20
to Android-x86
free up some RAM. useful only for devices with 2gb RAM. I use it in a script on my Chinese tablet with low RAM

İlhan Atahan

unread,
Jun 22, 2020, 5:49:38 AM6/22/20
to Android-x86
Thanks, this might work for me (spin877).

I still don't know what to do for lmk

Reply all
Reply to author
Forward
0 new messages