Putting your cache & temp on RAM Disk? - Off-topic

I've been wanting an SSD for a while now, so I went ahead and got a Crucial MX100 512GB SSD. Since before considering the purchase and after the purchase (during the use of it these past three days), I've been researching about things to do and things not to do. Everything from should you defragment your SSD (never) and how can you optimize your SSD. The reason for my post is simple: Will putting my cache & temp files on a RAM disk increase the longevity of the SSD, or is it just wasteful? I've noticed since putting only my cache on RAM (using some configurations that are built into Firefox), the load time of pages seems to have decreased by almost 100 percent. As far as load times go, it seems worth doing. However, does it help the SSD in any significant way or not? I would believe so as it writes less to the SSD than normal cache writes on disk, but I want to know for sure

SwiftLeeO said:
I've been wanting an SSD for a while now, so I went ahead and got a Crucial MX100 512GB SSD. Since before considering the purchase and after the purchase (during the use of it these past three days), I've been researching about things to do and things not to do. Everything from should you defragment your SSD (never) and how can you optimize your SSD. The reason for my post is simple: Will putting my cache & temp files on a RAM disk increase the longevity of the SSD, or is it just wasteful? I've noticed since putting only my cache on RAM (using some configurations that are built into Firefox), the load time of pages seems to have decreased by almost 100 percent. As far as load times go, it seems worth doing. However, does it help the SSD in any significant way or not? I would believe so as it writes less to the SSD than normal cache writes on disk, but I want to know for sure
Click to expand...
Click to collapse
From what I've read, it's definitely not wasteful, and there are definitely benefits such as those that you've already noticed. It absolutely helps the SSD because reading and writing to a RAM fs allows data to be accessed and modified without involving the SSD in any way. I am fairly sure that reading from an SSD does not impact the lifespan, only writing to it does. All of what I'm about to write is specific to linux. The trick you mentioned about firefox is complimented nicely by a script called "profile sync daemon" which syncs all the data of your firefox profile to your SSD before shutdown and copied back into your RAM after each boot so that the data can still be persistent. It's available as a package for many common linux distributions. It seems that since recent improvements in how file-systems are handled, it's possible, assuming the device is of decent quality, for SSDs to likely far outlast the rest of your hardware (outlast either because of the other hardware failure or because of hardware obsolescence) before seeing any noticeable slowdown and especially before complete wear of the SSD . To take advantage of those advancements, you should make sure that you use a filesystem that supports the trim function. Off the top of my head, I know that ext4, xfs, and btrfs support this. It is usually enabled by specifying the "discard" option in fstab. Another way to ensure that unnecessary disk writes don't occur is by disabling or reducing the level of journaling, which can be done in different ways depending on the file system, but in certain cases at the cost of data integrity.
The short answer is that doing what you're doing definitely helps improve the lifespan of the SSD, and I would recommend looking into the trim option that some filesystems offer as well as the journaling options.

Related

Advanced Linux users needed inside.

Hi.
Just a thought i had some time ago; why can't we get a small linux to run in Ram or SD?
Set the CPU to a minimum,
Shut down the HDD when we don't need it,
Share W-Lan when needed,
Share SD when needed,
etc. etc.
If possible, we could have a powerful WM without having Vista eating all the battery in the background.
Any thoughts?
Would it work?
Would we actually be able to run WM and share SD for 2? 4? 6? maybe 10 hours? or more....
Poof thought it would be possible, but unfortunately where he lives they also only have 24 hours a day ;-)
Deadnex proposed to use http://damnsmalllinux.org/ as a base for a project, and to me that look to be a good choice.
But then again, I don't know much about Linux or how to pull this of.
Anybody?
edit:
http://mnm.uib.es/gallir/cpudyn/ could help us?
that what I want to know... in Windows 7 ^^
hmm, good Idea, but how too... ?? maybe a really Unix Expert can porting a small unix to the ARM side, maybe the really better way ;-)
You would still have the trouble to access the hd, sd, wifi etc. from the ARM side, regardless of which OS you run as I understand :-/
yes, you´re right, that´s a problem of the BIOS if you comparing this issue with a PC :-(
Not very usefull, i tried it with a debian install onto my x86 side tweaked for battery life, as result i got a battery lifetime of 2h 45 minutes with display running all time VERY darkened. 3h 3minutes i readched with a really tweaked vista with auto shutdown nearly all Services disabled and reg tweaked for performance.
So as you dont get all ACPI functions enabled in debian you can't get the goal like a ARM linux shift would.
Neutron83 said:
Not very usefull, i tried it with a debian install onto my x86 side tweaked for battery life, as result i got a battery lifetime of 2h 45 minutes with display running all time VERY darkened. 3h 3minutes i readched with a really tweaked vista with auto shutdown nearly all Services disabled and reg tweaked for performance.
So as you dont get all ACPI functions enabled in debian you can't get the goal like a ARM linux shift would.
Click to expand...
Click to collapse
i reach about 4hours with windows7 but doing nothing at all (msn only)
I don't get it.
If the HD is off, CPU scaled down to...lets say 100Mhz, Linux running in Ram.
How can that use more power than having Vista running?
1. you cant scale it to 100Mhz afaik
2. BIOS / RAM / Grafiks continues to eat POWER
3. Also the grafiks chip isnt able to powerscale afaik
AFAIK
x86 architecture and ARM are very different caused by x86 does mostly running throu cycles and when it catches work it does its work, in the cycles, when theres no work it does HLT (asm signal to hold for some cycles to save power =)
ARM does it in another way it has bits to be set, then its going to power the parts that cycles thru the work when the bit is set.
that causes our 400mhz ARM cpu hold battery power up to 96h and a double that fast cpu x86 only last 4h ?! you see it should be lets say 48h if they where same architecture.
Well, i'm not saying your wrong
But as to my knowledge it is very possible to Scale a processor.
It's being done every day (Over/Under clocking), but i guess it can only be done via Bios?
I did this myself on an Asetek system some years ago, surprisingly how much extra you can get out of a CPU when you have it at -20 Celsius.
Even so, if the HD is off, Linux running in Ram, Screen in power save/or off it should still last a fair bit longer than any Windows version ever would.
But perhaps it's way to much work to get an extra hour or two???
Okay you could possibly get that, but the normal frequency scaling mobile CPU's have, they have a feature (CPU function) to scale the processor while runtime ! i think that wont have the 100Mhz !
you could do it in the bios side (change clocking of the Processor and turn power at all down. but i never would try to rev engeneer the buildin bios from the shift to make manual frequency scaling available ! Cause that would be MUCH work & a chance to brik the device ! also what would i do with a 100MHZ x86 Shift with nearly everything shut down but running let be very optimistic 10h after all tweaking?
i think it would be more interesting in geting linux to the ARM side !
You can have that side nearly 100h online with GSM enabled and partitaly browsing the web writing some stuff !
i recommend the ARM side !
Greets
Neutron83 said:
i recommend the ARM side !
Greets
Click to expand...
Click to collapse
I agree with you on that one, but no matter how you look at it, the ARM side is handicapped.
No Wifi, No External storage, No USB Host
For the above to work we need the x86 side to be running, and I think it will stay that way until somebody figures out a way to solder in a HW brigde

[Q] Overclocking gt540

Is it possible to overclock this percious phone? If yes how can we do that?
Google is your friend!!
http://androidcommunity.com/forums/f7/how-do-you-overclock-18292/
To overclock your phone, you need a rooted phone (i.e. root access), then you can either edit a specific file yourself that dictated the clock speed, or there's an app on the market to do it for you.
Aside from the risks of damage to your phone, the gain is mostly in people's heads. The phone is RARELY CPU locked, and is usually IO locked. What this means is that most lag or slowness in the phone is called by reading or writing data to/from memory, graphics, or SD card, and NOT by the processor being slow or maxed out.
This can be seen in benchmarks people have performed before and after overclocking. People who run computational benchmarks get an increase in peformance that almost matches the increase in clock speed (i.e. a 30% increase in clock speed gives a near 30% increase in the benchmarks), but people performing benchmarks that involve graphics, read/writing, or large amounts of memory (as is much more typical of Android apps), only show around a 10th of the overall increase. It's really not worth it.
Click to expand...
Click to collapse

Problem with LAGFIX (ext4) - Not good idea??

I have been using lagfix - ext4 since eclair and I was convinced of its benefit.
BUT recently I discovered it may not be such a good idea after all on froyo (v2.2.1). Why?
IT WILL LAG much more than RFS not at the beginning but at a few days into use/uptime later.
I only realised this after converting all my partitions back to RFS. After boot, I can't really tell the difference betw. RFS and ext4 smoothness (both are very smooth). But after 48-50 hours uptime later, with ext4 lagfix, I realised that free RAM seldom goes above 50MB and there is always a constant heavy cpu usage by kswap0 process everytime I use the phone. With RFS only, the free RAM varies up to 65Mb and the kswap0 cpu usage isnt as high as ext4 (i.e. there is still some lull period where kswap0 is not constantly hogging cpu). Of course RFS still slows down (but tolerable) overtime but not as bad as ext4.
I'm suspecting that the ext4 filesystem is hogging or leaking memory leading to smaller pool of useable RAM. This is causing the constant swap of dormant apps out of memory thus contributing to the lag. I am kind of convinced that the hated LAG is caused by this kswap0 process. (This kswap0 process usually has low usage just after boot thus the great speed but as time goes on it deteriorates)
Anyone has the same experience or want to comment on this?
(I am using doc rom 9.6.6 + speedmod k13d kernel)
I never had lag with RFS on 2.2 and above, but ive been running lagfix (ext 2/4) since the day i got my phone,
i do find that after a long time RAM gets reduced alot, but if my phones been running for 48+ hours, (which is rare cause i always flashing) i do a reboot to spice up my life a little lol
you should just do that too.
ext4 isnt harmful to the phone in the same sense as lets say...... overclocking CPU.
lagfixes only cause problems, like file corruption (when flashing without disabling) but a re-partition in odin fixes that up

[Q] Which better

Which better in sd memory cards
Kingstone 32gb class 10 OR
G- Skill 32gb class 10
http://forum.xda-developers.com/showthread.php?t=1150369
http://www.tomshardware.com/reviews/microsdhc-memory-card-performance,3011.html
Ok Thank u very much but actually the link helped me in knowing that class 4 may be better than 10 in some cases but it did not help in the comparison between g-skill and kingstone .. also i want the sd card to do the trick of increasing ram by rooting .. because the performance of the ram is terrible due to installing a lot of app;ications and games
ok can we add in the comparison SanDisk 32GB Micro SD Ultra Mode
so the will be what should i buy ?!!!!
1- SanDisk 32GB Micro SD Ultra Mode
2- Kingston 32gb class 10
3- G-skill 32gb class 10
No answer till know ?!!!!!!!!!!!!!!1
arrivals18 said:
ok can we add in the comparison SanDisk 32GB Micro SD Ultra Mode
so the will be what should i buy ?!!!!
1- SanDisk 32GB Micro SD Ultra Mode
2- Kingston 32gb class 10
3- G-skill 32gb class 10
Click to expand...
Click to collapse
I'd got for kingston if you want stability, sandisk is kinda good with speeds, don't know about G-skill
arrivals18 said:
also i want the sd card to do the trick of increasing ram by rooting .. because the performance of the ram is terrible due to installing a lot of app;ications and games
Click to expand...
Click to collapse
BUT if i were you, I wouldn't use my sdcard to increase my memory.1 GB is enough, actually more than enough.You may be wanting more memory due to stock ROM using too much RAM, but android is designed to use lots of RAM.For example, android will cache the apps you use oftenly in your RAM so that they'll launch faster and you will same some battery if you launch them often in short amount of time.
For the RAM performance, I think we've got ddr2 1066 (not sure), which is fast enough as its even faster than my PC's (ddr2 800).IF you haven't cleaned your ROM by removing bloatwares (most of the apps with LGE name in it are bloatwares), your phone will lag and yes, your RAM will slow down.After I removed all the bloatwares, I freed around 150 - 200 mb RAM and my phone became smoother.So you should try this before you kill your sd card for a little bit of more RAM.
NEVER use sd card to increase your RAM, It will kill it easly and your phone won't be fast at all.RAM is a lot of faster than a class 10 sd card, your phone could only use your SD card to store inactive **** inside that SD card and even then your phone will be sluggish, especially when your freeing up some RAM.This can be done by launching a game, android would push inactive apps, caches into your SD card, thus making your RAM do more work while transfering data over to sd card and slow down launch time.That could also slow down games which require a lot of RAM speed.Ironman 3 for example, you keep switching between environments which requires textures to be replaced inside your RAM, in that kind of case you'd experience lots of lags.In brightest situation, your phone won't lag as much but you won't get any performance improvements either (perhaps a little until you launch apps) and your BATTERY will deplete like hell.
Your sd card won't last for long no matter what you purchase, all flash memories have a limited write-read cycles, and using it as a RAM would do a lot of r/w cycles, thus resulting in very short lifespan.Google dead sd cards caused by that RAM expanding method, you'll find a lot of dead sd card complaints.
Source : I used such method to increase my old phone's little ram (290 mb).Which resulted in an even slower phone, with lots of lagspikes and slower UI.
ottomanhero said:
I'd got for kingston if you want stability, sandisk is kinda good with speeds, don't know about G-skill
BUT if i were you, I wouldn't use my sdcard to increase my memory.1 GB is enough, actually more than enough.You may be wanting more memory due to stock ROM using too much RAM, but android is designed to use lots of RAM.For example, android will cache the apps you use oftenly in your RAM so that they'll launch faster and you will same some battery if you launch them often in short amount of time.
For the RAM performance, I think we've got ddr2 1066 (not sure), which is fast enough as its even faster than my PC's (ddr2 800).IF you haven't cleaned your ROM by removing bloatwares (most of the apps with LGE name in it are bloatwares), your phone will lag and yes, your RAM will slow down.After I removed all the bloatwares, I freed around 150 - 200 mb RAM and my phone became smoother.So you should try this before you kill your sd card for a little bit of more RAM.
NEVER use sd card to increase your RAM, It will kill it easly and your phone won't be fast at all.RAM is a lot of faster than a class 10 sd card, your phone could only use your SD card to store inactive **** inside that SD card and even then your phone will be sluggish, especially when your freeing up some RAM.This can be done by launching a game, android would push inactive apps, caches into your SD card, thus making your RAM do more work while transfering data over to sd card and slow down launch time.That could also slow down games which require a lot of RAM speed.Ironman 3 for example, you keep switching between environments which requires textures to be replaced inside your RAM, in that kind of case you'd experience lots of lags.In brightest situation, your phone won't lag as much but you won't get any performance improvements either (perhaps a little until you launch apps) and your BATTERY will deplete like hell.
Your sd card won't last for long no matter what you purchase, all flash memories have a limited write-read cycles, and using it as a RAM would do a lot of r/w cycles, thus resulting in very short lifespan.Google dead sd cards caused by that RAM expanding method, you'll find a lot of dead sd card complaints.
Source : I used such method to increase my old phone's little ram (290 mb).Which resulted in an even slower phone, with lots of lagspikes and slower UI.
Click to expand...
Click to collapse
That is . Using sd as a ram will not speed my phone also it will consume battery " this is the biggest problem " so tell me how to speed up my phone , minimize freeze as i have more than 40 apps and The Dark Knight rises , Need for Speed and this games can not be played well and a have from 150 to 200 mb of ram free only !!!!!!!!!!! i don't know why . also i usually kill all apps that still worked and this don't do anything
arrivals18 said:
That is . Using sd as a ram will not speed my phone also it will consume battery " this is the biggest problem " so tell me how to speed up my phone , minimize freeze as i have more than 40 apps and The Dark Knight rises , Need for Speed and this games can not be played well and a have from 150 to 200 mb of ram free only !!!!!!!!!!! i don't know why . also i usually kill all apps that still worked and this don't do anything
Click to expand...
Click to collapse
150-200MB free is more than enough. Android runs on a *Nix base - it is designed to use all the memory it can and will free up memory as needed. "Free memory is wasted memory". Lagging is due to the GPU, CPU speeds etc - lots of people have problems with playing games on this device.
SimonTS said:
150-200MB free is more than enough. Android runs on a *Nix base - it is designed to use all the memory it can and will free up memory as needed. "Free memory is wasted memory". Lagging is due to the GPU, CPU speeds etc - lots of people have problems with playing games on this device.
Click to expand...
Click to collapse
Not only games but also opening simple apps such as chrome !!!!!!!
arrivals18 said:
Not only games but also opening simple apps such as chrome !!!!!!!
Click to expand...
Click to collapse
How empty is your internal SD card? Ever tried V6 supercharger script? What kernel are you using (I'd recommend eternityproject kernel)?
Your cpu shouldn't have any difficulties loading chrome, don't think its related to RAM, perhaps your having I/O lags.
arrivals18 said:
That is . Using sd as a ram will not speed my phone also it will consume battery " this is the biggest problem " so tell me how to speed up my phone , minimize freeze as i have more than 40 apps and The Dark Knight rises , Need for Speed and this games can not be played well and a have from 150 to 200 mb of ram free only !!!!!!!!!!! i don't know why . also i usually kill all apps that still worked and this don't do anything
Click to expand...
Click to collapse
I currently have NFS, the dark knight rises, real racing 3 and dungeon hunter 4, a few more apps that consume 100 - 200 mb internal memory and around 20 more small games.I'm experiencing no lags in any games except the dark knight rises (thanks to gameloft...) and dungeon hunter doesn't lag in normal visual settings.
I'm using eternity project kernel and V6 supercharger script to manage my RAM.
NEVER use a task killer in this device, Use an autoruns manager (such as gemini app manager) to stop apps from runing in background, consuming RAM & cpu.That helped me smoothen my phone when I had lags back in the day.
arrivals18 said:
No answer till know ?!!!!!!!!!!!!!!1
Click to expand...
Click to collapse
Le Kingston because they produce the highest quality SD cards. I never had any problems with any Kingston product, be it a USB flash drive or microSD.
The class 1-10 also matters, get a high class kingston microSD card.

Question Average RAM Usage

Hello guys,
I would like to ask you, what is your average ram usage? because the lowest I could go for is 5GB after using memory guardian to close all apps and average usage is 6-6.5 GB. Highest is 7.4 GB
I find the average so high, because I was using same apps on my previous A70 phone and only 4-5 gb was used.
Is that normal?
Are you guys using any third-party app to clean your ram automatically?
A70 has only 6GB of RAM. You were using 80-90% of it (4-5GB).
S21U has 12/16 GB of RAM and you're using 50-60% of it (6-8 GB), even for the "lower" RAM variant.
That's very good brother. If the remaining 4 GB RAM is lying unused, or if you had more, like 8 GB free, how would that benefit your user experience? One of the reasons to buy flagships like this is the large RAM. But that would be pointless if it were never even used, right?
Apps kept in RAM can be woken up and ready to instantly with less energy expenditure. Those that get unloaded from the RAM, are also eventually loaded back - but that is from the internal UFS 3.1 storage, which is slower than LPDDR5 RAM, and wastes much more energy (battery) for a full app start instead of resuming from suspended state in RAM.
I stopped using RAM clearing apps or even OEM cleaning services few years ago. Android manages RAM very well on the newer versions, and I haven't seen any advantage of clearing apps or RAM as an end user. It only helps if you have a rogue app that runs in the background constantly. Usually, the battery health monotoring built in Android will alert yourlself to it and you can choose to put it to deep sleep or disable or uninstall the offending app. But short of bad apps, most other services don't need manual motitoring and constant user maintenance.
When free RAM falls below what the phone needs, it will kill the last/least pioritised task and re-claim it for use. As a user, you shouldn't have to bother with managing it manually.
Yup, as @enigmaamit said, don't worry and stop bothering with ram cleaning apps. I also used to try and clean my RAM back in the day but that was only necessary on the 2GB and maybe 4GB RAM phones. Since the 6GB RAM phones, cleaning apps have been useless.
The reason your a70 was using less is because it had less and the system had to decide how much to fill and how much to leave free to maximize performance.
Carry on and worry not.
On android, free ram is wasted ram. Remember this and stop using useless "memory cleaning" apps. All they do is slow your phone down and kill your battery life. Same with clearing app cache. Only do it if you have a problem with the respective app.

Categories

Resources