Linux speed up by moving files to ramdisk at start
Clash Royale CLAN TAG#URR8PPP
I have more than enough ram in my computer (8GB), which hardly gets used. In the most cases my desktop and apps use up in 2-3GBs out of it, on the other hand I do not have an SSD.
My system is 64bit Debian Wheezy.
I wonder if there is any framework which copy regularly used files like thunderbird, firefox, openoffice, vlc, pidgin to a ramdisk at every start to speed up access.
This is obviously doable by with an init shellscript after each boot then have symlinks setup for those files later on but maybe there is a complete solution to do this already...
Question2:
Are there any optimizations for the linux kernel (3.14) which can take advantage of large amount of memory better than a stock kernel? If so what are those?
Question3:
In this case disabling swap partition completely is a good idea right?
Thanks
linux debian ramdisk
migrated from serverfault.com Oct 3 '14 at 12:10
This question came from our site for system and network administrators.
add a comment |
I have more than enough ram in my computer (8GB), which hardly gets used. In the most cases my desktop and apps use up in 2-3GBs out of it, on the other hand I do not have an SSD.
My system is 64bit Debian Wheezy.
I wonder if there is any framework which copy regularly used files like thunderbird, firefox, openoffice, vlc, pidgin to a ramdisk at every start to speed up access.
This is obviously doable by with an init shellscript after each boot then have symlinks setup for those files later on but maybe there is a complete solution to do this already...
Question2:
Are there any optimizations for the linux kernel (3.14) which can take advantage of large amount of memory better than a stock kernel? If so what are those?
Question3:
In this case disabling swap partition completely is a good idea right?
Thanks
linux debian ramdisk
migrated from serverfault.com Oct 3 '14 at 12:10
This question came from our site for system and network administrators.
Buying an SSD is much easier. And they're pretty cheap now.
– Michael Hampton
Oct 3 '14 at 15:41
add a comment |
I have more than enough ram in my computer (8GB), which hardly gets used. In the most cases my desktop and apps use up in 2-3GBs out of it, on the other hand I do not have an SSD.
My system is 64bit Debian Wheezy.
I wonder if there is any framework which copy regularly used files like thunderbird, firefox, openoffice, vlc, pidgin to a ramdisk at every start to speed up access.
This is obviously doable by with an init shellscript after each boot then have symlinks setup for those files later on but maybe there is a complete solution to do this already...
Question2:
Are there any optimizations for the linux kernel (3.14) which can take advantage of large amount of memory better than a stock kernel? If so what are those?
Question3:
In this case disabling swap partition completely is a good idea right?
Thanks
linux debian ramdisk
I have more than enough ram in my computer (8GB), which hardly gets used. In the most cases my desktop and apps use up in 2-3GBs out of it, on the other hand I do not have an SSD.
My system is 64bit Debian Wheezy.
I wonder if there is any framework which copy regularly used files like thunderbird, firefox, openoffice, vlc, pidgin to a ramdisk at every start to speed up access.
This is obviously doable by with an init shellscript after each boot then have symlinks setup for those files later on but maybe there is a complete solution to do this already...
Question2:
Are there any optimizations for the linux kernel (3.14) which can take advantage of large amount of memory better than a stock kernel? If so what are those?
Question3:
In this case disabling swap partition completely is a good idea right?
Thanks
linux debian ramdisk
linux debian ramdisk
asked Oct 3 '14 at 10:49
naturelle
migrated from serverfault.com Oct 3 '14 at 12:10
This question came from our site for system and network administrators.
migrated from serverfault.com Oct 3 '14 at 12:10
This question came from our site for system and network administrators.
Buying an SSD is much easier. And they're pretty cheap now.
– Michael Hampton
Oct 3 '14 at 15:41
add a comment |
Buying an SSD is much easier. And they're pretty cheap now.
– Michael Hampton
Oct 3 '14 at 15:41
Buying an SSD is much easier. And they're pretty cheap now.
– Michael Hampton
Oct 3 '14 at 15:41
Buying an SSD is much easier. And they're pretty cheap now.
– Michael Hampton
Oct 3 '14 at 15:41
add a comment |
3 Answers
3
active
oldest
votes
any framework which copy regularly used files
Simply cat'ing them into /dev/null will populate the VFS cache. But this degrades even in the absence of any further I/O or memory demand. If it were me, I might consider creating a tmpfs then creating a unionfs with the storage device filesystem containing the content to cache - rather than messing around with symlinks (but you still need to populate it.
A much simpler solution would be to use the tmpfs as a bcache device. (but make sure you destroy and rebuild the bcache during the startup sequence).
Question 2: there are things you can do to tune the VFS, but I suspect they won't have much impact.
Qusetion 3: Absolutely not - you'll get best usage out of any caching if you preserve it between power cycles - i.e. using hibernate-to-disk rather than a shutdown/restart - and this (normally) uses swap.
add a comment |
There are different readahead programs for Linux, which pre-fetch disk memory.
They are called e.g. readahead-fedora
and preload
.
The was also systemd-readahead
for systemd-based init systems, but it was removed again in more recent versions.
The above link is dead. I assume it's because systemd's readahead implementation has been removed.
– Eric Seastrand
Dec 28 '18 at 20:21
add a comment |
In this case disabling swap partition completely is a good idea right?
Yes, you may move your swap from HDD/SDD to RAM. The latest Linux kernels include ZRAM module inside, so you may use your swap in RAM. That will give you much better speed of swapping operations, but will in some times increase CPU load.
You may read about it on https://wiki.debian.org/ZRam
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f159048%2flinux-speed-up-by-moving-files-to-ramdisk-at-start%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
any framework which copy regularly used files
Simply cat'ing them into /dev/null will populate the VFS cache. But this degrades even in the absence of any further I/O or memory demand. If it were me, I might consider creating a tmpfs then creating a unionfs with the storage device filesystem containing the content to cache - rather than messing around with symlinks (but you still need to populate it.
A much simpler solution would be to use the tmpfs as a bcache device. (but make sure you destroy and rebuild the bcache during the startup sequence).
Question 2: there are things you can do to tune the VFS, but I suspect they won't have much impact.
Qusetion 3: Absolutely not - you'll get best usage out of any caching if you preserve it between power cycles - i.e. using hibernate-to-disk rather than a shutdown/restart - and this (normally) uses swap.
add a comment |
any framework which copy regularly used files
Simply cat'ing them into /dev/null will populate the VFS cache. But this degrades even in the absence of any further I/O or memory demand. If it were me, I might consider creating a tmpfs then creating a unionfs with the storage device filesystem containing the content to cache - rather than messing around with symlinks (but you still need to populate it.
A much simpler solution would be to use the tmpfs as a bcache device. (but make sure you destroy and rebuild the bcache during the startup sequence).
Question 2: there are things you can do to tune the VFS, but I suspect they won't have much impact.
Qusetion 3: Absolutely not - you'll get best usage out of any caching if you preserve it between power cycles - i.e. using hibernate-to-disk rather than a shutdown/restart - and this (normally) uses swap.
add a comment |
any framework which copy regularly used files
Simply cat'ing them into /dev/null will populate the VFS cache. But this degrades even in the absence of any further I/O or memory demand. If it were me, I might consider creating a tmpfs then creating a unionfs with the storage device filesystem containing the content to cache - rather than messing around with symlinks (but you still need to populate it.
A much simpler solution would be to use the tmpfs as a bcache device. (but make sure you destroy and rebuild the bcache during the startup sequence).
Question 2: there are things you can do to tune the VFS, but I suspect they won't have much impact.
Qusetion 3: Absolutely not - you'll get best usage out of any caching if you preserve it between power cycles - i.e. using hibernate-to-disk rather than a shutdown/restart - and this (normally) uses swap.
any framework which copy regularly used files
Simply cat'ing them into /dev/null will populate the VFS cache. But this degrades even in the absence of any further I/O or memory demand. If it were me, I might consider creating a tmpfs then creating a unionfs with the storage device filesystem containing the content to cache - rather than messing around with symlinks (but you still need to populate it.
A much simpler solution would be to use the tmpfs as a bcache device. (but make sure you destroy and rebuild the bcache during the startup sequence).
Question 2: there are things you can do to tune the VFS, but I suspect they won't have much impact.
Qusetion 3: Absolutely not - you'll get best usage out of any caching if you preserve it between power cycles - i.e. using hibernate-to-disk rather than a shutdown/restart - and this (normally) uses swap.
edited Oct 6 '14 at 8:43
answered Oct 3 '14 at 12:35
symcbeansymcbean
2,28911121
2,28911121
add a comment |
add a comment |
There are different readahead programs for Linux, which pre-fetch disk memory.
They are called e.g. readahead-fedora
and preload
.
The was also systemd-readahead
for systemd-based init systems, but it was removed again in more recent versions.
The above link is dead. I assume it's because systemd's readahead implementation has been removed.
– Eric Seastrand
Dec 28 '18 at 20:21
add a comment |
There are different readahead programs for Linux, which pre-fetch disk memory.
They are called e.g. readahead-fedora
and preload
.
The was also systemd-readahead
for systemd-based init systems, but it was removed again in more recent versions.
The above link is dead. I assume it's because systemd's readahead implementation has been removed.
– Eric Seastrand
Dec 28 '18 at 20:21
add a comment |
There are different readahead programs for Linux, which pre-fetch disk memory.
They are called e.g. readahead-fedora
and preload
.
The was also systemd-readahead
for systemd-based init systems, but it was removed again in more recent versions.
There are different readahead programs for Linux, which pre-fetch disk memory.
They are called e.g. readahead-fedora
and preload
.
The was also systemd-readahead
for systemd-based init systems, but it was removed again in more recent versions.
edited Dec 29 '18 at 8:48
answered Oct 6 '14 at 9:22
jofeljofel
20.1k34780
20.1k34780
The above link is dead. I assume it's because systemd's readahead implementation has been removed.
– Eric Seastrand
Dec 28 '18 at 20:21
add a comment |
The above link is dead. I assume it's because systemd's readahead implementation has been removed.
– Eric Seastrand
Dec 28 '18 at 20:21
The above link is dead. I assume it's because systemd's readahead implementation has been removed.
– Eric Seastrand
Dec 28 '18 at 20:21
The above link is dead. I assume it's because systemd's readahead implementation has been removed.
– Eric Seastrand
Dec 28 '18 at 20:21
add a comment |
In this case disabling swap partition completely is a good idea right?
Yes, you may move your swap from HDD/SDD to RAM. The latest Linux kernels include ZRAM module inside, so you may use your swap in RAM. That will give you much better speed of swapping operations, but will in some times increase CPU load.
You may read about it on https://wiki.debian.org/ZRam
add a comment |
In this case disabling swap partition completely is a good idea right?
Yes, you may move your swap from HDD/SDD to RAM. The latest Linux kernels include ZRAM module inside, so you may use your swap in RAM. That will give you much better speed of swapping operations, but will in some times increase CPU load.
You may read about it on https://wiki.debian.org/ZRam
add a comment |
In this case disabling swap partition completely is a good idea right?
Yes, you may move your swap from HDD/SDD to RAM. The latest Linux kernels include ZRAM module inside, so you may use your swap in RAM. That will give you much better speed of swapping operations, but will in some times increase CPU load.
You may read about it on https://wiki.debian.org/ZRam
In this case disabling swap partition completely is a good idea right?
Yes, you may move your swap from HDD/SDD to RAM. The latest Linux kernels include ZRAM module inside, so you may use your swap in RAM. That will give you much better speed of swapping operations, but will in some times increase CPU load.
You may read about it on https://wiki.debian.org/ZRam
answered Oct 3 '14 at 16:26
ihor_dvoretskyiihor_dvoretskyi
1,723913
1,723913
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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%2funix.stackexchange.com%2fquestions%2f159048%2flinux-speed-up-by-moving-files-to-ramdisk-at-start%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
Buying an SSD is much easier. And they're pretty cheap now.
– Michael Hampton
Oct 3 '14 at 15:41