Is it just me or does loading cache into memory seem slower?

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
Snappy Phoenix

Is it just me or does loading cache into memory seem slower?

Unread post by Snappy Phoenix » 2014-01-04, 19:32

I don't get it, the concept of this tweak is to load the cache into memory thus being 1) faster and 2) less SSD thrashing

I don't know if it's just my feeling or if this actually slower than leaving the cache loaded into the SSD?

Pages like http://forums.mydigitallife.info/forum.php seem to be loading in slow motion, as in, one part comes, then wait a while, then another part loads...

please give me your expert opinion Mr. Moon Child

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37640
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Is it just me or does loading cache into memory seem slo

Unread post by Moonchild » 2014-01-04, 23:45

I have no opinion without you telling me how you load the cache into memory, and what your particular setup is. Details, please!
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Snappy Phoenix

Re: Is it just me or does loading cache into memory seem slo

Unread post by Snappy Phoenix » 2014-01-05, 06:28

Moonchild wrote:I have no opinion without you telling me how you load the cache into memory, and what your particular setup is. Details, please!
A) Open Firefox and in the address bar type about:config and hit enter.
B) Navigate to browser.cache.disk.enable and then double click to so that it is set to false.
C) Right click on the web page and choose New then String. In the Preference name box add browser.cache.memory.capacity and hit OK. Under browser.cache.memory.capacity, enter in the amount of RAM you would like to use in kilobytes. I use 250mb so you would enter 250000 in the box for that.

Robert2

Re: Is it just me or does loading cache into memory seem slo

Unread post by Robert2 » 2014-01-05, 09:40

The settings are different in Pale Moon:
You do not have the required permissions to view the files attached to this post.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37640
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Is it just me or does loading cache into memory seem slo

Unread post by Moonchild » 2014-01-05, 10:12

Memory cache and disk cache as built into Pale Moon/Firefox have two different internal functions and work entirely differently in what they cache and how they cache it.
Yes, this will make browsing slower disabling disk cache and trying to assign more capacity to memory cache (which, by the way, is likely never going to be used). No, you cannot coerce the memory cache to work like the disk cache because it simply doesn't.
You should keep both memory and disk cache enabled whenever possible.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

jumba

Re: Is it just me or does loading cache into memory seem slo

Unread post by jumba » 2014-01-05, 10:24

The disk cache remains after browser is closed (if not purged manually) and makes the browsing faster that way.

Could I use a ram disk to load my disk cache to memory on system boot and store it to disk only once on system shutdown, and would this be the more ssd friendly option OP was looking for?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 37640
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: Is it just me or does loading cache into memory seem slo

Unread post by Moonchild » 2014-01-05, 10:49

jumba wrote:Could I use a ram disk to load my disk cache to memory on system boot and store it to disk only once on system shutdown, and would this be the more ssd friendly option OP was looking for?
Yes, this would be a good solution to minimize disk use with continuous, intensive usage and allows you to have a fast cache. You can use one of the RAM disks available that offers a "save state" on shutdown and this way permanent RAM disk contents storage.

However!: If you reboot your system regularly, this may cause more wear on the SSD than simply using the disk cache, as it will always write every byte of the cache to disk upon shutdown (and possibly parts of the RAM disk that aren't used, as well, wasted writes) - cached files don't tend to be purged that often (that's the whole point of a disk cache) and reading data from SSD will not cause wear, after all. If your browsing in single windows sessions generally doesn't write the full RAM disk capacity (or however much is saved upon shutdown) to disk while browsing, and I dare say that is the situation for most people, then storing a RAM disk image upon shutdown will cause more wear, not less.

Common sense suggests that, in the end, using regular disk cache on an SSD, especially with Pale Moon's default settings of not storing large elements in the cache, is the most SSD-friendly option. Well, short of not using disk cache at all, of course, but as the OP noticed it slows things down terribly.
"A dead end street is a place to turn around and go into a new direction" - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Snappy Phoenix

Re: Is it just me or does loading cache into memory seem slo

Unread post by Snappy Phoenix » 2014-01-05, 18:59

Im happier with the speeds with the default Pale Moon settings

thanks a lot for the detailed explanation guys! this forum is the best support site i've seen! better than paid software support even!

New Tobin Paradigm

Re: Is it just me or does loading cache into memory seem slo

Unread post by New Tobin Paradigm » 2014-01-06, 23:50

It does seem slightly slower but it isn't like major. I only notice it being slower when I start PM because it has to reload several "app" tabs and whatever else I had open at the time. After that I hardly notice a real world difference.

(I have 24 gigabytes of ram so LOL)