Speed up Google chrome

Asked by zzecool

Im trying to speed up Google chrome which installs to /opt/google/chrome by default

I have changed /etc/preload.conf like this (i.e. added /opt to the start of the line)

mapprefix = /opt/;/usr/;/lib;/var/cache/;!/

but I am not seeing anything in preload.state

Can you tell me what im doing wrong and how i can proper add /opt/ to mapprefix and exeprefix so that preload will speed up all the applications that hung in there

I want to ask about the " !/ " that you have at the end of the line by default . Does this mean that anything is ignored in the root path if it doesnt come in conflict with the previous rules ?

Also whats the difference between " /lib; " and " /lib/; " ?? Im asking because for usr you use " /usr/; " but for lib you use " /lib; " im confused .

One last is , how can someone reset - delete preload's cache ?

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu preload Edit question
Assignee:
No assignee Edit question
Solved by:
zzecool
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Just installing preload should help it load quicker, it won't improve browser speed. Is that what you are wanting?

Revision history for this message
zzecool (zzecool) said :
#2

Actionparnship sorry but you are wrong , just installing preload doesnt make google chrome ( as an app not the browsing speed ) load quicker because Google-chrome is installed by default in /opt which is not included in the default preload config.

What i mean is that if you make a clean boot launch your desktop wait for everything to load ( on the top panel let say ) , if you then try to start google chrome for the first time it will take about 10 sec or more ( 2.6 ghz duo core , 4gb ram , clean installation ) after this first time google chrome loads very fast because it is allrdy cached , the problem is only the first time

So as i said on first post i have manualy put /opt both in mapprefix and exeprefix but i wasnt getting any cache for google chrome or /opt in general while checking with

sudo less /var/lib/preload/preload.state | grep /opt

The culprit wasn't my config but the actual "preload.state" file that was corrupted for some reason . The fix was to delete the "preload.state" file and restart. Now google chrome is cached by preload and needs only 3 sec to load

here is my output

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

zzecool@Overburner:~$ sudo less -f /var/lib/preload/preload.state | grep /opt
MAP 38 10 0 16384 -1 file:///opt/google/chrome/chrome-sandbox
MAP 58 25100 0 24576 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/services.exe.so
MAP 73 10 12288 4096 -1 file:///opt/google/chrome/chrome-sandbox
MAP 117 10 16384 4096 -1 file:///opt/google/chrome/chrome-sandbox
MAP 134 25100 28672 106496 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/services.exe.so
MAP 136 25100 135168 4096 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/services.exe.so
MAP 338 25100 528384 978944 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/kernel32.dll.so
MAP 479 25100 311296 4096 -1 file:///opt/teamviewer/teamviewer/7/wine/bin/wineserver
MAP 478 25100 0 315392 -1 file:///opt/teamviewer/teamviewer/7/wine/bin/wineserver
MAP 737 3370 0 12288 -1 file:///opt/Adobe
MAP 759 3370 8192 4096 -1 file:///opt/Adobe
MAP 775 3370 0 16384 -1 file:///opt/Adobe
MAP 851 3370 12288 4096 -1 file:///opt/Adobe
MAP 1026 10 0 688128 -1 file:///opt/google/chrome/nacl_helper
MAP 1029 10 688128 4096 -1 file:///opt/google/chrome/nacl_helper
MAP 1032 25100 0 1224704 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/libwine.so.1.0
MAP 1033 25100 1220608 4096 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/libwine.so.1.0
MAP 1049 10 688128 28672 -1 file:///opt/google/chrome/nacl_helper
MAP 1053 10 716800 8192 -1 file:///opt/google/chrome/nacl_helper
MAP 1214 25100 0 65536 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/ntdll.dll.so
MAP 1237 3370 0 823296 -1 file:///opt/Adobe
MAP 1270 3370 823296 45056 -1 file:///opt/Adobe
MAP 1284 10 0 8192 -1 file:///opt/google/chrome/nacl_helper_bootstrap
MAP 1288 10 4096 4096 -1 file:///opt/google/chrome/nacl_helper_bootstrap
MAP 1291 10 8192 4096 -1 file:///opt/google/chrome/nacl_helper_bootstrap
MAP 1338 25100 4096 8192 -1 file:///opt/teamviewer/teamviewer/7/wine/bin/wine-preloader
MAP 1339 25100 8192 4096 -1 file:///opt/teamviewer/teamviewer/7/wine/bin/wine-preloader
MAP 1509 10 0 67674112 -1 file:///opt/google/chrome/chrome
MAP 1601 25100 69632 557056 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/ntdll.dll.so
MAP 1619 25100 626688 40960 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/ntdll.dll.so
MAP 1722 3370 1478656 65536 -1 file:///opt/Adobe
MAP 1759 11520 0 13049856 -1 file:///opt/google/talkplugin/GoogleTalkPlugin
MAP 1694 3370 0 1478656 -1 file:///opt/Adobe
MAP 2087 11520 13049856 475136 -1 file:///opt/google/talkplugin/GoogleTalkPlugin
MAP 2151 11520 13524992 86016 -1 file:///opt/google/talkplugin/GoogleTalkPlugin
MAP 2259 3370 0 13479936 -1 file:///opt/Adobe
MAP 2514 3370 13479936 360448 -1 file:///opt/Adobe
MAP 2712 25100 0 36864 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/rpcrt4.dll.so
MAP 2872 3370 0 24576 -1 file:///opt/TweetDeck/bin/TweetDeck
MAP 2874 3370 24576 4096 -1 file:///opt/TweetDeck/bin/TweetDeck
MAP 2967 25100 442368 28672 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/rpcrt4.dll.so
MAP 3047 10 67670016 2404352 -1 file:///opt/google/chrome/chrome
MAP 3089 25100 0 65536 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/kernel32.dll.so
MAP 3128 25100 0 73728 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/advapi32.dll.so
MAP 3135 25100 40960 401408 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/rpcrt4.dll.so
MAP 3146 10 70074368 151552 -1 file:///opt/google/chrome/chrome
MAP 3253 25100 0 8192 -1 file:///opt/teamviewer/teamviewer/7/wine/bin/wine
MAP 3311 25100 4096 4096 -1 file:///opt/teamviewer/teamviewer/7/wine/bin/wine
MAP 3321 25100 77824 262144 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/advapi32.dll.so
MAP 3322 25100 335872 24576 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/advapi32.dll.so
MAP 3371 25100 69632 458752 -1 file:///opt/teamviewer/teamviewer/7/wine/lib/wine/kernel32.dll.so
EXE 2 25090 7880 -1 file:///opt/teamviewer/teamviewer/7/wine/bin/wine-preloader
EXE 3 25090 7880 -1 file:///opt/teamviewer/teamviewer/7/wine/bin/wineserver
EXE 5 3360 91780 -1 file:///opt/TweetDeck/bin/TweetDeck
EXE 30 0 163230 -1 file:///opt/google/chrome/chrome
EXE 49 0 163230 -1 file:///opt/google/chrome/chrome-sandbox
EXE 61 11510 40 -1 file:///opt/google/talkplugin/GoogleTalkPlugin
EXE 89 0 163230 -1 file:///opt/google/chrome/nacl_helper_bootstrap
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------