Post Reply

[KERNEL][INFO][2012-10-18] _thalamus Nexus S kernels - Stable & Test releases

OP apatal

24th July 2012, 12:57 PM   |  #421  
Senior Member
Thanks Meter: 64
 
333 posts
Join Date:Joined: Dec 2011
Quote:
Originally Posted by _thalamus

Yeah, KSM increases power usage reasonably significantly. And no, there isn't anything else, but hey, performance over powersaving anyday, if the tradeoff is worthwhile.

Good news is I managed to hack bigmem so it works on any ROM and doesn't break the camcorder. It gives an additional ~53MB so KSM can be disabled and the power drain will drop to normal levels.



.

Could this be made cumulative, as in bigmem+ksm=even more free memory? (taking performance over battery)

Sorry, if it's an overly stupid question.



Sent from my Nexus S using xda app-developers app
The Following User Says Thank You to Randomwalker For This Useful Post: [ View ]
_thalamus
24th July 2012, 01:54 PM   |  #422  
Guest
Thanks Meter: 0
 
n/a posts
Quote:
Originally Posted by Randomwalker

Could this be made cumulative, as in bigmem+ksm=even more free memory? (taking performance over battery)

Sorry, if it's an overly stupid question.



Sent from my Nexus S using xda app-developers app

It could. But what is the point? How much free memory do you want lol?
24th July 2012, 03:13 PM   |  #423  
Senior Member
Thanks Meter: 64
 
333 posts
Join Date:Joined: Dec 2011
Quote:
Originally Posted by _thalamus

It could. But what is the point? How much free memory do you want lol?

Well, seeing that with a number of push services running I currently am running at around 20MB free RAM, I guess that 53MB would help but more even better .

But I am also one of those who is pretty OK with battery life, as long as I get 18h.

Sent from my Nexus S using xda app-developers app
24th July 2012, 03:25 PM   |  #424  
polobunny's Avatar
Senior Member
Flag Montreal
Thanks Meter: 2,461
 
6,135 posts
Join Date:Joined: Oct 2011
More
Quote:
Originally Posted by _thalamus

It could. But what is the point? How much free memory do you want lol?

MOAR. Always.

I'm more pissed at the apps being poorly developped than the kernels to be frank. It seems like it's always on the kernel devs to implement new ways of using the hardware rather than app devs to make stuff that doesn't stink. Too much services running in the background for nothing, too much ram being consumed for simple tasks.
My Nokia 3210 could send SMS right away. I find it sad when I see MMS.apk peaking at 80mb when it sends a SMS...
24th July 2012, 05:12 PM   |  #425  
Senior Member
Thanks Meter: 41
 
256 posts
Join Date:Joined: Feb 2009
Quote:
Originally Posted by Randomwalker

Well, seeing that with a number of push services running I currently am running at around 20MB free RAM, I guess that 53MB would help but more even better .

But I am also one of those who is pretty OK with battery life, as long as I get 18h.

Sent from my Nexus S using xda app-developers app

Damn what are you running? I always have 100 - 120 MB of free ram. Also a fully charged battery for me usually lasts 12 hours. I wish I could get 18 hours out of my batteries, but to do that I would have to avoid using the phone. :P
The Following User Says Thank You to Ron Overdrive For This Useful Post: [ View ]
_thalamus
25th July 2012, 12:38 AM   |  #426  
Guest
Thanks Meter: 0
 
n/a posts
So, I finished the rewrite of IDLE2 off today.

So far it seems ok, well, it's still the same code which takes the system into idle, it's just a different way of implementing it, which hopefully will be better.

I will be doing a release with it included tomorrow assuming no issues.

From the git commit:

Code:
v0.200 is a complete rewrite of the
majority of the idle2 codebase. 2 idle states have now been
fully implemented and are available at all times. The
states are IDLE and IDLE2, which is DEEP-IDLE TOP OFF.
DEEP-IDLE TOP ON is not implemented, as it has no benefit.

The hot code paths are now more optimised and faster.
Workqueues are used to inform idle2 of events from other subsystems,
such as audio, usb connected and bluetooth.
PM notifiers are used to notify idle2 of a suspend, although it should
never get into a situation where it is working at the same time as the
system is suspending.

The IDLE2 mode will only be activated when audio has been playing back
for more than 30 seconds, the device is not connected to USB, bluetooth is
not active (it can be enabled, but not be actively working) various clocks
are gated (in practice, this means that the screen has to be off), certain
subsystems are not active and there are no interrupts pending.

The early suspend and late resume hooks have been removed as they are not
required, as have the suspend and resume hooks.

Many of the idle2 specific functions have been split into idle2.h to keep
them separate from the stock code.

IDLE2 can be disabled with the following command:
echo 1 > /sys/module/cpuidle/parameters/idle2_disabled

Stats can be obtained from the standard cpuidle interface, which, for
IDLE2 is located at:
/sys/devices/system/cpu/cpu0/cpuidle/state1
The Following 2 Users Say Thank You to For This Useful Post: [ View ]
25th July 2012, 12:56 AM   |  #427  
apatal's Avatar
OP Recognized Contributor
Flag Manila
Thanks Meter: 2,043
 
3,327 posts
Join Date:Joined: Feb 2012
More
Quote:
Originally Posted by _thalamus

So, I finished the rewrite of IDLE2 off

Looks promising. Keep us posted.

Sent from my Nexus S
25th July 2012, 04:51 AM   |  #428  
towelboy's Avatar
Senior Member
Thanks Meter: 157
 
628 posts
Join Date:Joined: Jun 2012
Sorry for asking such a noob question but what is IDLE2 and how does it affect the kernel?
25th July 2012, 05:56 AM   |  #429  
Senior Member
Thanks Meter: 26
 
188 posts
Join Date:Joined: Apr 2011
Quote:
Originally Posted by danshuynh

Sorry for asking such a noob question but what is IDLE2 and how does it affect the kernel?

From my understanding, its a improved way of suspending your device. Usually when music is playing, the CPU isn't fully suspended, using more power.

Sent from my Nexus S using xda app-developers app
The Following User Says Thank You to noobiekins For This Useful Post: [ View ]
25th July 2012, 06:09 AM   |  #430  
apatal's Avatar
OP Recognized Contributor
Flag Manila
Thanks Meter: 2,043
 
3,327 posts
Join Date:Joined: Feb 2012
More
Quote:
Originally Posted by danshuynh

Sorry for asking such a noob question but what is IDLE2 and how does it affect the kernel?

For more information, please read this thread.

The Following 2 Users Say Thank You to apatal For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Nexus S General by ThreadRank