Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,810,757 Members 36,625 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
Randomwalker
Old
#421  
Senior Member
Thanks Meter 64
Posts: 333
Join Date: Dec 2011
Quote:
Originally Posted by _thalamus View Post
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: [ Click to Expand ]
_thalamus Old
#422  
Guest
Thanks Meter 0
Posts: n/a
Quote:
Originally Posted by Randomwalker View Post
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?
 
Randomwalker
Old
#423  
Senior Member
Thanks Meter 64
Posts: 333
Join Date: Dec 2011
Quote:
Originally Posted by _thalamus View Post
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
 
polobunny
Old
#424  
polobunny's Avatar
Senior Member
Thanks Meter 2,434
Posts: 6,050
Join Date: Oct 2011
Location: Montreal
Quote:
Originally Posted by _thalamus View Post
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...
Please press THANKS if someone helps you!

My current configuration:
 

Device: Samsung Galaxy S3 SGH-i747M
ROM: cm-11-20140919-NIGHTLY-d2lte
Kernel: stock (testing harkness bld!)
Baseband: I747MUMUEND3
Bootloader: I747MVLDMF1
Governor: Interactive


Older device: Nexus S i9020A
 
Ron Overdrive
Old
#425  
Senior Member
Thanks Meter 41
Posts: 256
Join Date: Feb 2009
Quote:
Originally Posted by Randomwalker View Post
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: [ Click to Expand ]
_thalamus Old
#426  
Guest
Thanks Meter 0
Posts: n/a
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: [ Click to Expand ]
 
apatal
Old
#427  
apatal's Avatar
Recognized Contributor - OP
Thanks Meter 2,019
Posts: 3,317
Join Date: Feb 2012
Location: Manila
Quote:
Originally Posted by _thalamus View Post
So, I finished the rewrite of IDLE2 off
Looks promising. Keep us posted.

Sent from my Nexus S
 
towelboy
Old
#428  
towelboy's Avatar
Senior Member
Thanks Meter 157
Posts: 628
Join Date: Jun 2012
Sorry for asking such a noob question but what is IDLE2 and how does it affect the kernel?
 
noobiekins
Old
#429  
Senior Member
Thanks Meter 26
Posts: 187
Join Date: Apr 2011
Quote:
Originally Posted by danshuynh View Post
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
Nexus 4 - PA - FK
Nexus 4 - PSX - FK
N7 - PA - FK
The Following User Says Thank You to noobiekins For This Useful Post: [ Click to Expand ]
 
apatal
Old
#430  
apatal's Avatar
Recognized Contributor - OP
Thanks Meter 2,019
Posts: 3,317
Join Date: Feb 2012
Location: Manila
Quote:
Originally Posted by danshuynh View Post
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: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes