cache.disk ?

For discussions specific to the 64-bit version of the browser.

Moderator: Indalecio

Re: cache.disk ?

Postby Moonchild » Mon Jul 30, 2012 2:33 am

Hoggyy wrote:Really?? PM doesn't automatically manage the disk cache??

Is this something Pale Moon specific? And what about the memory cache then?

Pale Moon manages the disk cache (meaning it does maintenance on it to manage the cache properly), but it doesn't dynamically grow it like Firefox does (which can and will on many systems grow to 1 GB). Instead, Pale Moon sets a hard limit of 200 MB by default, which is a sane choice all things considered (stale elements, cache maintenance overhead, etc.) that provides a smooth browsing experience for just about everyone.
User avatar
Moonchild
Pale Moon guru
Pale Moon guru
 
Posts: 3744
Joined: Sun Aug 28, 2011 5:27 pm
Location: Sweden

Re: cache.disk ?

Postby Hoggyy » Wed Aug 01, 2012 5:13 am

Oh - so you don't recommend bigger than 200MB.. I usually change it to either 1024MB or 2048MB.

So you think making it that big could actually slow things down?
If that's the case then I'll change them back to 200MB then.

And if that could be a better choice for my ancient WinXP-32 machines, could a bigger cache be appropriate for my new machine (which I think is listed in my sig).

I'm also curious on how to make PM64 make the best use out of my 8GB or RAM of that new machine.


Thanks.
Gateway NV75S02u - AMD A8-3500M 64-bit quad-core APU (new machine)
640GB, 5400 RPM HD -- 8GB 1666 MHz RAM -- Win7
Netgear WNDR3800 router running Gargoyle 1.5.5 firmware
Pale Moon 15.0 x64, Pale Moon 15.0 x32(3 WinXP comp.), Waterfox 14.0.2
Hoggyy
Hobby Astronomer
Hobby Astronomer
 
Posts: 12
Joined: Sun Jun 24, 2012 4:18 am
Location: WI, USA

Re: cache.disk ?

Postby Moonchild » Wed Aug 01, 2012 10:32 am

Indeed, I don't recommend larger than 200MB unless you very regularly visit pages with many large images that would be better pulled from the cache.
By the way, 1024MB is the ceiling in the Mozilla code - setting it to anything larger will not make a difference.

A bigger cache is not recommended regardless of the machine you run it on, unless, as stated above, your typical browsing behavior would benefit from it.

Using more memory:
Setting browser.cache.memory.capacity to 65536 in about:config will reserve 64MB of RAM for decoded images, messages and chrome elements. Larger is not recommended because the types of data cached are likely never going to reach any higher limit.
Actual content caching is always done to disk, so if you want to have the equivalent of that in RAM, you should use a RAM disk and point the cache root to the RAM disk.
User avatar
Moonchild
Pale Moon guru
Pale Moon guru
 
Posts: 3744
Joined: Sun Aug 28, 2011 5:27 pm
Location: Sweden

Re: cache.disk ?

Postby dark_moon » Wed Aug 01, 2012 2:40 pm

The standard setting for this entry is -1 under pale moon
What make this value?

But a ram disk only save the files until the pc shutdown or? So the cache is after a reboot clear and pale moon need to load all files again.
Happy Pale Moon 20.0.1 x64 under Win7 User
German translator for Pale Moon 15+
User avatar
dark_moon
Lunatic
Lunatic
 
Posts: 576
Joined: Mon Jan 09, 2012 5:34 pm
Location: Germany

Re: cache.disk ?

Postby Moonchild » Wed Aug 01, 2012 11:53 pm

dark_moon wrote:The standard setting for this entry is -1 under pale moon
What make this value?

See: http://kb.mozillazine.org/Browser.cache.memory.capacity

But a ram disk only save the files until the pc shutdown or? So the cache is after a reboot clear and pale moon need to load all files again.

That depends on the ram disk you use. Most that are available will have an option to commit the contents to disk upon shutdown and reload from disk upon boot. Also, if you have long(er) Windows sessions it will pull things from the disk cache (ram disk cache) when browsing; in fact, revisiting pages or reloading pages often pulls things from the cache that are no longer kept in memory in the browser, even within the same session.
User avatar
Moonchild
Pale Moon guru
Pale Moon guru
 
Posts: 3744
Joined: Sun Aug 28, 2011 5:27 pm
Location: Sweden

Re: cache.disk ?

Postby dark_moon » Thu Aug 02, 2012 3:11 pm

Thanks.

Hmm and why you recommend 65536KB for this? In the mozilla link is the max 32768KB

Ok i will try some ram disk programms.
Happy Pale Moon 20.0.1 x64 under Win7 User
German translator for Pale Moon 15+
User avatar
dark_moon
Lunatic
Lunatic
 
Posts: 576
Joined: Mon Jan 09, 2012 5:34 pm
Location: Germany

Re: cache.disk ?

Postby Moonchild » Fri Aug 03, 2012 10:18 am

dark_moon wrote:Hmm and why you recommend 65536KB for this? In the mozilla link is the max 32768KB

The max for auto-detect is 32 MB - doesn't mean that a larger one wouldn't help more in the cases where it might spike; 64MB really is into the theoretical as far as use goes, so anything larger is pointless. Call it "an educated setting".
User avatar
Moonchild
Pale Moon guru
Pale Moon guru
 
Posts: 3744
Joined: Sun Aug 28, 2011 5:27 pm
Location: Sweden

Re: cache.disk ?

Postby dark_moon » Sat Aug 04, 2012 7:25 am

Ah ok. Thanks

I try a ram disk but i dont see a better performance. Only benchmarks show a little bit more speed, but we all now benchmarks ...
Happy Pale Moon 20.0.1 x64 under Win7 User
German translator for Pale Moon 15+
User avatar
dark_moon
Lunatic
Lunatic
 
Posts: 576
Joined: Mon Jan 09, 2012 5:34 pm
Location: Germany

Re: cache.disk ?

Postby Moonchild » Sat Aug 04, 2012 9:40 am

dark_moon wrote:I try a ram disk but i dont see a better performance.


Then your content is likely already properly cached by windows itself, and the cache is not the bottleneck for you.
User avatar
Moonchild
Pale Moon guru
Pale Moon guru
 
Posts: 3744
Joined: Sun Aug 28, 2011 5:27 pm
Location: Sweden

Re: cache.disk ?

Postby Hoggyy » Sun Aug 05, 2012 12:03 am

I've started to use a ram disk too for the 'disk' cache (DataRam's free one) formatted with exFAT (4 or 8k allocation units). I also don't notice a huge speed improvement. I do want to try imDisk's version which is supposed to be direct IO and one of the fastest, but It's not as easy to configure as Dataram's.

I also notice that the hard drive light still blinks, which I thought it wasn't supposed to do that... So I'm not sure if it's ONLY accessing the RAMdrive or is something else that's downloading still going to the physical disk??? Should the hard-drive light still blink for accesses to a ramdrive? (i.e. Does it usually blink for accesses to ALL drives listed in 'my computer'?)


Historical note: I used to have a RAMdisk back when using my Commodore AMIGA 4000, since I had a whopping 256MB of ram! 8-O
Also interesting was that most RAMdisk programs were automatically able to survive a reboot, and be used to do a boot from them very early in the startup-sequence. Unfortunately, I don't think any Windows versions survive a reboot - only that copy-to-img and copy-from-img stuff. :-/ Well - at least I notice that process to be *VERY* quick on Windows, so that's good.
Gateway NV75S02u - AMD A8-3500M 64-bit quad-core APU (new machine)
640GB, 5400 RPM HD -- 8GB 1666 MHz RAM -- Win7
Netgear WNDR3800 router running Gargoyle 1.5.5 firmware
Pale Moon 15.0 x64, Pale Moon 15.0 x32(3 WinXP comp.), Waterfox 14.0.2
Hoggyy
Hobby Astronomer
Hobby Astronomer
 
Posts: 12
Joined: Sun Jun 24, 2012 4:18 am
Location: WI, USA

Previous

Return to Pale Moon x64

Who is online

Users browsing this forum: No registered users and 2 guests