Hello List, i would like to learn more about preloading. Could anybody give me a hint where to find anything about adding applications to, or removing from preloading ... Thanks Michael
Michael Schueller wrote:
Hello List, i would like to learn more about preloading. Could anybody give me a hint where to find anything about adding applications to, or removing from preloading ...
http://www.opensuse.org/index.php/SUPER_preloading would be a good starting point. You might also find /usr/bin/appspreloader.sh an interesting read. For adding applications to the preloading I would recommend PePr since it is very easy to use. For getting rid of already existing preloading have a look at /etc/preload.d/. Note that applications which are not installed are obviously not preloaded, so there is no need to explicitly remove anything. Cheers nordi
Am Samstag, 24. September 2005 19:01 schrieb nordi:
Michael Schueller wrote:
Hello List, i would like to learn more about preloading. Could anybody give me a hint where to find anything about adding applications to, or removing from preloading ...
http://www.opensuse.org/index.php/SUPER_preloading would be a good starting point. You might also find /usr/bin/appspreloader.sh an interesting read.
For adding applications to the preloading I would recommend PePr since it is very easy to use.
Hello nordi, well... PePr works so far, opera shows up much faster now ... But what i don´t understand is the syntax for creating a preload file for /etc/preload.d ... "Adding new applications" I know that there is no need for, except you want the preload systemwide Thanks Michael
Cheers nordi
Am Samstag, 24. September 2005 19:46 schrieb Michael Schueller:
Am Samstag, 24. September 2005 19:01 schrieb nordi:
Michael Schueller wrote:
Hello List, i would like to learn more about preloading. Could anybody give me a hint where to find anything about adding applications to, or removing from preloading ...
http://www.opensuse.org/index.php/SUPER_preloading would be a good starting point. You might also find /usr/bin/appspreloader.sh an interesting read.
For adding applications to the preloading I would recommend PePr since it is very easy to use.
Hello nordi, well... PePr works so far, opera shows up much faster now ...
But what i don´t understand is the syntax for creating a preload file for /etc/preload.d ... "Adding new applications" I know that there is no need for, except you want the preload systemwide
It´s so easy ... strace -fF -e open,process opera 2>opera_strace parse_strace opera_strace cp opera_strace_preload /etc/preload.d/opera Let´s see if it works ... ;-)
Thanks Michael
Cheers nordi
----------------------------------------------------------------- ---- To unsubscribe, e-mail: opensuse-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-help@opensuse.org
Am Samstag, 24. September 2005 19:56 schrieb Michael Schueller:
Am Samstag, 24. September 2005 19:46 schrieb Michael Schueller:
Am Samstag, 24. September 2005 19:01 schrieb nordi:
Michael Schueller wrote:
Hello List, i would like to learn more about preloading. Could anybody give me a hint where to find anything about adding applications to, or removing from preloading ...
http://www.opensuse.org/index.php/SUPER_preloading would be a good starting point. You might also find /usr/bin/appspreloader.sh an interesting read.
For adding applications to the preloading I would recommend PePr since it is very easy to use.
Hello nordi, well... PePr works so far, opera shows up much faster now ...
But what i don´t understand is the syntax for creating a preload file for /etc/preload.d ... "Adding new applications" I know that there is no need for, except you want the preload systemwide
It´s so easy ...
strace -fF -e open,process opera 2>opera_strace parse_strace opera_strace cp opera_strace_preload /etc/preload.d/opera
Let´s see if it works ... ;-)
O.K ... now i tried both, the way you recommend (PePr) and the way at the botton of your side "Adding new applications". The first way, with PePr, worked perfectly. It reduce the starting time of opera from 15 sec to 4-5 sec, not to bad ;-) Then i tried the other way and created a preload file for /etc/preload.d (see above). So i removed the ~/.pepre Directory, installed the preload file, and did a update_preload. After a reboot i found myself back to 15sec loading, so no result at all. At the End i removed the preload file from /etc/preload.d , and used your script as before. Now i´m back to 4 sec loading time. Greatings Michael
Michael Schueller wrote:
The first way, with PePr, worked perfectly. It reduce the starting time of opera from 15 sec to 4-5 sec, not to bad ;-) Great to hear that!
After a reboot i found myself back to 15sec loading, so no result at all. You also have to adapt the /usr/bin/appspreloader.sh script that does the actual preloading. Append the following line:
preload "/usr/bin/opera" "opera" This is assuming that the executable of Opera is /usr/bin/opera, and that you stored the filelist under /etc/preload.d/opera. Now didn't I tell you PePr was easier? ;) Regards nordi
Am Samstag, 24. September 2005 22:56 schrieb nordi:
Michael Schueller wrote:
The first way, with PePr, worked perfectly. It reduce the starting time of opera from 15 sec to 4-5 sec, not to bad ;-)
Great to hear that!
After a reboot i found myself back to 15sec loading, so no result at all.
You also have to adapt the /usr/bin/appspreloader.sh script that does the actual preloading. Append the following line:
preload "/usr/bin/opera" "opera"
This is assuming that the executable of Opera is /usr/bin/opera, and that you stored the filelist under /etc/preload.d/opera. Now didn't I tell you PePr was easier? ;)
O.K ... Now i know why you told me to check out this place first ... So i wrote the line into the script, but the result is surprising. Preloading without PrPe reduced the starting time of opera from 15 to about 8 sec, with PePr to 4 sec. Great´s Michael
Regards nordi
----------------------------------------------------------------- ---- To unsubscribe, e-mail: opensuse-unsubscribe@opensuse.org For additional commands, e-mail: opensuse-help@opensuse.org
Michael Schueller wrote:
O.K ... Now i know why you told me to check out this place first ... It was also incorrectly documented on the SUPER_preload page. Fixed that.
So i wrote the line into the script, but the result is surprising. Preloading without PrPe reduced the starting time of opera from 15 to about 8 sec, with PePr to 4 sec.
Let me quote myself from the webpage: "While static preloading can only preload the program itself, PePr will preload files that are specific for you. This includes files in your home-directory and the translation files for your specific language, making your programs start up even faster." This is because the strace-parser you used was designed to create strace files for public use (=any private data removed, including references to home-directories). The files generated by this parser were supposed to go into the distribution, and you don't want references to somebody elses homedirs in there. The parser should contain something like "grep -v /home" in two places. Remove that, and it should be just as fast as PePr. Now you could do that with all your apps, or just use PePr and get it done in 1/10 of the time. Regards nordi
Am Sonntag, 25. September 2005 16:48 schrieb nordi:
Michael Schueller wrote: [...] The parser should contain something like "grep -v /home" in two places. Remove that, and it should be just as fast as PePr. Now you could do that with all your apps, or just use PePr and get it done in 1/10 of the time.
O.K. the different is clear now, but ... When in your script the /home directory is includet and in the strace_parser not, what happens in your script with those files which are changing ? Opera loades a lot of files from the user cache (per default opera caches 20 MB), but those files are changing. Could i use a WildCard for the user cache ? For Example, i got hunderts of lines like this : open /home/marvin/.opera/cache4/opr002JI.gif Could i change them to open /home/$USER/.opera/cache4/*.* so that allways the cache is loadet whatever it looks, and whoever it starts ? Michael
Michael Schueller wrote:
Could i change them to
open /home/$USER/.opera/cache4/*.*
No, that won't work. At least not without heavy modifications, because wildcards are not supported at all by preload. You can, however, do this manually with the following line: for i in /home/schueller/.opera/cache4/*; do echo "W $i"; done | preload This uses the simple "W" command of preload, which simply tells it to preload the entire file. Append this to pepr.sh or appspreloader.sh, depending on which one you use. Maybe this should be integrated into PePr: If all files from a certain directory would be preloaded, then just run the above command. It could certainly be useful, because Mozilla does the same thing with its cache files. But this could also go horribly wrong if the directory later on fills up with many more files (documents, pictures, videos...). I have to think about that. Regards nordi
Since people seem to be interested in the internal workings of preloading, I have written [1]. I'll write a little more later on. Feel free to add stuff yourselves and ask questions. Regards nordi [1] http://www.opensuse.org/SUPER_preloading_internals
participants (2)
-
Michael Schueller
-
nordi