why don't I have Zram/Zswap anymore? - Nexus 5 Q&A, Help & Troubleshooting

It's been a while since I managed this stuff myself so I'm foggy on how to troubleshoot, but something along the lines of I don't have an /etc/fstab or it's empty so swapon is failing.
previously used FauxClock to manage this, unsure why it's not working like it used to.

thor1k said:
It's been a while since I managed this stuff myself so I'm foggy on how to troubleshoot, but something along the lines of I don't have an /etc/fstab or it's empty so swapon is failing.
previously used FauxClock to manage this, unsure why it's not working like it used to.
Click to expand...
Click to collapse
well, to answer the question in the title.. because its pointless. zram/zswap is good for our old devices(like g1 or old school droid), with low ram. as thats what you are using the zram/zswap for, to increase ram. the nexus 5 has 2gb ram, i bet you will never run low on ram with a nexus 5. and if you think its a benefit to the nexus 5, then you are living in a placebo.
what happened to yours, i have no idea.

simms22 said:
well, to answer the question in the title.. because its pointless. zram/zswap is good for our old devices(like g1 or old school droid), with low ram. as thats what you are using the zram/zswap for, to increase ram. the nexus 5 has 2gb ram, i bet you will never run low on ram with a nexus 5. and if you think its a benefit to the nexus 5, then you are living in a placebo.
what happened to yours, i have no idea.
Click to expand...
Click to collapse
can you help me get it back?
I feel like a FauxClock update broke it.
What it was actually doing was a bit more complicated, virtualizing the diskspace (compressed, too) as a buffer layer on top of the flash. This improved random read and especially random write performance which helped with multitasking a LOT as resume from suspend in the app lifecycle was resuming from RAM, not from flash. This meant less hitching/FPS drops when bringing up android recents, as well as during animation/draws when switching to the other app
This is the only reason I want it. Simply as swap space, yes not necessary

thor1k said:
can you help me get it back?
I feel like a FauxClock update broke it.
What it was actually doing was a bit more complicated, virtualizing the diskspace (compressed, too) as a buffer layer on top of the flash. This improved random read and especially random write performance which helped with multitasking a LOT as resume from suspend in the app lifecycle was resuming from RAM, not from flash. This meant less hitching/FPS drops when bringing up android recents, as well as during animation/draws when switching to the other app
This is the only reason I want it. Simply as swap space, yes not necessary
Click to expand...
Click to collapse
that sounds what disabling fsync would do, help with random read and write. have you tried just disabling fsync? anyways, its your kernel that will have the zram feature, reflash it. if you have flashed/updated your rom, the kernel should be reflashed.

simms22 said:
that sounds what disabling fsync would do, help with random read and write. have you tried just disabling fsync? anyways, its your kernel that will have the zram feature, reflash it. if you have flashed/updated your rom, the kernel should be reflashed.
Click to expand...
Click to collapse
no fsync is totes different
current guess is no init.d script for the zram because restored fauxclock from titanium and enable/disable only modifies the script, relying on the script existing in the first place, and it doesn't because I didn't manually install it myself. Uninstalling and reinstalling fauxclock doesn't work though, it's like certain settings persist somewhere. It's always been a bit goofy like that, and I don't feel like wiping and installing just for the ZRAM at this moment. Currently waiting on someone to post their zram init.d script, or if anyone here sees this and wouldn't mind uploading it, much obliged.
another question: how can I low-level format the phone? IE not just wiping the partition, but actually checking for bad blocks and cutting them out of the flash table. I have another phone that I think needs that, but all the CWM and TWRP recoveries seem to just do wiping not complete formats.

init tasks are somewhere besides /etc/init.d now it looks like
if anyone else needs it, flashing completely stock image straight from google and then rooting got me what I needed. Unsure why the "stock rooted" zips people provided weren't good enough. oh well

Related

Has a rom kernel been built with swap enabled?

I would give it a shot but I'm not sure how to make a compatible zip for revolver..
I get the function not implemented error when I try to swapon currently...
The fix...
"Try this: grep SWAP /usr/src/linux/.config CONFIG_SWAP=y
If you don't have it set then you need to configure the kernel set it. Swap is in the General setup section and it's not called swap, it's called "Support for paging of anonymous memory."
"
at the risk of sounding like a ****, I need to point out that the Transformer has 1GB RAM. That's twice as much as most Android phones. Do you really need a swapfile as well? Have you tried enabling Compcache or zRAM or whatever they're calling it these days? You'll probably run into the same issue (incompatible kernel), but you may have better results than a swapfile.
I made a swap partition, it wouldnt turn on.. i havent used zram and the other...never heard of them. I'm also aware that my transformer has 1gb of ram, but not all of it is accessible. I'd just like to squeeze as much performance as i can out of this thing and adding a swap partition seems like it would be useful.
pierut said:
but not all of it is accessable.
Click to expand...
Click to collapse
And how did you work that one out?
pierut said:
but not all of it is accessable.
Click to expand...
Click to collapse
The base dalvik system uses ram, and what it uses is excluded from the total in android.
Its all there, its all being used.
Another perfect display of how to slap some-one in the face using the shovel of logic.
Part is dedicated to the gpu.
Sent from my Transformer TF101 using xda premium
And none of this is even relevent to my original post.
Sent from my Transformer TF101 using xda premium
If my question was along the lines of 'how do i dwindle a discussion of performance improvement down to petty name-calling' it might have been useful insight.
Sent from my Transformer TF101 using xda premium
It is relevant to your OP as you provided a reason why you want a swap on the TF and the replies explain why your reasons are incorrect.
Having a swap file will not improve performance as the write speed of a SDcard/SSD is greater than the write speed of a ram module.
Which, considering how Android uses RAM, will slow the TF down.
Also, what "petty name calling" are you speaking of?
I wasn't asking if I was correct or not. I was asking if anyone had enabled swap. This has added performance for other android devices and I really don't see how this device is any different.
I'm sure there is a plethora of ways to handle ram, however I doubt that most people know these methods, myself included.
In reference to name-calling, a `slap in the face with the shovel of logic` might not be name-calling but it is certainly along the same lines.
Heh.
Swap is really only useful when your system is running out of free RAM frequently. I used to enable swap on my HTC Magic back in the day because of how little RAM it had. Nowadays though, it's not a problem - the Transformer has roughly five times the memory of my old Magic. Android is (in general) really light in its memory hunger, thanks to its intelligent paging system (inactive apps are paged out of main memory and remain in a suspended state).
Are you actually seeing situations where your device is running out of memory? I've never come across one. Just sayin'
i have instances that i assume are due to a lack of memory. laggyness of the ui... and the browser crashing when there is a resource intensive flash application running.
Sent from my Transformer TF101 using xda premium

[Q] Any SGS4G Kernels with Swap Support?

Are there any other existing kernels for sgs4g besides the ones on the first page?
Reason I ask is because I'm trying to use a swap partition, but it seems these kernels are not swap enabled.
Why has nobody bothered to compile any custom kernels for the sgs4g? I am trying myself, but no luck so far.
Any ideas?
Thanks,
S
sconsylman said:
Are there any other existing kernels for sgs4g besides the ones on the first page?
Reason I ask is because I'm trying to use a swap partition, but it seems these kernels are not swap enabled.
Why has nobody bothered to compile any custom kernels for the sgs4g? I am trying myself, but no luck so far.
Any ideas?
Thanks,
S
Click to expand...
Click to collapse
I'm not sure I can answer the whole question as to why we don't use swap, but I can say that we just got the GB kernel source, and people are still working on it and haven't posted anything.... yet. Patients...
But, I noticed that the Bali 3.3 kernel (KD1) also did not have swap. Maybe drhonk and Krylon360 tried it and swap didn't help or improve performance.
The rest of the kernels you'll find are either stock leaks, or modified stock leaks. Samsung doesn't like swap I guess. Or swapping on SD/MMC sucks hard.
I know in newer kernels (3.0 and greater), there is a new driver for mtd-swap, but it is still very new and I doubt anyone will use it in production for quite some time.
Using swap on Android is not such a great idea, it goes a little bit against native Android memory management. Then benefit can be that more programs will stay in memory and won't need to reload, but the phone will become a lot slower, even with small partitions like 32MB. With 128MB or higher it will become almost unusable. Ask me how I know
I think the need for swap was gone once phones started coming with 512mb+ ram. I used swap all the time (also required for GB) on my MT3G, since it only had like 192mb ram. It never made the phone work faster at all, in fact it usually slowed down over time running, it really just made it so stuff didn't force close due to running out of memory. This shouldn't be needed on this or any new phone.
So Bali 3.3 is a GingerBread build? Didn't know that. Kinda figures I guess. Thought I had already tried it though and couldn't bootload. I'll give it another whack. His stuff is awesome of course. I'm not demanding it, mind you, just trying to see why it would not be included. Kind of like not having a /proc/config.gz file in some Android builds, don't really know the reason why they're not included (results in not able to mount ubuntu builds, anybody have these let me know .
This appears to be the only source of kernels for our phones, no swap support enabled though. http://forum.xda-developers.com/showthread.php?t=1194032
(Thanks dr.honk!)
As for the swap partition not making sense, I have a hard time understanding why it wouldn't just provide a static and beneficial extended memory source. I am familiar with the memory management features of Android, and actually don't use any additional task killers as I've found them to be conflicting often.
But Android is built off the Linux system/kernel, so why does dedicated swap work with a large OS but not the smaller but similar Android OS/kernel?
Thanks!
sconsylman said:
As for the swap partition not making sense, I have a hard time understanding why it wouldn't just provide a static and beneficial extended memory source. I am familiar with the memory management features of Android, and actually don't use any additional task killers as I've found them to be conflicting often.
But Android is built off the Linux system/kernel, so why does dedicated swap work with a large OS but not the smaller but similar Android OS/kernel?
Click to expand...
Click to collapse
In short, the phone will become annoyingly slow.
Swap works on kernel level. Android will see this as additional virtual memory, so it will keep more programs alive and won't unload them. For example a browser will hog a lot of memory causing other programs' memory pages to be swapped. Kernel doesn't differentiate between programs, so, for example, the launcher memory pages will be swapped. Or even the active program you are currently working with can have part of its memory in the swap. Next time you try to do something (like scrolling), the memory pages will have to be brought back. Flash memory is not particularly fast (in fact for swap it is very slow), so you can we waiting for some noticeable time for many actions to complete. You'll have a lot of jerky movements, delays, temporary freezes, forget any smoothness. It is just annoying, trust me, I've tried
Ah, ok so the swapping is noticeably slower than the ram on the phone (512mb). I would not figure that it would be too much of a factor, especially on class 6+ sd cards. So there is absolutely no way of coding the system apps to be ram based, and everything else to be swappable? I'm surprised that this has not been done, but I assume that the reason is the expanding active ram capacities on new phones.
So were you experimenting on the sgs4g, or was it another model? And if so, what were you using? Froyo swap enabled kernel?
The HTC Thunderbolt has some similar specs.
http://forum.xda-developers.com/showthread.php?t=1106420
More ram 768mb vs 512mb, more internal storage 4g vs 1000mb, but uses a 1g single core scorpion processor instead of our 1g single core hummingbird. Some are having good luck with this device and swapping (taking all "facts" with a grain of salt). There is more like this too, with a number of market apps to support swapping: Swapper2, Swap for Root, Diaper swappers forum (oops, that one doesn't work for some reason).
sconsylman said:
So Bali 3.3 is a GingerBread build? Didn't know that. Kinda figures I guess.
Click to expand...
Click to collapse
No, Bali 3.3 is Froyo.
I did try it on this phone few months ago when I was still on Froyo with Bali kernel. Don't try to load in on GB, wait until DrHonk makes a new one, he actually may soon.
I personally can't imagine how anybody could use swap on Android and like it, but everybody's mileage varies. The benefit of using swap wouldn't be speed but rather less program reloads. For example you browse the web when a call comes. You answer the call, maybe go to address book, or take some notes, or send some pictures, etc. Everything will be a little slow and jerky, but with swap enabled you have better chance that when returning to the browser it will still be on the same page without reloading from the server.
Just checking again to see if anyone knows of any KJ6 kernels with swap enabled, as I'm currently getting memory warnings from running Backtrack 5 non-gnome. It works pretty well otherwise (besides the lack of space, thanks obsolete fat32).
??
sconsylman said:
Just checking again to see if anyone knows of any KJ6 kernels with swap enabled, as I'm currently getting memory warnings from running Backtrack 5 non-gnome. It works pretty well otherwise (besides the lack of space, thanks obsolete fat32).
??
Click to expand...
Click to collapse
No swap. what version of the kernel are you running?
bhundven said:
No swap. what version of the kernel are you running?
Click to expand...
Click to collapse
Sent from my SGH-T959V using xda premium
2.6.35.7 KJ6-CL694138
It has [email protected]#9 signature on it. I know we had spoken briefly about swap. What linux are you running?
I know that the Debdroid program is successfully running swap with good results, but it won't mount right with the specific scripts (our phones working mount scripts are different, I linked them in my linux post). I can take some coding from that programs scripts but of course it won't work without the kernel having swap built in.
Sent from my SGH-T959V using xda premium

Possible I/O lagfix (from nexus 7/OneX forums)

http://forum.xda-developers.com/showthread.php?t=2104326
Hi,
Saw this on reddit this morning, as no one's posted it yet I'd just like to offer it up as another potential lag-fixer.
The source of the problem is that internal storage is not properly TRIMmed when needed. You can find lots of information on XDA - http://forum.xda-developers.com/show....php?t=1971852 and http://forum.xda-developers.com/show....php?t=1929021 for example. It is also well-known fact that running fstrim Linux tool from time to time fixes the issue until internal memory runs out of free blocks. Other solutions like mounting with -discard or disabling fsync may be dangerous.
LagFix is a user-friendly implementation of fstrim utility. It allows you to select which partitions to trim (you should leave defaults unless you know what you are doing) and run the process easily.
Please note that fstrim output depends on kernel and device. It works fine unless you see errors. You might see big amounts of bytes, zero amount or repeating amount. All are fine! Read fstrim manual to understand why all these outputs are valid.
It is also advised to reboot your device after the TRIM process so that kernel could reinitialize block data.
App is free and is available in Play Market. Current version is 1.0.
P.S. If your ROM mounts /data with -discard then this app is NOT needed! Mounting with -discard causes brickbug on some devices, so I DO NOT advise using -discard.
Click to expand...
Click to collapse
Link on Play: https://play.google.com/store/apps/details?id=com.grilledmonkey.lagfix
I applied it on my rooted, locked tf700 and, well, nothing bad happened. I am on the .25 update, which I feel made overall app-opening a little smoother, so I can't tell if this makes any noticeable difference, but it certainly doesn't seem slower after applying it. The dev says that if you run androbench after applying the fix i/o read should be higher, if anyone could run a few benchmarks of before/after it would be appreciated! I've never really placed much faith in benchmarks so didn't bother doing it myself.
Hope this benefits someone!
Sent from my ASUS Transformer Pad TF700T using Tapatalk HD
I downloaded and installed it. Ran it, rebooted. It did trim, but the jury is still out on whether this actually helps or not. It's too freshly booted to really judge the effects properly, so I'll have it settle in and report back.
It didn't break my 700 -- that's a good thing to start with.
MartyHulskemper said:
I downloaded and installed it. Ran it, rebooted. It did trim, but the jury is still out on whether this actually helps or not. It's too freshly booted to really judge the effects properly, so I'll have it settle in and report back.
It didn't break my 700 -- that's a good thing to start with.
Click to expand...
Click to collapse
Yeah, I was reluctant to be the first one to try it on an infinity... But it worked out for the better, I think. Now I don't know if the .25 jb update or this is to thank for the better performance. It should hope up till the 4.2 update at least! Quite pleased with the .25 update
Sent from my Galaxy Nexus using Tapatalk 2
Just tried it. Could be my imagination, but my tablet seems snappier.
I am not convinced that it will have any effect: TF700's Hynix eNAND flash is eMMC 4.41 compliant, which does not have DISCARD command, the equivalent of SATA's TRIM command. The DISCARD command is supported in eMMC 4.51 compliant flash but I don't know if the Kingston flash in Nexus 7 is eMMC 4.51 compliant. Even if it does TRIM the TF700, probably it will have little effect if you have alot of free space left as it does not affect the garbage collection significantly. One would hope that TRIM should already be done dynamically within the file management software as it would reduce write amplification factor, hence improve write speed performance?
Kraka said:
I am not convinced that it will have any effect: TF700's Hynix eNAND flash is eMMC 4.41 compliant, which does not have DISCARD command, the equivalent of SATA's TRIM command.
Click to expand...
Click to collapse
According to the spec, eMMC 4.41 supports TRIM - what's the difference between TRIM and DISCARD?
I read that eMMC 4.41 also supports "background operation" and "high priority interrupt" - these sound much more interesting related to lag than TRIM. Do you have any idea if these features are already used in the TF700's Linux kernel (or even at all in any kernel)?
faq in op link said:
Which devices are affected?
It is known by now, that Nexus S, Galaxy Nexus, Nexus 7, Nexus 4, Nexus 10 and HTC One X need regular trimming. It is also believed that all pre-ICS devices used different memory and they do NOT need it nor support it. Pre-ICS support will be dropped in version 1.2. Other 4.0+ devices? Well, test it! And report if it really helps - your device will be added to the list.
How to properly test it?
Use AndroBench app before using LagFix and after. You only need micro test. Look for Sequential Write values. Reading from memory is NOT affected, because reading does not involve writting and only writting triggers search party for free memory blocks.
Click to expand...
Click to collapse
For anyone looking for early confirmation of impact.
I think I'll give this a try. I have some hefty typing lag. I thought one of the first updates had gotten rid of it, but it came back, it was just temporarily relieved by the fresh reboot then. If it does help, it'll probably be a month before I confirm anything, just to avoid giving/having false hope . Thanks for posting op hope it works.
Edit, sorry, just noticed OP already mentioned androbench.
Edit 2: Saw no change in my androbench write speed. Sequential write was something over 5MB/s, random write was .15MB/s both before and after running it, and again after rebooting. lagfix claimed to have trimmed successfully. If anything, it felt more laggy for a while after running it. I'm an OS update or two behind FWIW, just installed Jelly Bean a month or so ago. I like to let everyone else test the updates before I install them. I'll probably run another bench this evening. :shrug:
fsTRIM = AWESOME fix - on CROMI, OCed kernel, fsync disabled
I just download the fsTRIM app and it worked with CROMI, OCed kernel, and fsync disabled. Will seem laggy right after runnng it, just reboot as soon as you do and things will be deffinitely running smoother and slightly faster now. Noticing less keyboard latency even as I type this out. I suggest trying it out.
UPDATE - Seriously try this **** out. Keyboard typing is radically smoother in browser, evernote, and google drive. Less latency between multi touch gestures ive set up in GMD Gesture Control as well. App opening is still instantaneous. Loading big web pages is definitely quicker. Will time boot and other things and update again soon.
Update - Opening large files and youtube is faster. large pdfs load faster. everything is really....snappy, and.....smooth.....best of both worlds. things were already pretty snappy and smooth with CROMI, didnt think they could get better but it has. I time everything as well to compare. I could barely time it after this fix as everything is basically instantaneous. Havent tried writing/moving large files on internal storage yet, will test soon, this is distracting me from my homework too much lol.
It works for me I can now download files and move them without having my tablet unusable until it's done.
Sent from my ASUS Transformer Pad TF700T using Tapatalk HD
Just installed this.
Will give it a go...
lucius.zen said:
...
Click to expand...
Click to collapse
You posted the same content in two other thread sof you own making, and in this one. One helluva way to get to 2000 posts without interjecting anything actually useful. Neitehr is this post, I will mention myself, but please keep a lower profile next time.
So far I haven't noticed any difference at all. I'll give it the rest of the day and if I don't feel there is any change I'll just uninstall.

Note Slowing down

So I Have been spending a lot of time and effort with my GS3, tweaking the kernal and rom for battery performance and it seems to be working well, now I need to address my Note. Its gotten really slow and feels laggy. My memory used by running apps is less then half. I have greenify freezing a bunch of stuff i dont really need. Im rooted on stock for Rom, with stock Kernel. I was eyeballing some Roms but really dont want to lose any TW functionality, but was hoping to hold off on that until some 2014 Roms popped up. I run Apex as a launcher right now.
Has anyone noticed speed differences with Custom TW Roms or Kernels? or have a good CPU monitor app, they all look pretty, meh, on the play store (i really wish you could see number of dl's and raters from the list view on the play store)...
Up for any suggestions....
Your problem likely has nothing to do with "available RAM" or "processes".
... how full is your internal flash (your "sdcard")?
Neflhiem said:
So I Have been spending a lot of time and effort with my GS3, tweaking the kernal and rom for battery performance and it seems to be working well, now I need to address my Note. Its gotten really slow and feels laggy. My memory used by running apps is less then half. I have greenify freezing a bunch of stuff i dont really need. Im rooted on stock for Rom, with stock Kernel. I was eyeballing some Roms but really dont want to lose any TW functionality, but was hoping to hold off on that until some 2014 Roms popped up. I run Apex as a launcher right now.
Has anyone noticed speed differences with Custom TW Roms or Kernels? or have a good CPU monitor app, they all look pretty, meh, on the play store (i really wish you could see number of dl's and raters from the list view on the play store)...
Up for any suggestions....
Click to expand...
Click to collapse
https://play.google.com/store/apps/details?id=com.rs.autokiller&hl=en
Try 'Moderate' profile.
https://play.google.com/store/apps/details?id=com.zdvdev.sef&hl=en
Set to 512. It's the same as seeder but I felt this is much more stable. I'm using this despite paying for seeder.
Nikorasu said:
https://play.google.com/store/apps/details?id=com.rs.autokiller&hl=en
https://play.google.com/store/apps/details?id=com.zdvdev.sef&hl=en
Click to expand...
Click to collapse
I'm sorry, but both of those apps are essentially useless. Task killers are completely unnecessary with the version of Android we're using, and "Seeder" type apps have been shown to have no benefit (the entropy pool is refreshed a different way in post 3.0 kernel versions).
I'm still waiting for the OP to tell me how much free space is left on his internal flash; that measurement has actual deterministic correlation to lag.
Nikorasu said:
https://play.google.com/store/apps/details?id=com.rs.autokiller&hl=en
Try 'Moderate' profile.
https://play.google.com/store/apps/details?id=com.zdvdev.sef&hl=en
Set to 512. It's the same as seeder but I felt this is much more stable. I'm using this despite paying for seeder.
Click to expand...
Click to collapse
Autokiller is not a task killer.
I'm aware that seeder does not work as well for Ics/Jb, compared to 2.x. On my Razr, seeder has more obvious effects on 4.0, 4.1 compared to 4.2 and 4.3. Perhaps I have a crapload of apps/games on my phone/tablet so the effects are more obvious.
Boths apps are free and are reversible so no harm trying.
kcrudup said:
I'm sorry, but both of those apps are essentially useless. Task killers are completely unnecessary with the version of Android we're using, and "Seeder" type apps have been shown to have no benefit (the entropy pool is refreshed a different way in post 3.0 kernel versions).
I'm still waiting for the OP to tell me how much free space is left on his internal flash; that measurement has actual deterministic correlation to lag.
Click to expand...
Click to collapse
Ok.. for the internal, out of 25.87 GB i have 18.86 GB Available
On Ram, from Application Manager im showing .93G used 863 MB free
While it may not seem like it, this im sure is the problem. I do get the "only xxmb left of internal memory" warnings, but im not sure where im looking to clear that up... im only using half of each..
Nikorasu said:
Autokiller is not a task killer.
Click to expand...
Click to collapse
Might as well be- its page says it "fine tunes android systems inner memory manager to keep your device fast over time", so it modifies the various low-memory-killer limits so Android does the killing, but the idea is the same. People have to get out of the mindset that "bloat" means anything, need to remember that unused memory is wasted memory and that the system has a better idea of how to manage the apps you've chosen.
Neflhiem said:
... for the internal, out of 25.87 GB I have 18.86 GB available
Click to expand...
Click to collapse
You have a 32GB unit, right? If not you're looking at your SD-Card, and I need to know the used/free percentages on your /data (or /sdcard, close enough) partition. But if you do have a 32GB device, that's actually quite empty, which is a good thing. If you're rooted, have you tried running an "fstrim" app on the device like this app?
On RAM, from Application Manager I'm showing [930 MB] used 863 MB free ... this I'm sure is the problem.
Click to expand...
Click to collapse
No, not at all- in fact, you're underusing most of your memory.
I do get the "only xxmb left of internal memory" warnings
Click to expand...
Click to collapse
From where? When do these occur?
You have a 32GB unit, right? If not you're looking at your SD-Card, and I need to know the used/free percentages on your /data (or /sdcard, close enough) partition. But if you do have a 32GB device, that's actually quite empty, which is a good thing. If you're rooted, have you tried running an "fstrim" app on the device like this app?
Click to expand...
Click to collapse
Yeah, 32GB unit, No, havent tried an Fstrim app, grabbing it now...
No, not at all- in fact, you're underusing most of your memory.
Click to expand...
Click to collapse
Sorry, that didnt read right, i see i have plenty of open mem, i ment that i suspect the lag is comeing from some sort of storage/memory problem. An unseen one per say.
From where? When do these occur?
Click to expand...
Click to collapse
When i install an app. thats when i get it. I couldnt remember at first.. was thinking its random, but it seems to pop up when i install and app. I cant tell if its only play store or sideloaded as well, dont do enough of the latter.
Ill install Fstrim, and see if it helps some.
thanks for taking the time to do this.
Neflhiem said:
I do get the "only xxmb left of internal memory" warnings
Click to expand...
Click to collapse
Neflhiem said:
When I install an app. That's when I get it. I couldn't remember at first. Was thinking it's random, but it seems to pop up when I install an app.
Click to expand...
Click to collapse
OK, something isn't right here. Can you do me a favor? Run "adb shell df" and send me that?
kcrudup said:
Might as well be- its page says it "fine tunes android systems inner memory manager to keep your device fast over time", so it modifies the various low-memory-killer limits so Android does the killing, but the idea is the same. People have to get out of the mindset that "bloat" means anything, need to remember that unused memory is wasted memory and that the system has a better idea of how to manage the apps you've chosen.
You have a 32GB unit, right? If not you're looking at your SD-Card, and I need to know the used/free percentages on your /data (or /sdcard, close enough) partition. But if you do have a 32GB device, that's actually quite empty, which is a good thing. If you're rooted, have you tried running an "fstrim" app on the device like this app?
No, not at all- in fact, you're underusing most of your memory.
From where? When do these occur?
Click to expand...
Click to collapse
Yup, it tweaks Android internal memory killer. I won't recommend this if it didn't work for me.
Changing it to moderate preset is pretty safe.
Thanks, I'll send that probably Monday. Thanks again
Sent from my SGH-I747 using xda app-developers app
Neflhiem said:
While it may not seem like it, this im sure is the problem. I do get the "only xxmb left of internal memory" warnings, but im not sure where im looking to clear that up... im only using half of each..
Click to expand...
Click to collapse
How odd! I got today this same warning too. I have 2,2gig free space i my internal memory and I was installing some app and got a message that i have only 1,48mb free or so.
Sent from my GT-N8000 using Tapatalk 4
enigma_x said:
How odd! I got today this same warning too. I have 2,2gig free space i my internal memory and I was installing some app and got a message that i have only 1,48mb free or so.
Sent from my GT-N8000 using Tapatalk 4
Click to expand...
Click to collapse
We have two note 10.1 tablets(wifi only). One is 16 gb the other is 32 gb... On the 16 there is about 5.6 gb free. When installing some apps from google play we get the same message . and it says 1.48 free.. I think this is a Bug with the new play store. The message will NOT Come up when side loading apps is what i have noticed.Unless it prevents you from installing the apps i would not worry about that message.
Wait for 4.3 and the TRIM support.
elzeus said:
Wait for 4.3 and the TRIM support.
Click to expand...
Click to collapse
We have TRIM already.
---------- Post added at 02:58 PM ---------- Previous post was at 02:57 PM ----------
For you folks seeing "Not enough free space" issues, how are you determining your "Free Flash" numbers?
kcrudup said:
We have TRIM already.
Click to expand...
Click to collapse
Really?
Sent from my GT-N8000 using Tapatalk 4
kcrudup said:
We have TRIM already
Click to expand...
Click to collapse
enigma_x said:
Really?
Click to expand...
Click to collapse
Yes. The stock kernel has it, see that "discard" option:
Code:
/dev/block/mmcblk0p12 /data ext4 noatime,nosuid,nodev,discard,noauto_da_alloc,journal_async_commit,errors=panic wait,check,encryptable=footer
... and my kernels have that, plus at boot time I run "fstrim" on every partition:
Code:
/system/bin/logwrapper /sbin/fstrim -v /data
/system/bin/logwrapper /sbin/fstrim -v /cache
/system/bin/logwrapper /sbin/fstrim -v /system
4.3 runs that last part more often, but technically if the system is running the "discard" option on the filesystems, at least once at boot should really be enough.
kcrudup said:
OK, something isn't right here. Can you do me a favor? Run "adb shell df" and send me that?
Click to expand...
Click to collapse
hmm. I dont have a PC to connect to, and am having an hard time finding something i can run from my Note. any suggestions on how to run ADB Shell DF locally?
i use system tuner pro. esp if you are rooted. gives a great overall outlook on what is going on with the system.
i personally haven't tried any custom rom's yet. and i can tell also my Note starting to feel laggy.
really hoping a 4.4 custom rom comes along. I heard they added IR blaster support in 4.4 and would really love that to be available. really the only functionality holding me back from custom roms atm.
killerskincanoe said:
i use system tuner pro. esp if you are rooted. gives a great overall outlook on what is going on with the system.
i personally haven't tried any custom rom's yet. and i can tell also my Note starting to feel laggy.
really hoping a 4.4 custom rom comes along. I heard they added IR blaster support in 4.4 and would really love that to be available. really the only functionality holding me back from custom roms atm.
Click to expand...
Click to collapse
ok.. will try that out.. creepy ass avatar by the way..

[Q] Why is my N5 so slow ?

I can't really put my finger in the cause, it seems to follow all N roms (though most are based on LOS, so..)
Sometimes the device crawls to a standstill, until i'm able to close all open apps, and then it gets snappy again.
I would consider this device at least as fast as my M7, but although the One is slower in general than the N5, it never gets slower...
I don't have weird apps installed, the most crazy ones are the Facebook messenger and chrome, the rest is google apps and whatsapp...
mine is showing same behaviour since a few days ago, ive enabled sync and enabled cm email, others things ive done is installing tumblr, i think some apps that works on 2nd plane arent managed well with ram autokill and somewhat with persistent services.
ill clean flash and disable sync forever [emoji14]
other thing ive noticed is other storage is permanent oversized and the phone cant really know whar is this
Pure CAF @ crLOS14.1
Is it insanely hot when it slows down? If that's the case it's overheating for some reason.
I used to have that problem last year. I kind of fixed it after I formated the memory while I was trying to have F2FS. I knew i'd lost everything in the memory so I did a backup and trough TWRP changed the partition to F2FS and it helped a lot. A friend's tab had the same problem and he fixed it that way
SuicideFlasher said:
Is it insanely hot when it slows down? If that's the case it's overheating for some reason.
Click to expand...
Click to collapse
No... It stalls, it really seems iowait...
daedric said:
No... It stalls, it really seems iowait...
Click to expand...
Click to collapse
Or maybe it went out of memory? Although I doubt it. One thing that comes to mind is mpdecision, sometimes it shuts down all cores except 0 and won't switch them back online, forcing you to do it manually or somehow wake it up. Have you tried keeping tabs on your cores with a monitor app? Anything mpdecision-rated in logcat when the crawls happen?
I was on Catacalysm until nougat, which can be considered stock. didn't have speed issues then.
when I flashed nougat all 3 roms i flashed had annoying lag which was not acceptable.
eventually me and other users discovered it was happening because of the memory filling up.
apparently the phone needs quite a bit of free memory to work well. tweaking memory management through kernel editor solved it for me.
I can't tell for sure if that's your issue but u can give it a try.
What I do is that I clean flash about every six months, generally upgrading to a higher version of android (stopped after 6.0.1 tho cuz of xposed), after backing my media. Once I restore that after the flash, I always have more space available than pre flash and it feels a lot faster. Might be a placebo, might not. But is it stupid if it works?
pingu11 said:
What I do is that I clean flash about every six months, generally upgrading to a higher version of android (stopped after 6.0.1 tho cuz of xposed), after backing my media. Once I restore that after the flash, I always have more space available than pre flash and it feels a lot faster. Might be a placebo, might not. But is it stupid if it works?
Click to expand...
Click to collapse
Problem is, i'm starting to believe it's tied to N7.x
yossi_s1 said:
I was on Catacalysm until nougat, which can be considered stock. didn't have speed issues then.
when I flashed nougat all 3 roms i flashed had annoying lag which was not acceptable.
eventually me and other users discovered it was happening because of the memory filling up.
apparently the phone needs quite a bit of free memory to work well. tweaking memory management through kernel editor solved it for me.
I can't tell for sure if that's your issue but u can give it a try.
Click to expand...
Click to collapse
Your findings are consistent with mine, it seems the device is running out of memory and is trying to swap out heavy apps to make do, namely chrome and facebook. While it's doing that, it's slow as hell. I've also had launcher re-start, like if the OOM had it killed.
Which settings did you tweak ? LowMemoryKiller ?
Yep, LMK set to exterminate.
I wonder what the original configuration was, not only for LMK but also CPU gov etc, Because honestly I think that even after tweaks it was still better on stock.
In general nougat doesn't really add much for me, M was great, I was in a hurry to upgrade because I had play services battery drain bug on M. That was terrible.
Also I noticed mine is thermal throttling really quickly, I don't know if its normal or not. I've been thinking about improving cooling with a mod but at this point my N5 is on its way out. In november I'll close 4 years with it and I'll get a new device (maybe 1+5?)
Memory issue
daedric said:
I can't really put my finger in the cause, it seems to follow all N roms (though most are based on LOS, so..)
Sometimes the device crawls to a standstill, until i'm able to close all open apps, and then it gets snappy again.
I would consider this device at least as fast as my M7, but although the One is slower in general than the N5, it never gets slower...
I don't have weird apps installed, the most crazy ones are the Facebook messenger and chrome, the rest is google apps and whatsapp...
Click to expand...
Click to collapse
It's all because of memory,
3/4 cores are going offline and online regularly, but sometimes​ cores won't go online which create frizzing untill cores get online,
For solution you should be first root then install kernel editor you like and edit core to performance or high performance,
That solved my problems.
daedric said:
I can't really put my finger in the cause, it seems to follow all N roms (though most are based on LOS, so..)
Sometimes the device crawls to a standstill, until i'm able to close all open apps, and then it gets snappy again.
I would consider this device at least as fast as my M7, but although the One is slower in general than the N5, it never gets slower...
I don't have weird apps installed, the most crazy ones are the Facebook messenger and chrome, the rest is google apps and whatsapp...
Click to expand...
Click to collapse
What gapps are you using? Using pico or Beans mini will let you put most of your Google apps on the user partition and not the system partition. You could also try an AOSP based ROM instead of a LOS based ROM like Krexus, Pure Nexus or Tesla
Char_G said:
What gapps are you using? Using pico or Beans mini will let you put most of your Google apps on the user partition and not the system partition. You could also try an AOSP based ROM instead of a LOS based ROM like Krexus, Pure Nexus or Tesla
Click to expand...
Click to collapse
Using pico or Beans mini will let you put most of your Google apps on the user partition and not the system partition.
Click to expand...
Click to collapse
And the advantage would be ?
You could also try an AOSP based ROM instead of a LOS based ROM like Krexus, Pure Nexus or Tesla
Click to expand...
Click to collapse
I tried PureNexus, but it hasn't been update recently. I also suspect of a bug in LOS, since it seems to follow all roms, no matter the builder or kernel.
daedric said:
And the advantage would be ?
I tried PureNexus, but it hasn't been update recently. I also suspect of a bug in LOS, since it seems to follow all roms, no matter the builder or kernel.
Click to expand...
Click to collapse
Using small gapps packages frees up space in /system, I never use full gapps packages on my Nexus 5 and I've never experienced this slow down you're having.
Pure Nexus just updated on May 13th, Tesla updated today. If you choose to flash one of them, be sure to wipe system in advanced wipe as well as data and caches before flashing
Pure Nexus https://www.androidfilehost.com/?fid=6733682732989
Tesla
https://www.androidfilehost.com/?fid=529152257862726717&_utm_source=1-2-2
I don't think the suggestions in the last few comments will help. I'm pretty sure it's mainly a memory management settings issue.
if you want here's my profile in synapse (kernel settings editor you can find on google play). I'm currently testing it for a few days and it seems good so far but I still need to test it under really heavy load.
I'm running nitrogenOS with the kernel that comes with it. if you run something else you may have to tweak it a little.
https://www.dropbox.com/s/1zh08kbh8hoyprl/test2.tgz?dl=0

Categories

Resources