7 ms·
Chrome, on my system, is even more abusive. Watch the size of the .config/google-chrome directory and you'll see that it grows to multi-GB in the profile file.
by lighttower 10y ago
Chrome, on my system, is even more abusive. Watch the size of the .config/google-chrome directory and you'll see that it grows to multi-GB in the profile file.
There is a Linux utility that takes care of all browsers' abuse of your ssd called profile sync daemon, PSD. It's available in the debian repo or [1] for Ubuntu or [2] for source. It uses `overlay` filesystem to direct all writes to ram and only syncs back to disc the deltas every n minutes using rsync. Been using this for years. You can also manually alleviate some of this by setting up a tmpfs and symlink .cache to it.
[1] https://launchpad.net/~graysky/+archive/ubuntu/utils https://launchpad.net/~graysky/+archive/ubuntu/utils
[2] https://github.com/graysky2/profile-sync-daemon https://github.com/graysky2/profile-sync-daemon
EDIT: Add link, grammar
EDIT2: Add link to source
- pawadu 10y agoWhat is the typical memory usage of this for normal web browsing?
- lighttower 10y ago`mount -l` shows a filesystem of type `overlay` for each browser (in my case, chromium, chrome, firefox). Range from 50MB to 200MB. I have it to sync to disc every 15min - so I reckon it empties out the ram whenever it syncs. I've never had a problem (8GB of ram on the machine I initially installed it on) so I haven't watched to see what the max size is. The developer [1] is great - issues are resolved very quickly. [1] https://github.com/graysky2/profile-sync-daemon https://github.com/graysky2/profile-sync-daemon
- codemac 10y agoMine uses the following with firefox: overlaid 2.0G 128M 1.9G 7% /run/user/1000/codemac-firefox-3ckuo4v7.default
- lucb1e 10y agoLaunchpad is such a shitty website, aimed at Ubuntu and only Ubuntu, links to source code or more information are nowhere to be found... Searching on Github, this seems to be it. Turns out, there's releases for Arch, Debian, etc. and it's even in the repositories. No need to add a ppa. https://github.com/graysky2/profile-sync-daemon https://github.com/graysky2/profile-sync-daemon For Debian and co: $ apt-cache show profile-sync-daemon $ sudo apt-get install profile-sync-daemon
- toxican 10y agoAs someone who took the plunge into Debian from Ubuntu yesterday, thank you!
- fulafel 10y agoThe link in question was to an Ubuntu PPA on Launchpad, but Launcpad is by no means Ubuntu-only. See eg https://launchpad.net/openstack https://launchpad.net/openstack, https://launchpad.net/inkscape https://launchpad.net/inkscape, https://launchpad.net/shutter https://launchpad.net/shutter etc
- javier2 10y agoLaunchpad is absolutely horrific to navigate and contribute to.
- matt4077 10y agoI checked the Activity Monitor on OS X to see if it's the same and if I should do something. It's quite surprising: bird 11,38 GB 119,8 MB kernel_task 8,82 GB 23,0 MB launchd 8,46 GB 77,7 MB revisiond 8,35 GB 105,8 MB Tweetbot 3,01 GB 50,2 MB Safari 879,6 MB 10,0 MB mds_stores 726,2 MB 570,1 MB systemstatsd 695,0 MB 775,0 MB nsurlstorag 685,3 MB 9,5 MB Google Chrom 681,4 MB 303,5 MB iTerm2 653,7 MB 1,6 GB cfprefsd 509,1 MB 45,8 MB Papers 3.4.7 465,9 MB 169,8 MB cloudd 441,3 MB 9,7 MB ruby 224,6 MB 1,7 MB coreduetd 217,5 MB Reeder 207,2 MB 28,5 MB apsd 65,7 MB 11 MB Safari 55,3 MB 12,6 MB I've long gotten used to "bird" doing it's thing (something with the cloud I guess). But how can a twitter client write 3GB (while I'm not even actually using it?)
- mrsteveman1 10y agoCaching tweets with all media, I would guess. Probably updates in the background all the time.
- p4bl0 10y agoJust for info, profile-sync-daemon is available for Jessie only if you have the backport repos.
- m_rcin 10y agoArch Wiki describes how to do it manually: https://wiki.archlinux.org/index.php/Firefox_on_RAM https://wiki.archlinux.org/index.php/Firefox_on_RAM
- anubisresources 10y agoThank you! I've been looking for this for ages
- anubisresources 10y agoThank you! I've been looking for this for ages
- sandGorgon 10y agothis is the first I heard of this - why is this not a config flag ?
- tedmielczarek 10y agoProbably because most people don't want their profile to be broken if their OS crashes or their computer powers off unexpectedly?
- cortesoft 10y agoIf you miss a sync, your profile isn't going to be 'broken', just out of date.
- spullara 10y agoif it happens during the sync you could be arbitrirly broken.
- deleted 10y ago[deleted]
- avar 10y agoOnly if the sync is the equivalent of: rsync [...] /dev/shm/.browser ~/.browser Instead of: rsync [...] /dev/shm/.browser ~/.browser.new && ln -sf ~/.browser.new ~/browser Or some such equivalent, i.e. doing the full sync and then atomically juggling a symlink around.
- wolf550e 10y agothat creates many more writes to the ssd.
- waterhouse 10y agoDoes it? Consider this scheme: maintain two physical directories, one of which is current (and is named by a symlink) and the other of which is old. When doing a sync, you rsync the newest data into the old directory, then update the symlink. It'll probably result in somewhere between 1x and 2x the writes as the non-atomic single-directory scheme, depending on how well adjacent diffs combine. It will also result in twice the space used (barring some very clever filesystem).
- JadeNB 10y ago> There is a Linux utility that takes care of all browsers' abuse of your ssd called profile sync daemon, PSD. I guess doing something like this on Windows is too much to hope for, but does anyone know how to do this sort of thing on the Mac?
- vizzah 10y agobeware! profile-sync-daemon erased my browser profiles upon first run under Ubuntu Xenial due to apparent bug in eCryptfs support (and how /home was mounted). Report was submitted to the developer.
- socksy 10y agoBeen using on my system ever since I started running everything from my USB drive... to prevent excessive freezing twice a minute. On NixOS, add the following two lines to your configuration.nix: services.psd.enable = true; services.psd.users = ["your-user-name"];
- nicklaf 10y agoI would be very interested to see how Chomebooks fare here.
- tychuz 10y agoAnything similar for macOS?
- brucedawson 10y ago> Chrome, on my system, is even more abusive. The OP is complaining about excessive write traffic, which wastes power, steals disk-time from other applications, and may wear out SSDs prematurely. A large profile file does not imply excessive write traffic, so it's not clear from your report that Chrome is hitting the same problem at all. Definitely worth watching, but big-file != excessive-writes.
- nchelluri 10y agoI think your point is valid, but even so the person you were replying to turned out to be correct. There's an edit at the end of the article: > Currently in the middle of a Chrome Version 52.0.2743.116 m test. We have been able to see a pace of over 24GB/ day of writes on this machine... 24GB is higher than the 10-12 he was complaining about from Firefox, even.
- smegel 10y agoHow do we switch it off on Chrome (Windows)?
- Freestyler_3 10y agoI have been wondering and asked the same for chrome based browser... did not find anything so far.
- d0vs 10y agoAnyone actually noticing a speedup from using this?