Disabling ZRAM for msm8996 targets - LineageOS Questions & Answers

The latest LineageOS enabled ZRAM unconditionally.
Now, I don't care about the benefits of ZRAM - it will cause the tear and wear of your internal flash storage which might lead to a significantly decreased life span and/or unrecoverable errors.
So, the patch does basically two things:
Code:
rootdir/root/fstab.qcom:
+/dev/block/zram0 none swap defaults
rootdir/root/init.qcom.rc:
+ # Setup zram options
+ write /sys/block/zram0/comp_algorithm lz4
+
This obviously goes into the LOS sources. Please, tell me what destination files (in my ROM) I should modify to disable ZRAM. Thanks.

I could be wrong... When reading about this the info seems a bit unclear..
I ran the command "free" with zram and then change zram to 0. If available is 0 doesn't that mean that the phone does not use a swap partition at all? How would a ram based swap drive wear the internal storage if the phone does not use a swap partition?
The info I found kind of said both yes and no about the wear.... But it might be different if a swap partition is used or not.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

False alarm. This patch will only work if you create/already have a swap partition on your phone. My phone, Le Max2, by default doesn't have it.

Related

a2sd/data2sd priority method

I understand that NAND is more rapid than sd card and differences between a2sd method, like the picture report in Amarullz thread.
I wonder if exist a method to give priority to some apps rather than others in internal storage.
I mean: for example, suppose that I have 50 apps but I frequently use 10, might be more performant put 3rd part App data and APK (and dalvik if is possible to separate it) of theese 10 apps in NAND and other datas of the other ones in SD card?
Maybe this requires also a GUI to choose apps, I can't imagine what it takes this. Sorry, maybe this idea is absurd, I don't know about programming, it's just.. an idea.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Does link2sd do that? Not sure..
https://market.android.com/details?...?t=W251bGwsMSwxLDEsImNvbS5idWFrLkxpbmsyU0QiXQ..
Think so..
Im not sure what Amarulz is stating system apk's are in those pictures, but to me they are always on NAND, so those pictures are probably specific to one of those sense roms for cm7 that have to export system app to ext to fit....
Thanks, I didn't know about this. I will try it and post my impression.

[Q] What is the /cache partition for and info about all partitions

Today I have downloaded DiskInfo app and it says Note 2 has 1.3Gb of cache partition, 2Gb of /System 10.5Gb of /Data partition.. When added together it is 13.8 Gb.. However 16Gb claimed memory is 14.9 Gb normally. So 1 Gb is missing.
Does anyone know what is the proper partitioning/foldering/indexing (whatever it is called in Linux world) of and average (or say Note 2) Android phone and what they stand for? So far I know
/system is for installing the ROM itself, it is read only and 2Gb allocated for Note 2
/data (including /data/media which is for user objects like mp3s or videos or anything) is for the user and the apps to be installed.. Usually the rest of the memory after taking necessary other parts, is used as /data
/preload I don't know if this is seperate partition or just a sub-folder of some other partition. But it contains the videos and pics of Sammy ROMs. No idea about the size..
/cache? It is 1.3gb..But why?
I got this from sdmaid app. This may help you. :what:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
sent from my GT-N7100. Press thanks if I helped..
You can find some answers on this page.
The size of /cache partition should depend on the number of apps / files you have/use.

System Data

Hello,
Never had any issues with my G3 in the year ive had it until now!
Basically I've checked my storage as my 16gb internal seemed to be incredibly low (especially since I store everything on my SD), I then realised I had a huge 8gb +/- taken up under Misc - system data. Unfortunately I can't figure out how to reduce this size.
On Samsung phones you can enter the hidden menu and wipe dumpstates and logcats but cant find the option on my d855 hidden menu.
I've flashed a bunch of ROMs and done resets etc but the problem persists. Any help would be great.
Using apps like System Cleaner etc etc DO NOT do anything as the problem lies in system data.
Thanks
Curtis
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Sent from my LG-D855 using Tapatalk
UPDATE
I've managed to improve my situation by doing the following;
Deleted the 'Facebook.orca' folder from my internal sd (That was a massive 4gb- but for some reason didn't come up under app data etc)
Installed FolderMount and linked my DCIM/Picture folders to my SD to give me an extra 1.5gb of internal space.

QuickOptimizer - Windows light-weight optimizer

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
QuickOptimizer​QuickOptimizer is the worlds most lightweight PC, Tablet and Phone optimizer on the market.
While this program is ultra small, it really utillizes all your devices inbuilt features and gets the most RAM speed and processing power out of your device.
Feature List-
Clear browser caches
Clear temporary files
Tweak your registry
Disable MS seeding updates
Clear journals
Clear downloads
Disable startup items
Enable/Disable adblock
Remove thumbs.db
Defragment disk
Enable/Disable UAC
Enable/Disable QO system control
Optimize system booting
Clear windows cache and logs
Clear the icon cache
Kill bloat services
Empty recycle bin
Remove dead shortcuts
Run tool every 24hours
Maximise windows Ramfree utillity
Webdite/Download link - https://quickoptimizer.wordpress.com/quickoptimizer/
Yes you read correct, the whole program is less then 2mb
updated.
Updated again
New name.
updating again tonight
first 5 people to share the website get the paid version free

Internal memory over consumption: Sm-p601 note 10.1 2014 edition

good day guys,,
the problem is like that,,, obviously the system is counting the space that is consumed by the application i've had installed on it, wrong, cause i'm very sure that it can't never occupies that much the system analysis is telling me,
i calculated the size of all the applications on my device it turned out to be around 9 GB
yet the System counting it for about 10.82 GB
= 1.82 gb is like geny in the air, i can't find it
2nd, i think the device is giving these applications wrong size any way,
so,, there most be something wrong with the system reading to the memory or the applications space,
1- i formatted the the memory through the reset factory function
2- wiped the memory through the recovery
3- re installed fresh official room by the oden,
yet still the same !!
what do you think guys,
screen shot & device information attached for your reference
MODEL NO: SM-P601
ANDROID VERSION: 5.1.1 (OFFICIAL ROOM)
INTERNAL MEMORY SIZE: 16 GB
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
sorry for bothering you all with this,
and thanks in advance

Categories

Resources