Skip to contentSkip to conversation

android-kernel memory reclaim x20 boost?

DISCUSSION Minchan Kim 4 participants 6 messages Aug 18, 2010 – Aug 19, 2010 Memory management

lore
Share & tools
lore
#0 lore raw

Hello Android forks,

I could have a question in android kernel mailing list.
But I think many mm guys in linux-mm also might have a interest in it. So I send a question in linux-mm mailing list.

I saw the advertisement phrase in this[1].

"Kernel Memory Management Boost: Improved memory reclaim by up to 20x, which results in faster app switching and smoother performance on memory-constrained devices."

But I can't find any code for it in android kernel git tree.
If it's your private patch, could you explan what kinds of feature can enhance it by up to 20x?

If it is really good, we can merge it to mainline.

[1] http://developer.android.com/sdk/android-2.2-highlights.html

Signature · 8 lines
Kind regards,
Minchan Kim

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#1 lore raw
Quoted 1 line · El Thu, 19 Aug 2010 00:18:57 +0900 Minchan Kim <[email protected]> escribió:

Hello Android forks,

[ ... ]

Quoted 8 lines

I saw the advertisement phrase in this[1].

"Kernel Memory Management Boost: Improved memory reclaim by up to 20x, which results in faster app switching and smoother performance on memory-constrained devices."

But I can't find any code for it in android kernel git tree.

Maybe the enhancements are on the Dalvik VM (shooting in the dark here)

Quoted 7 lines

If it's your private patch, could you explan what kinds of feature can enhance it by up to 20x?

If it is really good, we can merge it to mainline.

[1] http://developer.android.com/sdk/android-2.2-highlights.html

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>

#2 lore raw
Quoted 8 lines · Alejandro Riveira Fernández
Quoted 1 line · El Thu, 19 Aug 2010 00:18:57 +0900 Minchan Kim <[email protected]> escribió:

Hello Android forks,

[ ... ]

Quoted 3 lines

I saw the advertisement phrase in this[1].

Quoted 7 lines
Quoted 5 lines

"Kernel Memory Management Boost: Improved memory reclaim by up to 20x, which results in faster app switching and smoother performance on memory-constrained devices."

But I can't find any code for it in android kernel git tree.

 Maybe the enhancements are on the Dalvik VM (shooting in the dark here)

Thanks.
Android guys! Could you confirm this?

Signature · 8 lines
Kind regards,
Minchan Kim

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#3 lore raw
Quoted 14 lines · Minchan Kim
Quoted 12 lines · Alejandro Riveira Fernández
Quoted 1 line · El Thu, 19 Aug 2010 00:18:57 +0900 Minchan Kim <[email protected]> escribió:

Hello Android forks,

[ ... ]

Quoted 7 lines

I saw the advertisement phrase in this[1].

"Kernel Memory Management Boost: Improved memory reclaim by up to 20x, which results in faster app switching and smoother performance on memory-constrained devices."

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

But I can't find any code for it in android kernel git tree.

 Maybe the enhancements are on the Dalvik VM (shooting in the dark here)

Thanks.
Android guys! Could you confirm this?

It is more likely referring to this change:

Author: San Mehat <[email protected]>
Date:   Wed May 5 11:38:42 2010 -0700

staging: android: lowmemkiller: Substantially reduce overhead during reclaim

This patch optimizes lowmemkiller to not do any work when it has
an outstanding
kill-request. This greatly reduces the pressure on the task_list lock (improving interactivity), as well as improving the vmscan performance when under heavy memory pressure (by up to 20x in tests).

Note: For this enhancement to work, you need CONFIG_PROFILING

Signature · 7 lines
Arve Hjønnevåg

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
#4 lore raw
Quoted 17 lines · Arve Hjønnevåg
Quoted 16 lines · Minchan Kim
Quoted 14 lines · Alejandro Riveira Fernández
Quoted 1 line · El Thu, 19 Aug 2010 00:18:57 +0900 Minchan Kim <[email protected]> escribió:

Hello Android forks,

[ ... ]

Quoted 8 lines

I saw the advertisement phrase in this[1].

"Kernel Memory Management Boost: Improved memory reclaim by up to 20x, which results in faster app switching and smoother performance on memory-constrained devices."

But I can't find any code for it in android kernel git tree.

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

 Maybe the enhancements are on the Dalvik VM (shooting in the dark here)

Thanks.
Android guys! Could you confirm this?

It is more likely referring to this change:

There are other changes after the one mentioned that remove the requirement for CONFIG_PROFILING
(and the subsequent task_struct leak that was caused by it)

-san

Quoted 19 lines

Author: San Mehat <[email protected]>
Date:   Wed May 5 11:38:42 2010 -0700

   staging: android: lowmemkiller: Substantially reduce overhead during reclaim

   This patch optimizes lowmemkiller to not do any work when it has an outstanding
   kill-request. This greatly reduces the pressure on the task_list lock (improving interactivity), as well as improving the vmscan performance when under heavy memory pressure (by up to 20x in tests).

   Note: For this enhancement to work, you need CONFIG_PROFILING

--
Arve Hjønnevåg

Signature · 2 lines
San Mehat  |  Staff Software Engineer  |  Infrastructure  |  Google Inc.
415.366.6172 ([email protected])
#5 lore raw
Quoted 24 lines · San Mehat
Quoted 23 lines · Arve Hjønnevåg
Quoted 21 lines · Minchan Kim
Quoted 8 lines · Alejandro Riveira Fernández
Quoted 1 line · El Thu, 19 Aug 2010 00:18:57 +0900 Minchan Kim <[email protected]> escribió:

Hello Android forks,

[ ... ]

Quoted 3 lines

I saw the advertisement phrase in this[1].

Quoted 7 lines
Quoted 5 lines

"Kernel Memory Management Boost: Improved memory reclaim by up to 20x, which results in faster app switching and smoother performance on memory-constrained devices."

But I can't find any code for it in android kernel git tree.

 Maybe the enhancements are on the Dalvik VM (shooting in the dark here)

Thanks.
Android guys! Could you confirm this?

Quoted 8 lines
Quoted 2 lines

It is more likely referring to this change:

There are other changes after the one mentioned that remove the requirement for CONFIG_PROFILING
(and the subsequent task_struct leak that was caused by it)

-san

It seems to be not a issue of mainline but only one of android lowmemkiller. Thanks for the information, Android forks.

Signature · 8 lines
Kind regards,
Minchan Kim

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>