Preload for PlayOnLinux Application?
I am already using ureadahead and preload for a long time.
It works fine, but I often have to use Microsoft Office 2010, which is installed with PlayOnLinux.
The first load of Word, Excel or Powerpoint needs a long time. The second load time of these applications is okay.
So I am wondering if there is the possibility to preload these applications?
Can anybody help me how to do this?
I found out that there is also a "wine-preloader", but I couldn't find out how it can help me in this case exactly. It's also a little bit confusing to me if the first longer load time is because of PlayOnLinux' virtual machine or because of Wine's loading of the specific application.
So my explicit questions are:
- What exactly and how can I preload anything to speed up the first start of the Office Applications?
- Can I keep the preloading, also if there is a longer idle time of not using the office applications? (to avoid that there is i.e. 60 minutes later a behaviour like the "first load" again)
- Of course I am thankful for other tipps as well. Please avoid instructing me to use Libre- or OpenOffice. I know :) But this is not the topic here.
Thanks a lot!
Regards,
Berzi
wine playonlinux microsoft-office ureadahead preload
add a comment |
I am already using ureadahead and preload for a long time.
It works fine, but I often have to use Microsoft Office 2010, which is installed with PlayOnLinux.
The first load of Word, Excel or Powerpoint needs a long time. The second load time of these applications is okay.
So I am wondering if there is the possibility to preload these applications?
Can anybody help me how to do this?
I found out that there is also a "wine-preloader", but I couldn't find out how it can help me in this case exactly. It's also a little bit confusing to me if the first longer load time is because of PlayOnLinux' virtual machine or because of Wine's loading of the specific application.
So my explicit questions are:
- What exactly and how can I preload anything to speed up the first start of the Office Applications?
- Can I keep the preloading, also if there is a longer idle time of not using the office applications? (to avoid that there is i.e. 60 minutes later a behaviour like the "first load" again)
- Of course I am thankful for other tipps as well. Please avoid instructing me to use Libre- or OpenOffice. I know :) But this is not the topic here.
Thanks a lot!
Regards,
Berzi
wine playonlinux microsoft-office ureadahead preload
add a comment |
I am already using ureadahead and preload for a long time.
It works fine, but I often have to use Microsoft Office 2010, which is installed with PlayOnLinux.
The first load of Word, Excel or Powerpoint needs a long time. The second load time of these applications is okay.
So I am wondering if there is the possibility to preload these applications?
Can anybody help me how to do this?
I found out that there is also a "wine-preloader", but I couldn't find out how it can help me in this case exactly. It's also a little bit confusing to me if the first longer load time is because of PlayOnLinux' virtual machine or because of Wine's loading of the specific application.
So my explicit questions are:
- What exactly and how can I preload anything to speed up the first start of the Office Applications?
- Can I keep the preloading, also if there is a longer idle time of not using the office applications? (to avoid that there is i.e. 60 minutes later a behaviour like the "first load" again)
- Of course I am thankful for other tipps as well. Please avoid instructing me to use Libre- or OpenOffice. I know :) But this is not the topic here.
Thanks a lot!
Regards,
Berzi
wine playonlinux microsoft-office ureadahead preload
I am already using ureadahead and preload for a long time.
It works fine, but I often have to use Microsoft Office 2010, which is installed with PlayOnLinux.
The first load of Word, Excel or Powerpoint needs a long time. The second load time of these applications is okay.
So I am wondering if there is the possibility to preload these applications?
Can anybody help me how to do this?
I found out that there is also a "wine-preloader", but I couldn't find out how it can help me in this case exactly. It's also a little bit confusing to me if the first longer load time is because of PlayOnLinux' virtual machine or because of Wine's loading of the specific application.
So my explicit questions are:
- What exactly and how can I preload anything to speed up the first start of the Office Applications?
- Can I keep the preloading, also if there is a longer idle time of not using the office applications? (to avoid that there is i.e. 60 minutes later a behaviour like the "first load" again)
- Of course I am thankful for other tipps as well. Please avoid instructing me to use Libre- or OpenOffice. I know :) But this is not the topic here.
Thanks a lot!
Regards,
Berzi
wine playonlinux microsoft-office ureadahead preload
wine playonlinux microsoft-office ureadahead preload
asked Dec 27 '18 at 12:19
BerziBerzi
1
1
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
There is a configuration option for /etc/preload.conf
called mapprefix
that defaults to this:
# mapprefix:
#
# A list of path prefixes that controll which mapped file are to
# be considered by preload and which not. The list items are
# separated by semicolons. Matching will be stopped as soon as
# the first item is matched. For each item, if item appears at
# the beginning of the path of the file, then a match occurs, and
# the file is accepted. If on the other hand, the item has a
# exclamation mark as its first character, then the rest of the
# item is considered, and if a match happens, the file is rejected.
# For example a value of !/lib/modules;/ means that every file other
# than those in /lib/modules should be accepted. In this case, the
# trailing item can be removed, since if no match occurs, the file is
# accepted. It's advised to make sure /dev is rejected, since
# preload doesn't special-handle device files internally.
#
# Note that /lib matches all of /lib, /lib64, and even /libexec if
# there was one. If one really meant /lib only, they should use
# /lib/ instead.
#
# default: (empty list, accept all)
mapprefix = /usr/;/lib;/var/cache/;!/
This means that by default files in /usr
, /lib
and /var/cache
are eligible, but other files won't be preloaded. You could modify it to include the path on disk where your program you want cached exists, such as:
mapprefix = /usr/;/lib;/var/cache/;/home/someone/.winexxx/;!/
Where /home/someone/.winexxx
is the WINE_PREFIX
for the given PlayOnLinux program.
Another option would be to use the gopreload
command and run that program manually, something like this:
gopreload WINE_PREFIX=~/.winexxx wine ~/.winexxx/drive_c/foo.exe
Although for that a.) you would need to compile/install gopreload
manually and b.) you should need to ensure you're running the correct wine
program with the prefix and other settings PlayOnLinux would use. You can likely get those by looking at a shortcut or .desktop file if you can get PlayOnLinux to create one for you.
However, there is another problem which is what preload considers code versus data and how it preloads things. I have a feeling that most of what is being executed by wine will end up being seen as data and not preloaded. You'll want to check the preload log files to see what it's actually doing if you go that route.
A poor man's solution could be to create a boot-script that simply reads these files from disk thus "priming" the cache to contain them, something like:
ionice -c 3 vmtouch '/home/someone/.winexxx/drive_c/Program Files (x86)/Microsoft Office'
This would run ionice
so that it happens in the background / idle not to slow down other functionality and then vmtouch
to map the data for the program into RAM.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104882%2fpreload-for-playonlinux-application%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
There is a configuration option for /etc/preload.conf
called mapprefix
that defaults to this:
# mapprefix:
#
# A list of path prefixes that controll which mapped file are to
# be considered by preload and which not. The list items are
# separated by semicolons. Matching will be stopped as soon as
# the first item is matched. For each item, if item appears at
# the beginning of the path of the file, then a match occurs, and
# the file is accepted. If on the other hand, the item has a
# exclamation mark as its first character, then the rest of the
# item is considered, and if a match happens, the file is rejected.
# For example a value of !/lib/modules;/ means that every file other
# than those in /lib/modules should be accepted. In this case, the
# trailing item can be removed, since if no match occurs, the file is
# accepted. It's advised to make sure /dev is rejected, since
# preload doesn't special-handle device files internally.
#
# Note that /lib matches all of /lib, /lib64, and even /libexec if
# there was one. If one really meant /lib only, they should use
# /lib/ instead.
#
# default: (empty list, accept all)
mapprefix = /usr/;/lib;/var/cache/;!/
This means that by default files in /usr
, /lib
and /var/cache
are eligible, but other files won't be preloaded. You could modify it to include the path on disk where your program you want cached exists, such as:
mapprefix = /usr/;/lib;/var/cache/;/home/someone/.winexxx/;!/
Where /home/someone/.winexxx
is the WINE_PREFIX
for the given PlayOnLinux program.
Another option would be to use the gopreload
command and run that program manually, something like this:
gopreload WINE_PREFIX=~/.winexxx wine ~/.winexxx/drive_c/foo.exe
Although for that a.) you would need to compile/install gopreload
manually and b.) you should need to ensure you're running the correct wine
program with the prefix and other settings PlayOnLinux would use. You can likely get those by looking at a shortcut or .desktop file if you can get PlayOnLinux to create one for you.
However, there is another problem which is what preload considers code versus data and how it preloads things. I have a feeling that most of what is being executed by wine will end up being seen as data and not preloaded. You'll want to check the preload log files to see what it's actually doing if you go that route.
A poor man's solution could be to create a boot-script that simply reads these files from disk thus "priming" the cache to contain them, something like:
ionice -c 3 vmtouch '/home/someone/.winexxx/drive_c/Program Files (x86)/Microsoft Office'
This would run ionice
so that it happens in the background / idle not to slow down other functionality and then vmtouch
to map the data for the program into RAM.
add a comment |
There is a configuration option for /etc/preload.conf
called mapprefix
that defaults to this:
# mapprefix:
#
# A list of path prefixes that controll which mapped file are to
# be considered by preload and which not. The list items are
# separated by semicolons. Matching will be stopped as soon as
# the first item is matched. For each item, if item appears at
# the beginning of the path of the file, then a match occurs, and
# the file is accepted. If on the other hand, the item has a
# exclamation mark as its first character, then the rest of the
# item is considered, and if a match happens, the file is rejected.
# For example a value of !/lib/modules;/ means that every file other
# than those in /lib/modules should be accepted. In this case, the
# trailing item can be removed, since if no match occurs, the file is
# accepted. It's advised to make sure /dev is rejected, since
# preload doesn't special-handle device files internally.
#
# Note that /lib matches all of /lib, /lib64, and even /libexec if
# there was one. If one really meant /lib only, they should use
# /lib/ instead.
#
# default: (empty list, accept all)
mapprefix = /usr/;/lib;/var/cache/;!/
This means that by default files in /usr
, /lib
and /var/cache
are eligible, but other files won't be preloaded. You could modify it to include the path on disk where your program you want cached exists, such as:
mapprefix = /usr/;/lib;/var/cache/;/home/someone/.winexxx/;!/
Where /home/someone/.winexxx
is the WINE_PREFIX
for the given PlayOnLinux program.
Another option would be to use the gopreload
command and run that program manually, something like this:
gopreload WINE_PREFIX=~/.winexxx wine ~/.winexxx/drive_c/foo.exe
Although for that a.) you would need to compile/install gopreload
manually and b.) you should need to ensure you're running the correct wine
program with the prefix and other settings PlayOnLinux would use. You can likely get those by looking at a shortcut or .desktop file if you can get PlayOnLinux to create one for you.
However, there is another problem which is what preload considers code versus data and how it preloads things. I have a feeling that most of what is being executed by wine will end up being seen as data and not preloaded. You'll want to check the preload log files to see what it's actually doing if you go that route.
A poor man's solution could be to create a boot-script that simply reads these files from disk thus "priming" the cache to contain them, something like:
ionice -c 3 vmtouch '/home/someone/.winexxx/drive_c/Program Files (x86)/Microsoft Office'
This would run ionice
so that it happens in the background / idle not to slow down other functionality and then vmtouch
to map the data for the program into RAM.
add a comment |
There is a configuration option for /etc/preload.conf
called mapprefix
that defaults to this:
# mapprefix:
#
# A list of path prefixes that controll which mapped file are to
# be considered by preload and which not. The list items are
# separated by semicolons. Matching will be stopped as soon as
# the first item is matched. For each item, if item appears at
# the beginning of the path of the file, then a match occurs, and
# the file is accepted. If on the other hand, the item has a
# exclamation mark as its first character, then the rest of the
# item is considered, and if a match happens, the file is rejected.
# For example a value of !/lib/modules;/ means that every file other
# than those in /lib/modules should be accepted. In this case, the
# trailing item can be removed, since if no match occurs, the file is
# accepted. It's advised to make sure /dev is rejected, since
# preload doesn't special-handle device files internally.
#
# Note that /lib matches all of /lib, /lib64, and even /libexec if
# there was one. If one really meant /lib only, they should use
# /lib/ instead.
#
# default: (empty list, accept all)
mapprefix = /usr/;/lib;/var/cache/;!/
This means that by default files in /usr
, /lib
and /var/cache
are eligible, but other files won't be preloaded. You could modify it to include the path on disk where your program you want cached exists, such as:
mapprefix = /usr/;/lib;/var/cache/;/home/someone/.winexxx/;!/
Where /home/someone/.winexxx
is the WINE_PREFIX
for the given PlayOnLinux program.
Another option would be to use the gopreload
command and run that program manually, something like this:
gopreload WINE_PREFIX=~/.winexxx wine ~/.winexxx/drive_c/foo.exe
Although for that a.) you would need to compile/install gopreload
manually and b.) you should need to ensure you're running the correct wine
program with the prefix and other settings PlayOnLinux would use. You can likely get those by looking at a shortcut or .desktop file if you can get PlayOnLinux to create one for you.
However, there is another problem which is what preload considers code versus data and how it preloads things. I have a feeling that most of what is being executed by wine will end up being seen as data and not preloaded. You'll want to check the preload log files to see what it's actually doing if you go that route.
A poor man's solution could be to create a boot-script that simply reads these files from disk thus "priming" the cache to contain them, something like:
ionice -c 3 vmtouch '/home/someone/.winexxx/drive_c/Program Files (x86)/Microsoft Office'
This would run ionice
so that it happens in the background / idle not to slow down other functionality and then vmtouch
to map the data for the program into RAM.
There is a configuration option for /etc/preload.conf
called mapprefix
that defaults to this:
# mapprefix:
#
# A list of path prefixes that controll which mapped file are to
# be considered by preload and which not. The list items are
# separated by semicolons. Matching will be stopped as soon as
# the first item is matched. For each item, if item appears at
# the beginning of the path of the file, then a match occurs, and
# the file is accepted. If on the other hand, the item has a
# exclamation mark as its first character, then the rest of the
# item is considered, and if a match happens, the file is rejected.
# For example a value of !/lib/modules;/ means that every file other
# than those in /lib/modules should be accepted. In this case, the
# trailing item can be removed, since if no match occurs, the file is
# accepted. It's advised to make sure /dev is rejected, since
# preload doesn't special-handle device files internally.
#
# Note that /lib matches all of /lib, /lib64, and even /libexec if
# there was one. If one really meant /lib only, they should use
# /lib/ instead.
#
# default: (empty list, accept all)
mapprefix = /usr/;/lib;/var/cache/;!/
This means that by default files in /usr
, /lib
and /var/cache
are eligible, but other files won't be preloaded. You could modify it to include the path on disk where your program you want cached exists, such as:
mapprefix = /usr/;/lib;/var/cache/;/home/someone/.winexxx/;!/
Where /home/someone/.winexxx
is the WINE_PREFIX
for the given PlayOnLinux program.
Another option would be to use the gopreload
command and run that program manually, something like this:
gopreload WINE_PREFIX=~/.winexxx wine ~/.winexxx/drive_c/foo.exe
Although for that a.) you would need to compile/install gopreload
manually and b.) you should need to ensure you're running the correct wine
program with the prefix and other settings PlayOnLinux would use. You can likely get those by looking at a shortcut or .desktop file if you can get PlayOnLinux to create one for you.
However, there is another problem which is what preload considers code versus data and how it preloads things. I have a feeling that most of what is being executed by wine will end up being seen as data and not preloaded. You'll want to check the preload log files to see what it's actually doing if you go that route.
A poor man's solution could be to create a boot-script that simply reads these files from disk thus "priming" the cache to contain them, something like:
ionice -c 3 vmtouch '/home/someone/.winexxx/drive_c/Program Files (x86)/Microsoft Office'
This would run ionice
so that it happens in the background / idle not to slow down other functionality and then vmtouch
to map the data for the program into RAM.
answered Dec 27 '18 at 13:00
Kristopher IvesKristopher Ives
1,88011016
1,88011016
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1104882%2fpreload-for-playonlinux-application%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown