yashsingh1/xdaforums huggingface dataset:
[Nexus S Android Development] MarkRain:
Hi, i'd like to try the marmite kernel on my nexus...

I'm running the old CM9, ICS than, so...which version of marmite should i try?

the v1.5b that can be found in the second post?? which is the latest marmite that can be installed in ICS?

thanks in advance :D
[Nexus S Android Development] :
Yes, that's right
[Nexus S Android Development] MarkRain:
Thank you, i'll try it asap
[Nexus S Android Development] onmyouji:
Can you share your experience here? I also use CM9, wanna know whether marmite runs better than CM9 default kernel.

Thanks!
[Nexus S Android Development] CommanderDuplex:
I ask again for Zram , Zram does not create a Swap file on the flash memory but it compress the Ram by 10% so its right it takes a little CPU power but we have overclock for them and the nexus s has a huge Ram exigence...
[Nexus S Android Development] :
I'm having good results with zcache on the one x+

I wonder if it's portable?
[Nexus S Android Development] MarkRain:
Sure! i'll test it in the next days and i'll report here my impressions.

At the moment i don't see any big improvement to be honest, i mean, regarding pure performance it's just as smooth as the default CM9 kernel (way faster than CM10 though).

I installed it just for the addons i missed in CM9 like BLD and stuff...

PS: idk if it's a bug or i'm just doing something wrong but if i go into Settings->Advanced and than press on the second entry that's Idle states i get an immediate reboot of the device!! :eek:
[Nexus S Android Development] CommanderDuplex:
idk but you can try it with Zram :p

no seriously, in my GN Zram works pretty good it improve the general system performance a little and when i use a lot of multitask Android wont close the background process

so i hope that on the Nexus S you can reach something similar

Edit:

Is Zcache an HTC feature? or can you port it on every device ?
[Nexus S Android Development] polobunny:
No, zcache is not an HTC feature. But zram, zcache, compcache, ramzswap all come from the same idea and very similar implementations. They're useful to some extent, mostly if you're RAM starved. If you're the kind of user who uses less RAM but more processing power, you're better without the overhead. On the other end of the spectrum, if you're the kind of user who multitasks a lot, then it can help you a bit.

The problem with older devices is while they're low on ram, their processor is often an older single core one, and ram compressing technology isn't as transparent as it should be. Effectively, you're trading force closes apps being killed to free some ram for a slower phone... No idea how it would fare on the Nexus S though!
[Nexus S Android Development] alen1901:
Zram is used by default on galaxy s4. I ask myself, why oh why, on 2gb ram device.. Samsung samsung, allways different and strange.

Sent from Sparkling Nexus 4
[Nexus S Android Development] Gingo21:
Devil kernel by DerTeufel1980 has Zram and zcache, so yes It's portable.
[Nexus S Android Development] Me Gusta:
But the galaxy s4 is awesome! :D Do miss some things on my galaxy s4 that were there on my nexus s though..

Me Gusta!
[Nexus S Android Development] alen1901:
Naah, bloat everywhereeee. :D

Sent from Sparkling Nexus 4
[Nexus S Android Development] Me Gusta:
True.. But I own a i9505 so I expect a lot of AOSP development as soon as the s4 google edition is released! And else I'll just have to use the aosp roms that are already available :) rocking it with my s600! Who's laughing now haha! ;) you're right though official google aosp support and rasbeanjelly is awesome

Me Gusta!

Ps. Sorry for off-topic Bedalus!
[Nexus S Android Development] alen1901:
S4 roms will never be good as on nexus, samsung hideing some sources etc. Maybe it with snapdragon samsung doesnt have anything to hide, dunno. And yeah, why did you pay that much money on a phone that has more sensors then satellite if you are going to put aosp/cm on it and loose all of that. :D sorry for OT. Lets stop now. :)

Sent from Sparkling Nexus 4
[Nexus S Android Development] :
Looks like derteufel's built a 3.1 based kernel
[Nexus S Android Development] CommanderDuplex:
Whoaaatt :confused: it exsists a 3.1.X kernel for the Nexus S and the Galaxy Nexus still stuck [MENTION=3800434]3.0[/MENTION].X :eek:

can someone told me why there are so less 3.1 based kernel for the NS ? Instable or not finished ?
[Nexus S Android Development] polobunny:
lolomgwtf comes to mind.

Apple didn't think Samsung was different enough on their designs apparently. :p
[Nexus S Android Development] rodem77:
I've a question about OTG: someone request if this function could be introduced in this kernel right? But if I've a cable USB OTG and I install some app from the store could I be able to use and external USB storage also without kernel support or not?

Thankyou
[Nexus S Android Development] polobunny:
No you need kernel support to make it work.
[Nexus S Android Development] :
Here are zcache enabled versions:

aosp: http://d-h.st/sZJ

cm/iocontrol: http://d-h.st/T0P

zcache is patched all the way to the 3.8 version, which is where it was superseded by something called ramster (by the same developer). Zcache also uses lzo to compress memory pages, so I've updated this algorithm too, from the 2005 to the 2012 version, which apparently boasts better compression and decompression speeds.

I've no way to test these. They may work, they might not! Please feel free to have a go. You can see zcache at work by looking at the stats generated at /sys/kernel/mm/zcache

Please report back!
[Nexus S Android Development] Setting.Out:
3.4...??? (runs and hides).. lol
[Nexus S Android Development] kriout:
it boots ... i don't know how to verify if it really works and if improve performances ... ( flashed cm version without wiping cache and dalvik )
[Nexus S Android Development] polobunny:
Party hard?

I still havent got to sell my NS, it's on my desk right now and I swear sometimes I want to root it again. :p
[Nexus S Android Development] :
You could keep it as a media player. It's got a decent dac. It sounds better than this beats audio garbage.
[Nexus S Android Development] polobunny:
I wish but I don't use public transit anymore so honestly no time where I'd use it. At home I got my 5.1, in the car I swapped my radio for a better one, at work the radio plays for everyone... :p
[Nexus S Android Development] andrei1015:
Do it, do it :p
[Nexus S Android Development] Lar5:
My i9023 running latest SlimBean seems to work fine with the zcache enabled.

It's hard to say if it is better than v. 8.7. I can't say with 30 min. testing :silly:
[Nexus S Android Development] leap_ahead:
+1 for all working ...:p
[Nexus S Android Development] :
Oh cool, heh, that was easy! Usually there's a lot of pain trying to port stuff. This just worked perfectly. Are there stats? Does compress_poor value change when you open another app for example?
[Nexus S Android Development] leap_ahead:
Yes i see inside on sys.kernel.mm.zcache folder
[Nexus S Android Development] :
And is there any noticeable improvement in performance or multitasking?
[Nexus S Android Development] leap_ahead:
With zcache is take more ram ..but is fast !!
[Nexus S Android Development] :
Can you quantity how much?
[Nexus S Android Development] leap_ahead:
I use my nexus for wifi and internet broswer .:p
[Nexus S Android Development] noloukos:
i'm currently using marmite cm with zcache with miui and i have about 165-170 mb free ram and is fast and smooth
[Nexus S Android Development] kriout:
i opened ff and it changed from 34664 to 37880
[Nexus S Android Development] :
Can someone

1) put their phone in airplane

2) power off

3) power on

4) wait three minutes

5) use some app to see the free ram and the used ram

I need this doing by one person on the zcache enabled kernel and the previous kernel. After flashing the other kernel, reboot once then power off and follow the above steps the exact same way
[Nexus S Android Development] .stendeck:
Some minutes ago I tried a slightly different test:

- power off (already installed with marmite 8.7 aosp, bigmem)

- power on

- wait five minutes

- go to apps setting -> active apps -> results: used 190 MB | free 220 MB

- power off

- start into recovery -> clear cache -> clear dalvik cache -> install marmite (aosp, zcache) -> fix permission

- reboot

- wait some minutes

- power off

- pulled battery for some minutes (yes, I'm paranoid)

- power on

- wait five minutes

- go to apps setting -> active apps -> results: used 205 MB | free 205 MB

Maybe this would give a first impression.
[Nexus S Android Development] :
That's the same test! Very nicely done. To be extra sure you could go back to the previous kernel and also do the cache and dalvic wipe.

But assuming the results are representative, it does look like zcache is taking up extra ram. This makes sense. It's caching stuff from the disk so it'll use some space. I think I need to know a bit more about what it does and whether it's worth it. I guess it will reduce some disk io because of what is cached in ram. This should improve performance, as reading and writing to disk is such a bottleneck
[Nexus S Android Development] .stendeck:
You're right. I'm back in some minutes. ;)
[Nexus S Android Development] Lar5:
zcache kernel

test a. 92 MB free

test b. 138 MB free

8.7 kernel

test a. 100 MB free

test b. 139 MB free

I can't feel any difference between the two kernels.

I guess more people should make similar test

EDIT: Ops! I did't wipe cache when switching kernel :rolleyes:
[Nexus S Android Development] .stendeck:
Okay, I definitively get the same results after reproducing my steps again with marmite 8.7: used 188~192 MB | free 218~222 MB

Therefore, my difference between marmite_zcache and marmite_8.7 seems to be around 15 MB.
[Nexus S Android Development] :
It's a fair chunk of memory. The pages that are compressed must be at minimum half their original size, so that means at least 30mb of stuff in the cache.
[Nexus S Android Development] polobunny:
lwn has a good primer on zache for those interested. While old, it explains well enough what it does and what are the tradeoffs.

http://lwn.net/Articles/397574/

It also explains in more detail the dilemma of using zcache on a single core device and thus running the chance of having a CPU bottleneck instead of a disk i/o one.
[Nexus S Android Development] :
Yeah, it looks useful. It certainly seems like there is a plenty of cache in use for various apps. For example:

Chrome: 51mb

xda: 10mb

fruit ninja: 6mb

google search: 6mb

appy geek: 6mb

Backlight: 5mb (WTF??)

Swype: 5mb

Gmail: 4MB etc etc etc...

I didn't realise that so many apps used cache. So a 15MB overhead in RAM might be worth it for the performance improvements in the various cache hungry apps... I suppose the best way to see is to get used to it for a few days, and flash back to the previous kernel and decide whether it's better or worse.
[Nexus S Android Development] spider623:
hey bedalus something out of topic i was roaming your devhost rep and i saw a coremanager.apk, what does it do?

update on zcache:

what the **** did you guys do to the phone, i use buzzlauncher on cm10.1 nightly with almost all the installation memory full and for some strange reason my phone doesn't lag as much as before,not a placempo effect i checked it also when i clean the ram(system) i usually get 190mb free tops in cm this time it was 230, no services cleaned!
[Nexus S Android Development] :
Can you flash back to the previous kernel and double check?

(To answer your first question, the core manager app is a program to help control some options on the htc one x+ have a look: http://xdaforums.com/showpost.php?p=42770772&postcount=863 I suck at app development! I know nothing about java!)
[Nexus S Android Development] ekerazha:
Does Android (stock kernel) use a swap device on the storage memory? Being flash memory (with a limited number of write cycles) I thought there wasn't a swap device on the flash memory. And if there isn't a swap device on the flash memory, using zRAM (which compresses paging data) should decrease RAM usage (since data get compressed) because instead of

Data -> [RAM]

you have

Data -> [RAM] -> Compressed paging data -> [RAM]

:confused:
[Nexus S Android Development] :
A swap area on flash goes against how android was designed to work. Zram and zcache are not quite the same in that respect.
[Nexus S Android Development] spider623:
Did just like I said it gives me more for some reason also checked on clean rom(twrp manager beta testing) and I get the same results btw is it normal to use the free space of the 1gb rom partition?

Also I found a nexus 4 8gb new for €230 should I go for it and make my Nexus S a robot/Ubuntu/mp3 player? In my country nexus 4 is sold for 430 8gb 460 16gb btw and I heavily use cloud and only have 2gb of offline music
[Nexus S Android Development] :
Sorry, what's using the Rom partition? Zcache?

Yes, 230 sounds like a good price. Yes, keep the nexus s for music. It sounds better than my beats audio hox+
[Nexus S Android Development] ekerazha:
Uh... I read zRAM instead of zCache :D
[Nexus S Android Development] spider623:
yes the zcache around 15mb
[Nexus S Android Development] ayrtonforever:
do you recommend cache and dalvik cache wipe after flashing kernel?
[Nexus S Android Development] Me Gusta:
Always!

Me Gusta!
[Nexus S Android Development] leap_ahead:
no need man ...http://xdaforums.com/showpost.php?p=27904865&postcount=122
[Nexus S Android Development] Me Gusta:
Sorry, your right. But it can't do wrong, right?

Me Gusta!
[Nexus S Android Development] :
Just do it when you flash a ROM update, or mod
[Nexus S Android Development] ayrtonforever:
installed zcache version but usb storage don't works...even in mtp mode

Inviato dal mio Nexus S con Tapatalk 2
[Nexus S Android Development] :
Can anyone else confirm this?
[Nexus S Android Development] Sucky1983:
USB Storage works fine with zcache version and cm10.1
[Nexus S Android Development] ej8989:
Works well on Slim 4.2.2 build 6.8
[Nexus S Android Development] superng888:
both mass storage and mtp working fine on miui v5
[Nexus S Android Development] ej8989:
Phone frozen with the zcache non-cm version on slimbean 4.2.2 build 6.8 when running antutu - 3d image benchmarking part. Had to pull the battery.
[Nexus S Android Development] leap_ahead:
[MENTION=4128576]bedalus[/MENTION] u can answear that question from facebbok user ?

If bigmem gives you more free RAM, why and when would you want to use the regular kernel? I'm using a Nexus S CM10.1 RC5. Is there anything missing in the bigmem that gives you the extra RAM?
[Nexus S Android Development] :
Does this happen every time?
[Nexus S Android Development] :
The bigmem version takes ram from the camera module, some ROMs can cope, some can't and the camera app breaks
[Nexus S Android Development] BBuZZ:
Tried almost all the roms available, and none add any camera issues with big mem..your work is flawless..

Sent from my Nexus S
[Nexus S Android Development] leap_ahead:
same here
[Nexus S Android Development] Setting.Out:
I may have tried a rom or two, and bigmem doesn't seem to ever cause any issues, regardless of kernel,.. but Marmite is the best.. :)
[Nexus S Android Development] triavq:
Does this kernel support otg?
[Nexus S Android Development] Lar5:
Can't confirm. My i9023 (slim422b 6.8 + zcache kernel) had no problems with Antutu.
[Nexus S Android Development] spider623:
i can't provide benchmarks but yes it works just fine on cm based roms and i9023

Also update on my nexus 4:

It will be here i a week or so :laugh: i ended up ordering the 16GB for €320+shipping because the €230 8Gb offer was over and they only had €30 difference in price now but i'm not leaving the nexus s until the battery die and the screen break in 1x10^9 pieces and the board melt down from the hot summer :silly:

I ordered from here btw they usually have good offers and low prices and they ship from inside europe

---------- Post added at 01:55 PM ---------- Previous post was at 01:33 PM ----------

why do you need it?

nexus devices don't have support for 12v out put from the mini usb thous you will need an external power source for it to work and you will also need to find a way to keep it above 11.1V or else it will misbehave
[Nexus S Android Development] polobunny:
USB is 5v, not 12v.
[Nexus S Android Development] spider623:
My bad I checked way too many batteries this month :p

I guess I need vacations after all, the 11.1 is the minimum in order to initialize charge on my tf300
[Nexus S Android Development] polobunny:
Fair enough! :)
[Nexus S Android Development] ej8989:
Unfortunately I went back to 8.7 bigmem immediately after experiencing the said issue; maybe AnTuTu's problem.

I was using zcache version for more than 2 days with no issues before that happened.
[Nexus S Android Development] polobunny:
Antutu messes with your overclock when initializing. It might mess with something else too. Just an idea like that.
[Nexus S Android Development] ayrtonforever:
with zcache version usb storage works? and where can I find them?

Inviato dal mio Nexus S con Tapatalk 2
[Nexus S Android Development] spider623:
where they always was... in the settings>storage or after you connect the cable under the drop down menu to connect:confused:
[Nexus S Android Development] spider623:
half out of topic, ext4 formatted storage works like a champ with cm10.1 stable and zram kernel, you will want to leave it empty and transfer your files back using airdroid btw other than that it makes the phone boot faster and removes the dot under TWRP's letters :good:
[Nexus S Android Development] ayrtonforever:
I was meaning where can I download it :P

Inviato dal mio Nexus S con Tapatalk 2
[Nexus S Android Development] noloukos:
take a look at page 792
[Nexus S Android Development] leap_ahead:
[MENTION=4128576]bedalus[/MENTION] today i get my first reboot..can u help with this ?View attachment 2075433
[Nexus S Android Development] :
It's not a kernel error, looks like a perfectly ordinary reboot. If you didn't request one, must have been by an app or the Rom. What were you doing when it happened?
[Nexus S Android Development] leap_ahead:
open top eleven game that need internet

* I get the correct logcat ? I mean the file I post
[Nexus S Android Development] :
Yeah, it's always good to get the kernel log. Sometimes it's useful to see a log cat, but that's more useful to the app or Rom developer when it's not a kernel issue.
[Nexus S Android Development] spider623:
Ok I had to go back to 8.7 today, I had lag and freeze of the phone 2 times, when I changed the kernel everything went back to normal
[Nexus S Android Development] leap_ahead:
zcache ?
[Nexus S Android Development] spider623:
yes but i'm not consisted that it was the culprit, it may also be the fact that nexus is getting older and we can't forget that it always had rages like that after the ics
[Nexus S Android Development] cheeze.keyk:
which one will i download for my nexus s? my rom is thinking bridge..:confused:
[Nexus S Android Development] superng888:
Should be there custom io ver
[Nexus S Android Development] spider623:
If cm based then the cm else the other
[Nexus S Android Development] lhnzh12:
which one should i download for my jellybam rom its all other rom or custom io control?
[Nexus S Android Development] doma8108:
You should download the CM version..
[Nexus S Android Development] spider623:
Guys kernel 3.4 here http://xdaforums.com/showthread.php?t=2356260

never mind misleading op and it got me excited to
[Nexus S Android Development] juliandik:
Hey guys,

what is best sheduler & govenor for marmite 8.7 cm bigmem settings what you can recommend?

Or are settings from rom by rom different?

EDIT: I'm using thinkingbridge rom

thanks
[Nexus S Android Development] leap_ahead:
The standar from kernel
[Nexus S Android Development] TheLastMirana:
can someone tell me what version and type of marmite slimbean build 7 using?

is it 8.7 bigmem cm?
[Nexus S Android Development] spider623:
I thought that it was discontinued
[Nexus S Android Development] TheLastMirana:
i dont know im asking
[Nexus S Android Development] nexususer:
8.7 bigmem non CM
[Nexus S Android Development] explorer-10:
Is there gpu overclocking on this kernel? If so, how to?

Sent from my Nexus S using Xparent Skyblue Tapatalk 2
[Nexus S Android Development] leap_ahead:
only on 1100 and 1320mhz ..automaticaly
[Nexus S Android Development] The0Code:
This work with 4.1 roms? Namely Slimbean 3.1? If so which one?
[Nexus S Android Development] Basche:
Yes, I'm using this with MDO, which is 4.1.2
[Nexus S Android Development] dark'em:
The 3.1 slim is baseb on CM, so CM 8.7 kernel
[Nexus S Android Development] BBuZZ:
Yup..thats what im using, and runing great on slim 3.1

Sent from my Nexus S
[Nexus S Android Development] dark'em:
I know, I was just telling someone that asked what version of Marmit to use on Slim3.1;
[Nexus S Android Development] BBuZZ:
Yeah, i saw, just confirmed your help ;)

Sent from my Nexus S
[Nexus S Android Development] Gingo21:
[MENTION=222746]beladus[/MENTION]

Is it possible to add this commit in marmite from CM kernel in order to enable Ad-Hoc ?

Thanks
[Nexus S Android Development] :
Okay, I've added the patch, and it built correctly. I decided to try with the 4.8.2 toolchain again:

normal: http://d-h.st/UXk

cm/io control: http://d-h.st/BTR

These may not work. 4.8.2 toolchains have not given me success on the HOX+, but if they don't boot, I'll just rebuild with the 4.7.4 toolchain.

EDIT: Thanks leap_ahead for testing, I will rebuild with 4.7.4
[Nexus S Android Development] leap_ahead:
Not boot ..freeze at booranimation and device restart

After that stay at google logo

---------- Post added at 06:45 PM ---------- Previous post was at 06:37 PM ----------

Pls build with zcache
[Nexus S Android Development] :
builds now live again.

[MENTION=1871006]leap_ahead[/MENTION] zcache is still present

Also, I merged in the linux mainline patches because it appears that android/common has ceased committing altogether, so I'll have to do this myself from now on.
[Nexus S Android Development] skinner12:
Same error when I've tried to build my custom kernel..
[Nexus S Android Development] :
Yeah, I think 4.8.2 compiler has done issue with slub
[Nexus S Android Development] leap_ahead:
nice v3.0.86 !!
[Nexus S Android Development] Zahih:
Bedalus, another noobs question.

What is exactly zcache version?

Coz for my NS, v8.7 is more smoother than zcache version in every Rom that I run.
[Nexus S Android Development] :
It works okay then?

I need to ask everybody using the zcache version is it better, worse, or not noticeably different?
[Nexus S Android Development] leap_ahead:
yes no problem ..for zcache for me is good ;p
[Nexus S Android Development] anshumandash:
What I have seen with the N4 kernels, they are using SLAB as the kernel won't boot with 4.8.x and SLUB.
[Nexus S Android Development] leap_ahead:
zcache is patched all the way to the 3.8 version, which is where it was superseded by something called ramster (by the same developer). Zcache also uses lzo to compress memory pages, so I've updated this algorithm too, from the 2005 to the 2012 version, which apparently boasts better compression and decompression speeds.
[Nexus S Android Development] :
Just do a search for zcache, I think I explained it not long ago
[Nexus S Android Development] .stendeck:
First, I thought there would be a better performance. But after a 2-day-usage and trying 8.7 (cm, bigmem) again, I didn't notice any differences -> placebo effect. ;) And I was happy with ~15MB more RAM that could be essential with an uptime of 2 days.

Hard to measure a benefit...