How to tune filesystem cache for increased performance? - General Questions and Answers

I am using WM6. My free RAM is usually around 7-10MB.
By using Advanced Configuration Tool, how do I tune filesystem cache for increased performance? How much cache and other values should I put?
I don't know much about this, therefore asking the experienced members...
Thanks

lamborg said:
I am using WM6. My free RAM is usually around 7-10MB.
By using Advanced Configuration Tool, how do I tune filesystem cache for increased performance? How much cache and other values should I put?
I don't know much about this, therefore asking the experienced members...
Thanks
Click to expand...
Click to collapse
i would also like to know this
bump

Is it something that higher tha value, better will be the performance?

lamborg said:
Is it something that higher tha value, better will be the performance?
Click to expand...
Click to collapse
if u want better performance try using homescreen plus plus and overclocking it
or maybe changing the pagepool of your rom
or flashing a different rom lol

Can u tell me how to change the pagepool of the rom?

lamborg said:
Can u tell me how to change the pagepool of the rom?
Click to expand...
Click to collapse
use wizard service tool

lamborg said:
I am using WM6. My free RAM is usually around 7-10MB.
By using Advanced Configuration Tool, how do I tune filesystem cache for increased performance? How much cache and other values should I put?
I don't know much about this, therefore asking the experienced members...
Thanks
Click to expand...
Click to collapse
I wouldn't bother with filesystem cache as this setting isn't used in WM6.
PagePool I would keep to 4-8 depending on your device (if 128M or over, don't set). You can only set PagePool before you flash your ROM. It's easier to find the ROM that is made for your device and RAM.
Best to see what they say in your own device forum.
Overall depends what app's you use, and how many at once. These questions tend to be device specific and which apps you use. (What app are you trying to increase performance for? Or what ROM? Some require speedup of SD, some RAM, some GfX, and all these are device specific, and may not be able to be sped up, and some decrease in other areas - for example increasing PagePool will decrease you available memory. Most ROM cooks know how to fine tune these things.)

Related

Best swapper settings for performance?

Hello again all. I have been using Fatal1ty's Hero builds for a while now which are fantastic Thank you again Fatal1ty. But no matter what i seem to set swapper to it makes the phone run really slow. When I actually disable swapper is when this build runs the smoothest for me. Was wondering what settings everyone here uses for swapper to get the performance increase from it.
currently is set to the following
/sdcard/swapfile.swp
65mb
20 swapiness
i have tried 20 60 and 100 swapiness with upto 256 mb and really didn't seem to help. just wondering what settings that everyone else uses to have it run more speedy. Also I was wondering if it is possible to put to system memory like in the space for applications although I think that may be a bad idea depending on type of memory as will more then likely make that memory fail with all the read / write cycles

Ram usaged with WM 6.5

Hi,
After i upgraded to WM 6.5 Stock, my ram consumption has gone up from 45% with WM 6.1 to around 65-70%.
What are your thoughts about using a tool to free ram - does it help?
And what is the best tool to free ram?
I don't think it'll help. The official rom is badly bloated.
My build uses all of the official Packages on top of the latest WM6.5.1 build 23506 and memory usage is about 34%. That's running the official Manila 2.1
So I have no idea what they're doing.
VM 6.5 and memory usage
Well another approach to the memory usage is, how to get it down?
Is there anyt tips & tricks to get it down?
How much memory do you need in spar befor is a problem and have influence on the performance of the phone?
Its true that 6.5 uses more ram, and even more is used if you have moved over to manila 2.5. But as long as you have ram free it should not affect the performance of your device.
clean ram programs do reduce ram usage that has increased over a few days but you will not get it below the amount that is used just after a soft reset.
Sometimes having things "cached" in the ram will improve device response if those items are needed frequently, so not all ram usuage is actually bad.
Hey guys,
found it on another board (pocketpc.ch)
HKLM\SOFTWARE\HTC\ResProxy\ShareMemSize set Value to 100001
i dit it and its amazing, after a softreset it starts with 42% of memoryusage and til now no problems with any apps, so i think its a good tweek
thanks to the poster on pocketpc.ch
rol13 said:
Hey guys,
found it on another board (pocketpc.ch)
HKLM\SOFTWARE\HTC\ResProxy\ShareMemSize set Value to 100001
i dit it and its amazing, after a softreset it starts with 42% of memoryusage and til now no problems with any apps, so i think its a good tweek
thanks to the poster on pocketpc.ch
Click to expand...
Click to collapse
That was f...... amazing!!!
Memory use is down to 48% and the small delay there sometimes was in the interface is totaly gone. Startup of apps is also faster then before and everything seems faster.
So for now this registry change has done wonders for me. Only time will tell if there is a down side to it ;-)
Thanks rol13.
rol13 said:
Hey guys,
found it on another board (pocketpc.ch)
HKLM\SOFTWARE\HTC\ResProxy\ShareMemSize set Value to 100001
i dit it and its amazing, after a softreset it starts with 42% of memoryusage and til now no problems with any apps, so i think its a good tweek
thanks to the poster on pocketpc.ch
Click to expand...
Click to collapse
Hi,
it's not obvious(no A to F letters to guess) but you might have said, it's an hexadecimal value
regards
I noticed the same problem after updating tot 6.5.
I'm not very experienced with tweaking my phone. How can I use the mentioned tweek? What do I have to do and are ther risks involved?
there is always a risk when tweaking your phone, however, since many of us here seem to be having to negative results from this tweak, then you can say it's safe. search xda for regedit, download and install on your device, then use that program to tweak.
What Registry Base?
I dont understand, when I set the value to 100001, the radio button base has to be selected 'Hex' or 'Dec'?
Thanks for your help!
fofo13 said:
I dont understand, when I set the value to 100001, the radio button base has to be selected 'Hex' or 'Dec'?
Thanks for your help!
Click to expand...
Click to collapse
select hex
jetbro said:
select hex
Click to expand...
Click to collapse
Thank you, done, works just fine.
Thanks works great, usage at 42% now
if your using htc sense try getting the 'no push internet' cab file, as that will stop the push internet service on your phones and save you around 10%
for thoses that are unsure, push internet is where htc sense, will auto load web pages for you every hour or so, this makes the first page load instantly, and thats about it, so not much to lose out on
I would like to add a small note about this tweak before we all start thinking this is giving us something for nothing.
this reg tweak will prevent TD2 from pre-caching files for the following HTC applications:
AudioBooster, Calculator, ContactCard, CUIHandler, FMRadio, HTCAlbum, QuickGPS, Recorder, StreamingPlayer and YouTube.
They will now be dynamically cached, and then dumped from ram as they are used.
If you frequently using these apps it will be slower to launch when you 1st use them as they will need to be moved to memory before being executed (you can prove this yourself buy timing them before and after using the reg edit)
If you look at many diamond/TD2/HD tweaks the performance ones that make most difference are for file system cache, font cache, glyphy cache ect...
This works by allowing greater amounts of memory to be used by these caches, and more cached data gives better performance at the cost of less available memory.
so long as you always have enough free memory for the apps you want to run these performance tweaks are good. but if you go too far and run out of memory your app will crash or phone will just start to crawl
So using your memory is not a problem, and for many people it is better to have common apps and system files cached in memory ready to use instead of being able to see 50% free memory doing nothing (remember you have paid for this memory, make it work for you)
But if shortage of free memory is a problem for you then certainly this tweak will free up ram for your applications that need it.
as a side note another good way of freeing up alot of ram is to dissable push internet using a cab found on these forums. this obviosly comes at the cost of losing push internet, but if you dont use it whats the loss
thanks for the great info rumpleforeskin. one thing i would like to mention, after applying the tweak, my internet speed (using 3g) dropped significantly, and it was almost impossible to get a gps signal, as soon as i restored my registry back to the way it was before the tweak, everything went back to normal, i got my 3g speed back, and gps was almost instant. something to think about before using this tweak! or maybe it was just me
rol13 said:
Hey guys,
found it on another board (pocketpc.ch)
HKLM\SOFTWARE\HTC\ResProxy\ShareMemSize set Value to 100001
i dit it and its amazing, after a softreset it starts with 42% of memoryusage and til now no problems with any apps, so i think its a good tweek
thanks to the poster on pocketpc.ch
Click to expand...
Click to collapse
Brilliant! Down to 52% after a soft reset, thanks.
In my case Topaz from Spain, Official Rom upgrade from HTC, after change the value & soft reset 41% Ram occuped (before the change 48%), without problems with programs,
great tweak.
this tweak sets the share memory to 1 mb while the default is 15 mb.
yes you will have some more ram free but this will make Topaz work much more because now it has to read write to the ram all the time.
so whats good with this tweak
You get extra 5-10 mb ram free (thats what you think) but those extra ram are not free really because they will be used all the time to read what should already be in the ram.
this also causes the cpu to work more causing more drain on the battery.
so you will loose more then you gain
gullum said:
this tweak sets the share memory to 1 mb while the default is 15 mb.
yes you will have some more ram free but this will make Topaz work much more because now it has to read write to the ram all the time.
so whats good with this tweak
You get extra 5-10 mb ram free (thats what you think) but those extra ram are not free really because they will be used all the time to read what should already be in the ram.
this also causes the cpu to work more causing more drain on the battery.
so you will loose more then you gain
Click to expand...
Click to collapse
what you write is true, i made a post a little futher back describing the pupose of this cache file, and all cache files.
The original poster of this tweak done a good job of finding a way to reduce ram usage which will be very helpfull to the few people who need to use that extra ram.
but i worry that many people will use this tweak just to lower their ram usage not understanding that memory cache is there to boost performance.

Swap on Cyanogen 5.0.7 test1 - Thoughts!

Hey,
So Ive been playing with CM-5.0.7-DS test1, like everyone im sure , however I am noticing some major slowdown in the Launcher, many apps, and especially in 3g gallery without some memory assistance such as Swap\CC for the "low-memory" devices like the G1\Dream.
I enabled a 96mb swap partition, swappiness 60 using a userinit.sh script (see attached), and it really helped speed things along.
Wanted to know everyone else's experience using swap on this crazy new upgrade to our 2-yr old device
Good call. You can also just install "Swapper" from market, and go to advanced preferences, enable partition, good to go.
I am using a 96mb swap partition, and am overclocked to 596 mhz with the replacement kernel. Everything is working brilliantly for me, very stable.
Android 2.1, 600mhz Android device, ample RAM via swap, 16gb card, new slim extended battery - I am once again a happy G1 owner!
kristoff123 said:
Good call. You can also just install "Swapper" from market, and go to advanced preferences, enable partition, good to go.
I am using a 96mb swap partition, and am overclocked to 596 mhz with the replacement kernel. Everything is working brilliantly for me, very stable.
Android 2.1, 600mhz Android device, ample RAM via swap, 16gb card, new slim extended battery - I am once again a happy G1 owner!
Click to expand...
Click to collapse
:O howd u overclock to 596mhz?!
chim4ira312 said:
:O howd u overclock to 596mhz?!
Click to expand...
Click to collapse
The overclock thread that's been sitting on the top of this forum for the last week :0
the kernel I used is on page 38 or 39...anything over 600 eventually crashes for me, but 596 works very well. Flash video even plays fine with Skyfire - so many new goodies for my beloved G1!
-Although I am sure cyanogen will include that kernel or a better one with the next release, but leave it to the user to overclock using setcpu or whatever. Just leave it at 528 default via userinit.sh, so people can choose to what degree they want to melt their G1's, lol.
kristoff123 said:
Good call. You can also just install "Swapper" from market, and go to advanced preferences, enable partition, good to go.
I am using a 96mb swap partition, and am overclocked to 596 mhz with the replacement kernel. Everything is working brilliantly for me, very stable.
Android 2.1, 600mhz Android device, ample RAM via swap, 16gb card, new slim extended battery - I am once again a happy G1 owner!
Click to expand...
Click to collapse
hello
link please
lefeudedieu said:
hello
link please
Click to expand...
Click to collapse
Here, searched my ass off to find it...your welcome
http://forum.xda-developers.com/showpost.php?p=6352322&postcount=402
ok, thank
but i put the image boot by fastboot and G1 reboot and reboot ?
In my personal experiences with swap..... I'm not exactly sure what it was supposed to do after I applied it.
I do know what it does though...
As stated in previous forums,
The longevity og my card is very important to me
And finally, Cyanogen advises against swap.
if you would like to learn his thoughts, read his wiki.
And op, you crack me up. +10!
Sent from my HTC Dream using the XDA mobile application powered by Tapatalk
lefeudedieu said:
ok, thank
but i put the image boot by fastboot and G1 reboot and reboot ?
Click to expand...
Click to collapse
i think its not a image that can be flashed. it should be paste to /sd-ext document.
u need to extract the userinit.sh script and put it in /sd-ext
zimphishmonger said:
u need to extract the userinit.sh script and put it in /sd-ext
Click to expand...
Click to collapse
and thats it??
zimphishmonger said:
u need to extract the userinit.sh script and put it in /sd-ext
Click to expand...
Click to collapse
This conversation is confusing. 2 people talking about swap and 2 trying to overclock. Use the zip file from this thread, unzip it, open it with gedit or notepad++, add the stuff in the link from @zimphishmonger talking about overclocking. Follow the stepsw in that post. If you fastbooted the boot.img and it just boot loops, you may have trouble. You may need to reflash cm5.0.7. Or reinstall the Nandroid backup you made before you flashed it.
Also if history tells us anything, Cy will never include any over clock hack. He is pretty conservitive along those lines.
dangambino said:
and thats it??
Click to expand...
Click to collapse
Not exactly
do
adb shell chmod 755 /sd-ext/userinit.sh
to give it permissions.
My userinit.sh looks a little different so I can't say for sure it is correct.
...You mileage may vary.
thanks. running command now
seems to of took!
Swap is not a good feature to use, and I'll explain why:
When you enable swap, your end result is that you have a lot more "memory" available for programs to run in. Because of the memory management scheme used by android (kill background processes on low memory), it ends up that you will be RUNNING MORE PROCESSES. And this is a bad thing because (1) it means that your CPU will be more loaded (multitasking/background processes), and (2) it means that it will end up doing a lot of swapping (sdcard is SLOW) in order to continue providing all the "memory" allocated to each of those running programs.
The end result is that your phone will become VERY SLOW.
The ONLY legitimate use for swap is when you are running a process that is SO LARGE that it can't physically fit in the RAM available on the device *even when* all killable processes are already dead. And on Android, I have yet to encounter such a program.
DON'T USE SWAP! It will accomplish precisely TWO things;
(1) it will make your phone SLOW.
(2) it will kill your SDCARD.
lbcoder said:
DON'T USE SWAP! It will accomplish precisely TWO things;
(1) it will make your phone SLOW.
(2) it will kill your SDCARD.
Click to expand...
Click to collapse
(1) I disagree, it's the opposite ;-)
(2) agreed, but it probably will last enough till my next phone...
Most class 6 cards feature wear levelling from which from what I understand means I'll have upgraded my phone way before it ever dies.
For me using CM without swap has been impossible for quite a while now, gmail sync just doesn't work properly without the extra memory to fall back on. As for it slowing the phone down I've never noticed anything ever being slower with swap although I do have a class 6 card.
deimdos said:
(1) I disagree, it's the opposite ;-)
(2) agreed, but it probably will last enough till my next phone...
Click to expand...
Click to collapse
+1 I disagree as well.
If anything it helps the phone operate normally. Especially with the G1 it has a tendency to push GTalk out of the memory. That means it stops pushing email notifications to your phone, which is really annoying. Even eBuddy has a hard time staying in the memory if you minimize it. The G1 one really benefits from having the swap. And really, are SD cards that expensive? I've had swap on for 8 months and my SD card is fine. I personally use 64MB on my G1 and 30 swappiness, anymore is excessive.
Really you only want enough memory that it holds all the essential apps in place. Autokiller helps too if set at Moderate. So far CM5 though, the battery life is phenomenal compared to the old 4.2.15 (especially after the battery wipe stats fix, if you're having battery drain issues).
If you're using this on the Magic, then I have an issue with that, since it isn't even needed. Unless you have like over 300MB worth of apps and cache. Then maybe you'll need an ext partition. But that's a separate issue.
lbcoder said:
Swap is not a good feature to use, and I'll explain why:
When you enable swap, your end result is that you have a lot more "memory" available for programs to run in. Because of the memory management scheme used by android (kill background processes on low memory), it ends up that you will be RUNNING MORE PROCESSES. And this is a bad thing because (1) it means that your CPU will be more loaded (multitasking/background processes), and (2) it means that it will end up doing a lot of swapping (sdcard is SLOW) in order to continue providing all the "memory" allocated to each of those running programs.
The end result is that your phone will become VERY SLOW.
The ONLY legitimate use for swap is when you are running a process that is SO LARGE that it can't physically fit in the RAM available on the device *even when* all killable processes are already dead. And on Android, I have yet to encounter such a program.
DON'T USE SWAP! It will accomplish precisely TWO things;
(1) it will make your phone SLOW.
(2) it will kill your SDCARD.
Click to expand...
Click to collapse
Check out autokiller in the market. It limits the running processes so that swap actually works.
For those uncomfortable with making a userinit script, as I said before, Swapper does the same thing, it's free, and it's not a program that runs in memory. With the benefit being that you can experiment with swappiness and other settings on the fly. Just go to "Advanced" and select your partition - it's the right location by default.

[Q]What is VM heap size and how it works!?

I've been seeing This CM7 and wanted to know what this was?!
I'm always reading how people say that xxMB is the best size.
But what is it? And how it works?
What's it for? What's the right size for a Galaxy S?
VeryCoolAlan said:
I've been seeing This CM7 and wanted to know what this was?!
I'm always reading how people say that xxMB is the best size.
But what is it? And how it works?
What's it for? What's the right size for a Galaxy S?
Click to expand...
Click to collapse
This setting is simply the maximum amount of heap space (read: memory) a single instance of the Dalvik VM (read: application) can obtain.
Don't read anything into the "benchmarks" performed. This setting should have little effect on overall system performance. The only scenario where it would be beneficial to increase the maximum heap size would be if you have an application that is very close to using up all of its available heap space, which would force it to run garbage collection frequently, which would use up CPU cycles. It is possible that lowering the maximum heap size could be beneficial in that it might prevent an application from obtaining more memory than it needs (by forcing it to garbage collect sooner), but that all depends on how the Dalvik VM is implemented and is really beyond my knowledge.
The heap (in Java) stores dynamically allocated variables, such as objects. Like Rueben_ said, when the heap is running low on memory, the JVM will run garbage collection. Garbage collection uses processing cycles, which will slow down your phone. In case you're wondering, the other place in memory where things are stored is called the stack, which stores arguments and parameters.
Oh okay
So how do you how much memory to put it for at Max?
Sent from my SGH-T959 using xda premium
mrinehart93 said:
In case you're wondering, the other place in memory where things are stored is called the stack, which stores arguments and parameters.
Click to expand...
Click to collapse
I do believe the stack is reserved for storage of CPU data (typically, the contents of its registers) before it switches toanother context (or thread, which means loading a different set of data in its registers).
The memory zone where data from user apps (and the Dalvik VM is one of those, albeit a über-app of sorts since it runs all the other apps) is stored is rather just called "the heap". At least that's the way I learned it
daxdax89 said:
So is it better to put higher or lower heap size for games?
Click to expand...
Click to collapse
There is no right answer for this as you should have gathered from reading the answers you were given.
It all depends on how you use your phone.
Try out different settings with games and you'll see which suits your usage best.
Go on - Live on the edge a little lol...
daxdax89 said:
So is it better to put higher or lower heap size for games?
Click to expand...
Click to collapse
For the Vibrant if you use big apps then put the VM at like 128 or or something like that.
If you have small flashlight apps then use it at 32-96
Sent from my SAMSUNG-SGH-I747 using xda premium
Say, this seems to be a "magic bullet" for devices with modest memory sizes to keep apps from swamping the available memory. For my 1 GB Lollipop device, setting dalvik.vm.heapsize to "96m" improved the performance of the device. I was able to cycle between many memory-heavy applications without getting bogged down.
Be careful! Forgetting the "m" at the end, or setting the number too low will send your device into an endless garbage-collection, essentially locking you out. I set it too low myself, had to pop the battery, then quickly raise the value after reboot (before the "system_server" app got itself above the limit I had set), rebooting again to apply the new value. For a fair indication of a lower limit, look at the memory consumption of the "system_server" app. Set it above that to give it some headroom. Make sure you have a recovery plan before messing with this value!

[GUIDE] Ways To Speed Up Your Device

Are you tired of the fact that your device is lagging a lot when switching between screens or in gaming ??? Here is a little guide to speed up your device in most cases
1. Most common thing which is now popular with lovely pico owners is the new cute_price's oc kernel technique which could overclock your device without harming your nand, which we call as nand burn. cute_prince's thread: http://forum.xda-developers.com/showthread.php?t=2337886
In this case you can use these kernels- Jarvis kernel: http://forum.xda-developers.com/showthread.php?t=2325345
Pandora kernel: http://forum.xda-developers.com/showthread.php?t=2238754
2. you can use some task killers and an app called ram manager free & pro versions: https://play.google.com/store/apps/details?id=com.smartprojects.RAMOptimizationFree
this app helps to clear all the task running in background and freeing up maximum ram, you also get different profiles like more free memory, hard multitasking, hard gaming etc.
3. You can use an app called Greenify: https://play.google.com/store/apps/details?id=com.oasisfeng.greenify
this app hibernates apps that are not in use to maximize free ram space and boosts up the speed of the device.
4. Reboot your device atleast once in 2 days so to load all the processes and apps to bring back the smoothness.
5. clear cache under recovery of the device
6. as mentioned above you can try some kernel that can overclock your device uptill 800mhz or higher (higher the speed, maximum chances of nand burn ) you don't need to create any special partitions for these kernels.
7. don't move data to sd-ext if you have a sd card partition, this decreases the speed for loading apps and lags your device.
8. Avoid live wallpapers because these acquire ram as well as cpu and drain battery with a faster speed.
9. Disable auto sync of data.
10. Disable unwanted apps to freeze the process completely
11. Uninstall unwanted apps so as to increase internal storage and increase performance (menu loading time and os loading time)
12. Decrease use of widgets because these use hell lot of ram and cpu usage.
To determine which process is running the most in background, better use better battery stats app from the play store: https://play.google.com/store/apps/details?id=com.asksven.betterbatterystats
13. Hit Thanx the most important thing that would speed up your device
Reply some other techniques that you use and i am gonna add them too, these were my own ways to boost up
I don't use scripts because they don't help a lot (no offence )
+1
russelldias said:
+1
Click to expand...
Click to collapse
Thanx bro, got my first reply to a post ...
would remember forever
nsyncfan said:
Thanx bro, got my first reply to a post ...
would remember forever
Click to expand...
Click to collapse
Awesome
Great Tips
Nice one bro! Especially the last 'Thanks' one
Yeah , thanks
Sent from my nexus 7

Categories

Resources