Try starting ff with the -silent switch. I think that should load it without starting the GUI and keep it running when you close the window. Check the mozillazine article for details tho.
It isn't keeping Firefox in memory, its keeping the profile (so not what OP asked).
Firefox can already be configured to not use a disk cache and keep the entire cache in ram if you tell it so.
So you aren't gaining anything over straight up configuring Firefox and risking your profiles integrity instead.
Its redundant. Its addressing a "problem" in the wrong place. Not to mention the kernel has a disk caching and dirty writeback mechanisms for a reason.
I have strong feelings against even the concept of profile-sync-daemon, and transitively (although moreso), anything-sync-daemon.
You, as a user, cannot possibly manage memory more effectively than the kernel. Do not intentionally thwart the page cache.
To claim that you're saving your precious SSD "unnecessary writes" is advanced silliness. Recent controllers don't have nearly the same problems early SSDs had.
The only conceivable "benefit" is to move the startup time to bootup, rather than to when you first run the program.
Shell is inherently dangerous. If you're bent on writing something dangerous, you'd better know all the pitfalls of shell and what will eventually go wrong in your script. To wit, reading the bbs threads about these daemons will show at least 1 user who has suffered data loss simply by upgrading the profile-sync-daemon package
Windows 8 allows the closing of apps about as easily as any other operating system. The method is a bit different on the Metro apps, but about as equally as easy. Though they brought some of the desktop methods in Windows 8.1 Update to the Metro apps, so that's pretty nice.
And it's been awhile since I used Androids method, but I believe it depended on what launcher you were using. On mine there was a way to bring up a scrolling "list" of apps with a screenshot of the last use and you just pulled up.
To more directly answer the question of the OP, I don't know of a way, but generally speaking it's better to allow the kernel to figure out what to cache in RAM and what to not cache. If you're really not using it, and you're not satisfied with minimizing, you might have to deal with it taking a little bit to go to disk.
I've got 8.1 on my laptop in dual boot for gaming and yes, thankfully alt+f4 is there. No close button for the average joe though, might as well use my tiling window manager since difficulty is the same.
And yes, Android can provide you easier ways depending on your phone. But for example, on my Galaxy S3 i9300, with the default TouchWiz in Android ICS even pulling the list of apps and wiping them there wasn't enough. Only on CyanogenMod KitKat with Trebuchet launcher can I now do it properly.
Push it to a different workspace or minimize it. Or are you wanting it to act like Chrome, where it keeps tasks running in the background when you close hte main window?
Perhaps you can make a ramdisk (tmpfs?), put the firefox binary and files there, and link them back in /usr/bin? This should speed up loading I guess.
2 points
unknown author
Did you mean the option you can choose to load tabs from last browsing session? Or did you mean keep and load things into ram for faster browsing/use, if so there's some helpful apps like zram and preload.
22 comments
minimize it instead of closing it?
Seems like the obvious answer.
Why?
Possibly to minimize read/writes on an SSD. Fx is a monster in that regard.
Try starting ff with the -silent switch. I think that should load it without starting the GUI and keep it running when you close the window. Check the mozillazine article for details tho.
Profile Sync Daemon might be what you are looking for. It is in the AUR.
https://github.com/graysky2/profile-sync-daemon
https://aur.archlinux.org/packages/profile-sync-daemon/
I recommend this solution.
It's a stupid solution.
So you aren't gaining anything over straight up configuring Firefox and risking your profiles integrity instead.
Its redundant. Its addressing a "problem" in the wrong place. Not to mention the kernel has a disk caching and dirty writeback mechanisms for a reason.
http://archlinux.2023198.n4.nabble.com/TU-application-from-graysky-tp4685175p4685193.html
Windows 8 allows the closing of apps about as easily as any other operating system. The method is a bit different on the Metro apps, but about as equally as easy. Though they brought some of the desktop methods in Windows 8.1 Update to the Metro apps, so that's pretty nice.
And it's been awhile since I used Androids method, but I believe it depended on what launcher you were using. On mine there was a way to bring up a scrolling "list" of apps with a screenshot of the last use and you just pulled up.
To more directly answer the question of the OP, I don't know of a way, but generally speaking it's better to allow the kernel to figure out what to cache in RAM and what to not cache. If you're really not using it, and you're not satisfied with minimizing, you might have to deal with it taking a little bit to go to disk.
I've got 8.1 on my laptop in dual boot for gaming and yes, thankfully alt+f4 is there. No close button for the average joe though, might as well use my tiling window manager since difficulty is the same.
And yes, Android can provide you easier ways depending on your phone. But for example, on my Galaxy S3 i9300, with the default TouchWiz in Android ICS even pulling the list of apps and wiping them there wasn't enough. Only on CyanogenMod KitKat with Trebuchet launcher can I now do it properly.
Push it to a different workspace or minimize it. Or are you wanting it to act like Chrome, where it keeps tasks running in the background when you close hte main window?
You can use preload for this.
So you want to put Firefox in the memory?
mount -t ramfs ram directory
chown <usrrname>:users directory
cp -r /usr/lib/firefox directory
Deleted before we saved it.
Tmpfs would be in Ram, and grow and shrink with the files
Perhaps you can make a ramdisk (tmpfs?), put the firefox binary and files there, and link them back in /usr/bin? This should speed up loading I guess.
Did you mean the option you can choose to load tabs from last browsing session? Or did you mean keep and load things into ram for faster browsing/use, if so there's some helpful apps like zram and preload.
gopreload can do this.
why?
Deleted before we saved it.