yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Android Development] agusdallalba:
The zram device size is not reserved: you don't instantly lose 200MB of RAM if you set up a 200MB zram. The space is taken as needed from the kernel page cache. zswap does something similar, but instead of setting a maximum uncompressed memory size it sets a maximum compressed memory size in % of total RAM (set in /sys/module/zswap/parameters/max_pool_percent). So with zswap you can store more if your memory compresses well. But, unlike zswap, it needs a 'real' swap to be set up to work, where it sends pages that don't compress well to make room for more frequently used pages.

I think vnswap is a 'Virtual NAND' device that tells the kernel it's of a certain size, but it actually is smaller.

Theory part I: The real storage behind vnswap is set in /sys/block/vnswap0/swap_filename, and in my phone it's backed by nothing unless I set it manually.

Theory part II: Since vnswap fails on every write, zswap can't write the compressed memory pages it has in cache anywhere, so it ends up working essentially the same as zram (This is the shakiest part of the theory, as I don't know how to test it)

Theory part III: I guess Samsung did not intend it to be like this. But maybe they did! So I want to see how it behaves in a stock Samsung ROM to try and confirm this theory.
[Galaxy S III Android Development] ~DemonLord~:
Then can you kindly suggest what might be my problem, beta 3 seems completely incompatible with any 4.4.4 based sammy rom i throw at it other than having a successful installation. I have tried every type of formatting and flashing but it simply does not work. Device not accepting it is not a reason so its definitely the kernel or the rom.
[Galaxy S III Android Development] danielhtc:
Download links are down.

Can you post new links? Thanks :)
[Galaxy S III Android Development] barani kumar:
:confused::confused::confused::confused:

wat guys talking about, basketbuild link are working as normal...

https://s.basketbuild.com/devs/arter97/S3/kernel/xda/

but always recommended to go to through download link in OP
[Galaxy S III Android Development] fcaronte:
Probably Was offline for the GPS problem... Wait for new version...

Edit

I read a much of theory but so if on cm12 I would to active zram is possible or not?
[Galaxy S III Android Development] sperelli:
Hi arter, i'd like to signal that vibrations get weaker after 2 days of use. No other issues found on Rr 5.2.5
[Galaxy S III Android Development] Mostafa Wael:
[MENTION=4857157]agusdallalba[/MENTION] [MENTION=4898097]arter97[/MENTION] maybe this gives an idea ?! please look into the attached picture
[Galaxy S III Android Development] arter97:
(Everything I'll say is 'As far as I know of'. Correct me if I'm wrong.)

It's similar to say "you instantly lose 200 MB".

Let's say your device has 1 GB of RAM and you setup 500 MB of zRam.

After filling up the first 500 MB, the next pages instantly get compressed.

So when you're not using more than 1 GB of RAM, zRam may be inefficient because it's basically compressing pages while your usage doesn't needs to.

From what I've heard, that's the reason why Samsung decided to move on and implement vnswap; which uses internal storage instead of RAM for swapping.

And for zswap, I heard it's just a driver working on top of existing swap, compressing to RAM before it actually flushes to the swap device - because flushing first and compressing pages later is kinda stupid, and misses the whole point of zswap - which is "reduce bottleneck to swap devices with compressing the pages"

While you have a point there, "if vnswap is not working properly - zswap is acting just like a zram", I don't think zswap is written stupid enough to allow such scenarios happen.

Briefly scanning the vnswap source tells me it scans the NAND for free space and allocates blocks dynamically, but I may be wrong as I honestly cannot understand all of the source codes.

What you've said : "we cannot write directly to the vnswap" is kinda fishy and wonders me why. I'm gonna check with a friend of mine who uses stock Touchwiz Galaxy S4 tomorrow.

But if we still cannot write directly to the vnswap there too, then your theory number 3 is most likely the case.. but still, there might be some "magic link" between zswap and vnswap. I still don't think zswap can replace zram when swap device is not valid.

Off topic, nice research and discussion :)
[Galaxy S III Android Development] arter97:
As the famous saying goes though out the XDA forum,

"Post logs or it didn't happen".
[Galaxy S III Android Development] arter97:
(If I'm right about this whole swap thing,) yes, that's normal.

btw, approx. 100 MB swap on AOSP?! You must be a damn heavy user... lol!!
[Galaxy S III Android Development] fcaronte:
arter hi have a reboot switch on from stanby and this time have the panic log :good:

PS for gps is a fast fix or is complicated?
[Galaxy S III Android Development] Mostafa Wael:
you see why i needed vnswap on AOSP :D
[Galaxy S III Android Development] arter97:
Wow.

First kernel panic report related to UV.

Can I go remove UV now, please guys?

GPS fix is simple, but I'd rather release a new kernel later.
[Galaxy S III Android Development] arter97:
XD
[Galaxy S III Android Development] fcaronte:
this time is not under volt....in tweak i only touch the ui color to stock setting and no under volt
[Galaxy S III Android Development] arter97:
No, that's a kernel panic caused while aTweaks trying to put the UV values into the kernel.

You may have not touched it, but apparently it can cause kernel panics.
[Galaxy S III Android Development] cba1986:
i never had any trouble with UV with your kernel. Please don't remove it.
[Galaxy S III Android Development] mdrafi.1207:
[MENTION=663773]arter[/MENTION]

Flashed your beta 3 kernel on nameless lp ROM 24/12 . everything is awesome. But a small , really small bug. Kernel version is not showing in about device.
[Galaxy S III Android Development] GrayJack:
Dear arter97 4.0 beta 3 users! I mean

recovery

users.

Please let me know do you have any issues with USB OTG and PC connection via USB in recovery mode?

Thank you.
[Galaxy S III Android Development] Scorpionea:
Ups i accidentaly added thanks hah

Just wanted to say its also the same with stock nameless kernel too! At least it was with 2312 version..so this has nothing to do with arter kernel..
[Galaxy S III Android Development] arter97:
It's inside the top Advanced Information.
[Galaxy S III Android Development] MadMungo:
I too have problems with the wifi password being forgotten after reboot running DU 8.1 & arter97 4.0 beta 2 on GT-I9300.

Also just installed arter97 4.0 beta 3 and the phone hangs at boot, dose not get past screen with Samsung Galaxy SIII GT-I9300.

Going to try arter97 4.0 beta 1 and see if all works as arter97 3.1.1 screen locks up in long phone calls.
[Galaxy S III Android Development] cba1986:
maybe you could set UV profiles in atweaks (-25,-50, etc) to avoid screw ups from users...
[Galaxy S III Android Development] llcoolveer:
I went true the OP download link,but no worries everything is as usual now.Maybe Basketbuild updated their servers before the upcomming New Year. Up and Running now.:good:

---------- Post added at 03:32 AM ---------- Previous post was at 03:08 AM ----------

Just went true version 3 of the kernel,everything works just fine here. Also my Navigon navigation is up and running. One thing i had to adjust and it was the clockspeed. Normaly it's set to 204-1704 and it had some lag issues,clocked it down to 1500 and there are no severe difficulties. I'm on DN4 from E-Team. After flashing the kernel or wiping the cache my device say's i have 384 apps running,so that's a whole bunch of apps running around. :cowboy:

Regards,LLCOOLVEER
[Galaxy S III Android Development] PriteshChauhan:
[MENTION=4898097]arter97[/MENTION] thanks for the awesome kernel.

I have been using the kernel since 3 days and have been facing some issues.

It has powered off itself while sleeping twice yesterday. Secondly it rebooted itself after a few seconds of screen freeze..

I have not tweaked anything in the kernel and have been running with the same settings as during the install.
[Galaxy S III Android Development] Virnik0:
Try to adjust LMK values. That helped in my case. Use TricksterMOD for that for example.
[Galaxy S III Android Development] ~DemonLord~:
Cannot get a logcat when im in a bootloop since the adb server doesnt start and the device is not detected on my pc till it actually boots. can you atleast make a wild guess as to why is this happening???

Edit:Finally got it. https://www.dropbox.com/s/vtst3303o52ut79/logcattest.txt?dl=0
[Galaxy S III Android Development] vinodr5371@xdaroms.co.in:
Arter dual boot working?
[Galaxy S III Android Development] cangcan:
currentlt using smartdroid KK as 1st rom and liquidsmooth milestone as 2nd rom for dual booting..

yes it works..and great! saves my life and time by having both aosp and sammy rom in my gorgeous i9300.. :cool::sly:
[Galaxy S III Android Development] Mostafa Wael:
you said lollipop right? i kindly ask you to read the changelog here, where it states

so i guess you now know the answer right?

reading is a very essential skill for human to survive with the new-tech world we live in now :)

---------- Post added at 08:05 PM ---------- Previous post was at 07:57 PM ----------

Wo Wo Wo, this is very technical and sounds to me like chinese, i honestly got lost :D

Anyway, nice info to know Man :)

hope that we get some improvement though but i want to ask you a question. You said, vnswap is not working as intended, you mean that it is useless? I have tested with and without vnswap on AOSP, and i really feel the difference in multitasking, so how is it not working?
[Galaxy S III Android Development] vinodr5371@xdaroms.co.in:
Is this work with dn4 ROM.
[Galaxy S III Android Development] agusdallalba:
Bummer, that's exactly what I did not want there to happen. Answering your question: As far as I can tell it doesn't write anything to NAND (I think this is a good thing). But it does compress memory to RAM like zram does, so that works.
[Galaxy S III Android Development] Mostafa Wael:
so now as if i have a single-device 512 MB zRAM instead of vnswap?? okay :D i am happy with it anyways :)
[Galaxy S III Android Development] agusdallalba:
zswap seems to be multi-threaded, and it should use all CPU cores available. And if I understand correctly it will store up to 512MiB of uncompressed data in up to 20% (850MiB × 20% = 170 MiB) of RAM, whichever is smaller. So, assuming a 2.5 compression ratio, it's like a 170MiB × 2.5 = 425 MiB ∞-device supercharged zram that doesn't waste space storing incompressible data like pictures :D .

Edit: Well maybe I got a bit carried away with the infinity, but you get the idea. I hope :P
[Galaxy S III Android Development] Mostafa Wael:
[MENTION=4898097]arter97[/MENTION] just a friendly request, can you inform us when you start the new thread for temasek CM12 builds ?!

thanks a lot for your gifts to this year 2014 :)
[Galaxy S III Android Development] senthilaca:
It seems he is outside now.. and he tweeted that he will reach home in another 4 hours. Check his twitter handle. It was posted 2 hours back. So may be in another 2 hours he may open new thread..
[Galaxy S III Android Development] cangcan:
omo omo. [MENTION=2332422]temasek[/MENTION] source continued by [MENTION=4898097]arter97[/MENTION]..more suprise will be coming soon..? just tried back to noot v6..guess didnt have much time to test it any further if arter gonna release it soon..
[Galaxy S III Android Development] senaferdy79:
it's already published on arter's twitter.

whoever wanna try it, just download it from there
[Galaxy S III Android Development] temasek:
OT

Yes arter97 will be the rep for I9300 for temasek cm12 build. I don't have I9300 with me nowadays so it's kinda hard to maintain it.
[Galaxy S III Android Development] RoelD92:
Ermagerd :D.

It is happening.....
[Galaxy S III Android Development] arter97:
afaik, it's hard to mess around pages that has already been allocated, so zram compresses it first just like I've described.

Maybe you're right, but I also have no idea how to test which of our description of zram is right. lol

So your reference tells me, vnswap acts like a ghost swap device.. hmm. Never thought of that, I've always thought it should be a valid, swappable device.

One thing stills curious me, if we can't write directly through vnswap, where the heck is our swapped pages stored?

Maybe it's RAM, maybe not(NAND).

One thing I've found out about sswap binary(or maybe vnswap) is that its swap size differs from the device.

Our i9300 is 512 MB,

e210s(S3 LTE - which has 2 GB of RAM) is 1 GB.

But, Note 3 and S5 LTE-A, Note 4 - which has 3 GB of RAM is also 1 GB. Hmm...

And hell yeah, memory optimizations with Touchwiz is THE only reason why I "can't" stand Touchwiz.

If I remember correctly, Touchwiz is the only Android fork that uses swaps.

(Maybe others use zram, but Touchwiz is the only one I've saw that uses swap that's not zram.)
[Galaxy S III Android Development] arter97:
Please post /sdcard/arter97/*.log files
[Galaxy S III Android Development] arter97:
So your log says 2 things.

libskia crash and gpsd crash.

gpsd binary in 4.0 beta3 is the same as back-to-n00t V6, so I think that's not the culprit.

libskia seems responsible(/system/lib/libskia.so (SkFontConfigInterfaceAndroid::matchFamilyName(char const*, SkTypeface::Style, SkFontConfigInterface::FontIdentity*, SkString*, SkTypeface::Style*)+50)),

But I don't see that's related to the kernel, really.

4.0 beta4 will be released without gpsd binary let's see if that fixes it.
[Galaxy S III Android Development] vinodr5371@xdaroms.co.in:
Battery drain too fast and some time phone hangs help me [MENTION=4898097]arter97[/MENTION]..
[Galaxy S III Android Development] ~DemonLord~:
Thank you for the feedback :) Yes it seems quite odd since ive tried it on 3 roms, 2 based on n00t v5 and 1 on v6. Something is coming up that is causing both a working kernel and a working rom to act weird. Only common factor is the recovery, which is Philz touch which i updated to temasek's new compiled build without any luck, since it installs fine it is weird VERY few people have mentioned this issue. I will try your recovery to see if that makes a difference when i get time.

Cheers :)
[Galaxy S III Android Development] agusdallalba:
I can't believe they needed to use swap on a device with 3GB of RAM, that's insane. I heard they got a lot better on Lollipop though, let's hope it's true.

And well, the docs say zswap writes stuff to RAM. So that's out of discussion. vnswap however probably does write to NAND at some point, otherwise it wouldn't be so… complex? I can't wait for the strace from your friend's S4 ;) .
[Galaxy S III Android Development] ninekaw9:
Can I use arter 4.0 beta 3 with CM12 bera 3 with F2FS file system?
[Galaxy S III Android Development] arter97:
SM-G900S on Lollipop still uses vnswap XD

Yea, this seems extremely complex.

The S4 kernel source : https://github.com/arter97/android_kernel_samsung_msm8974/blob/e330s/drivers/staging/vnswap/vnswap.c

has discard lines, so I'm (almost) sure it uses NAND, maybe not as a primary swap device, but still uses NAND for some reason.

And my friend got his S4 upgraded to CM12. lol

I'll do it myself later when testing Touchwiz kernel on my S4.
[Galaxy S III Android Development] arter97:
Yes.
[Galaxy S III Android Development] ninekaw9:
Thanks, I have been searching around for this answer. Finally going to switch to f2fs and cm12 bera 3 :D
[Galaxy S III Android Development] arter97:
4.0-beta4 is live, to hopefully fix GPS on AOSP.

4.0-beta4

Removed GPS blobs from 4.0-beta3

(Fixes GPS on AOSP - you may need to reinstall the entire ROM to fix GPS)
[Galaxy S III Android Development] arter97:
Porting sdcardfs to Lollipop with Galaxy S5 kernel source - completed!

4.0-beta5 will enable sdcardfslp to be used with Lollipop :)
[Galaxy S III Android Development] DMD567:
Can we expect something later today?
[Galaxy S III Android Development] cangcan:
[MENTION=4898097]arter97[/MENTION], sorry for asking..what is exactly sdcardfs function? any impact to performance and battery saving terms? especially in lollipop..
[Galaxy S III Android Development] PriteshChauhan:
Panic Log

Hi [MENTION=4898097]arter97[/MENTION],

Attached is the panic log. I have zip-compressed it for uploading in valid format at xda.

Thanks. :good:
[Galaxy S III Android Development] sanguinesaintly:
Mirrors

Basketbuild down again - any mirrors please?
[Galaxy S III Android Development] arter97:
Not today.
[Galaxy S III Android Development] arter97:
There's an explanation in the OP.
[Galaxy S III Android Development] Lukijs:
Could someone provide temporary mirror please? Basket is down
[Galaxy S III Android Development] cba1986:
Waiting for this one. Thanks!
[Galaxy S III Android Development] sanguinesaintly:
Stuck on Galaxy SIII loading screen

I've had no problems with Beta 2, but with 3 and 4 the phone just sticks on the loading screen ? Any ideas anyone please ?
[Galaxy S III Android Development] Mostafa Wael:
which ROM? currently the problem may occur with back-to-n00t based ROMs
[Galaxy S III Android Development] Ano Nimosu:
Same thing here, I thought it was just me :o. Slimkat stable 9.0, clean install, tried twice with same result.
[Galaxy S III Android Development] sanguinesaintly:
SlimKat 8 and 9 stable. Maybe it's just with SlimKat. I'll try CM11 and see what happens.

**EDIT**

Works fine with CM11 last nightly, so it's a Slimkat thing ?
[Galaxy S III Android Development] Mostafa Wael:
great idea, but i wonder why you guys are still lying behind in the 'old' KitKat days ?

lollipop is semi-nightly status, if not a nightly now

and it is running smooth and stable

EDIT: i suspect that this "stuck on S III screen" issue is due to arter97 kernel installs N7100 GPU mali drivers and there is something wrong in this part. In more details, the latest 4.0-beta3/4 is supposed to install those mali-drivers (R3P2_mali_29) from the N7100 to bring Working HWC on every AOSP ROM, so i guess there is something letting it fails :confused:
[Galaxy S III Android Development] sanguinesaintly:
You may be right about the GPU drivers - thanks for that insight.

As for the "old KitKat days", well SlimKat just works. Everything I need just works. So until I can decide on a "stable" Lollipop, be it from CM, Slim, Nameless etc, then I'll stick to what works for me.

We're not far now, and SlimKat has proved to be the most stable and functional KitKat ROM for my i9300 so far, but times they are a changing !
[Galaxy S III Android Development] Mostafa Wael:
i guess they are already working on a "slimPop" build for S3

they are really popular i know that :)

anyways, have a nice day :D
[Galaxy S III Android Development] cba1986:
Could somebody post a mirror?

basketbuild is failing at this end.
[Galaxy S III Android Development] sanguinesaintly:
Flashed Boeffla kernel and working perfectly.
[Galaxy S III Android Development] arter97:
Working HWC installation is not provoked when users are not on AOSP.

Hmm..
[Galaxy S III Android Development] cba1986:
something to add. if you flash [MENTION=4898097]arter97[/MENTION] kernel on sny AOSP rom and then you flash [MENTION=5161352]JustArchi[/MENTION] kernel. the device doesn't boot.
[Galaxy S III Android Development] sanguinesaintly:
I found that Archi kernel works if you either dirty flash stock ROM (SlimKat etc) to put back original kernel, or flash S3-kernel-cleanup_v.4 ( which cleans up the addon.d folder) before you flash Archi kernel. It's in Archi's OP that you should only flash it over a stock kernel.
[Galaxy S III Android Development] arter97:
Because his kernel is not compatible with working HWC.

I think only the ArchiDroid supports working HWC.

TL;DR - You cannot install non-working HWC kernel after installing my kernel without reinstallation of the entire ROM.
[Galaxy S III Android Development] sperelli:
Well I installed boeffla beta2 ng over your beta3. Everything worked OK. How come?!
[Galaxy S III Android Development] nicesoni_ash:
Coz Boeffla kernel beta 2 is compatible with HWC.

_____________

Sent from my "GT-I9300/1+1" powered by Carbon Rom & Boeffla/ak Kernel

Fueled by 7000mAh ZeroLemon Battery
[Galaxy S III Android Development] snakeboy1011:
How do I overclock the GPU?
[Galaxy S III Android Development] Targaeryan:
You can't.. It's not included..
[Galaxy S III Android Development] Mostafa Wael:
BTW I did a comparison between zRAM single device and vnswap and for my usage, vnswap wins :)

As for zswap, i remember that it uses RAM not NAND, as i remember that in Devil3.4_0.5.3 kernel (which uses zswap) it says "10% or 20% or 30% from the RAM is used" im the zswap tab. And also swappiness was set to the mysterious 130% (over the maximum 100% swappiness :laugh: )

Anyway, that is just a tip. For me i did not understand the idea of the debate of the vnswap issues. Hope this helps :)
[Galaxy S III Android Development] Mostafa Wael:
[MENTION=4898097]arter97[/MENTION] i saw on twitter once that you are thinking to drop the multi-boot capability

are you serious about it ?
[Galaxy S III Android Development] vinodr5371@xdaroms.co.in:
We love dual boot don't do that
[Galaxy S III Android Development] Mostafa Wael:
from the next release ?

man that means the end of the dual-boot era on i9300 :eek:
[Galaxy S III Android Development] george stamatos:
no.........
[Galaxy S III Android Development] Mostafa Wael:
i guess you will be very sad :D

BTW nic Sig pic :good:

can i take it :D ?
[Galaxy S III Android Development] george stamatos:
Of course! It's new year's eve!
[Galaxy S III Android Development] ~DemonLord~:
[MENTION=4898097]arter97[/MENTION] its not the gpsd thing, its libskia i feel that causes the problem. Beta 4 is not allowing me to get a logcat from adb in boot, so i cant be sure, although it worked with beta 3 with the same problem. It works for some people and doesnt for others and previous data does not seem to affect it.

I will try more reinstalling and formatting before i give up. Although it may note be wise but i will try installing without libskia to see if i get past boot screen.

Update!: now i cant get past the screen where it says Galaxy SIII, it wont go to the samsung logo now. Looks like the hardware has gone mad!! works fine with any other kernel as usual though. Guess arter's new kernels arn't for us(me atleast) :(
[Galaxy S III Android Development] broyer10:
how the hell i remove this kernel ?!
[Galaxy S III Android Development] sperelli:
Format system.
[Galaxy S III Android Development] kadopt:
Delete backup script in addon.d folder and flash rom or wipe system and flash rom and gapps.
[Galaxy S III Android Development] broyer10:
i have a wierd bug with this kernel .. it makes the camera sjow just green.

i dont know how to explain it .. but lets say i open the camera app it just shows green. or snapchat ext'.. but if i take the photo its fine . i can go to gallry and see it nomally
[Galaxy S III Android Development] cangcan:
i suppose you used some camera fix before is it? i got the same problem once too before by using justarchi camera fix on kk rom..my camera got broken and my only solution is to format system and wipe data..:(
[Galaxy S III Android Development] broyer10:
Welp ... F***
[Galaxy S III Android Development] iceman0826:
this happened to me too, so i tried not using any camera fix, and the camera works ok without the camera fixes, maybe it has something to do with the kernel and HWC? try flashing the kernel without the camera fix.
[Galaxy S III Android Development] Tubamannen:
Is this kernel used in your temasek-builds for i9300?

Skickat från min GT-I9300 via Tapatalk
[Galaxy S III Android Development] kashortiexda:
[MENTION=4898097]arter97[/MENTION] Does your arter97-kernel beta4 with the latest sdcardfs mods include this 830 CMA tweak ?

I read this thread and couldn't figure it out. [MENTION=4604352]Moster2[/MENTION] seems to be having mostly positive feedback.
[Galaxy S III Android Development] arter97:
Nope. It's different.
[Galaxy S III Android Development] arter97:
sdcardfs is enabled with every supported ROMs except Lollipop.

My kernel always had CMA enabled for 3G models.