swap partition maximum space & function

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
so i'm new to ram expensive applications, and I don't really know how swap is working...
I've only 10GiB of ram (it's a VM), and 500GB/1TB of available HDD space
the java app need roughly 150/200GiB of memory to run, but I can reduce it to 64GiB.
I think that not everything is loaded at the same time, but Java still need to allocate heap space
How much swap space should I allocate? How it will be working? How the os will respond? (I know that it's used when ram is full/reduce ram usage, but saddly I didn't find much more useful information)
swap ram
add a comment |Â
up vote
0
down vote
favorite
so i'm new to ram expensive applications, and I don't really know how swap is working...
I've only 10GiB of ram (it's a VM), and 500GB/1TB of available HDD space
the java app need roughly 150/200GiB of memory to run, but I can reduce it to 64GiB.
I think that not everything is loaded at the same time, but Java still need to allocate heap space
How much swap space should I allocate? How it will be working? How the os will respond? (I know that it's used when ram is full/reduce ram usage, but saddly I didn't find much more useful information)
swap ram
What is "Go"...?
â Hauke Laging
Mar 25 at 11:15
GB sorry in french it's octet for byte
â Mel Abgrall
Mar 25 at 11:16
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
so i'm new to ram expensive applications, and I don't really know how swap is working...
I've only 10GiB of ram (it's a VM), and 500GB/1TB of available HDD space
the java app need roughly 150/200GiB of memory to run, but I can reduce it to 64GiB.
I think that not everything is loaded at the same time, but Java still need to allocate heap space
How much swap space should I allocate? How it will be working? How the os will respond? (I know that it's used when ram is full/reduce ram usage, but saddly I didn't find much more useful information)
swap ram
so i'm new to ram expensive applications, and I don't really know how swap is working...
I've only 10GiB of ram (it's a VM), and 500GB/1TB of available HDD space
the java app need roughly 150/200GiB of memory to run, but I can reduce it to 64GiB.
I think that not everything is loaded at the same time, but Java still need to allocate heap space
How much swap space should I allocate? How it will be working? How the os will respond? (I know that it's used when ram is full/reduce ram usage, but saddly I didn't find much more useful information)
swap ram
edited Mar 25 at 11:19
Hauke Laging
53.3k1282130
53.3k1282130
asked Mar 25 at 10:11
Mel Abgrall
31
31
What is "Go"...?
â Hauke Laging
Mar 25 at 11:15
GB sorry in french it's octet for byte
â Mel Abgrall
Mar 25 at 11:16
add a comment |Â
What is "Go"...?
â Hauke Laging
Mar 25 at 11:15
GB sorry in french it's octet for byte
â Mel Abgrall
Mar 25 at 11:16
What is "Go"...?
â Hauke Laging
Mar 25 at 11:15
What is "Go"...?
â Hauke Laging
Mar 25 at 11:15
GB sorry in french it's octet for byte
â Mel Abgrall
Mar 25 at 11:16
GB sorry in french it's octet for byte
â Mel Abgrall
Mar 25 at 11:16
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
The sum of the (usable) physical RAM and the swap space must be larger than the combined amount of RAM which the kernel and all running processes allocate. Of course, using much swap space may make the system terribly slow.
So if there is nothing besides your app which needs much memory then you should have at least 65GiB i.e. 55GiB swap space.
It is difficult to say whether Linux or your app is more effective with memory management. Thus I suggest to allocate 210GiB for swap (I just realize how crazy that sounds...) and compare the application performance with different application memory settings.
You can change the amount of swap space in a running system e.g. if you have LVM and several LVs which you can use for swap. See man swapon.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
The sum of the (usable) physical RAM and the swap space must be larger than the combined amount of RAM which the kernel and all running processes allocate. Of course, using much swap space may make the system terribly slow.
So if there is nothing besides your app which needs much memory then you should have at least 65GiB i.e. 55GiB swap space.
It is difficult to say whether Linux or your app is more effective with memory management. Thus I suggest to allocate 210GiB for swap (I just realize how crazy that sounds...) and compare the application performance with different application memory settings.
You can change the amount of swap space in a running system e.g. if you have LVM and several LVs which you can use for swap. See man swapon.
add a comment |Â
up vote
0
down vote
accepted
The sum of the (usable) physical RAM and the swap space must be larger than the combined amount of RAM which the kernel and all running processes allocate. Of course, using much swap space may make the system terribly slow.
So if there is nothing besides your app which needs much memory then you should have at least 65GiB i.e. 55GiB swap space.
It is difficult to say whether Linux or your app is more effective with memory management. Thus I suggest to allocate 210GiB for swap (I just realize how crazy that sounds...) and compare the application performance with different application memory settings.
You can change the amount of swap space in a running system e.g. if you have LVM and several LVs which you can use for swap. See man swapon.
add a comment |Â
up vote
0
down vote
accepted
up vote
0
down vote
accepted
The sum of the (usable) physical RAM and the swap space must be larger than the combined amount of RAM which the kernel and all running processes allocate. Of course, using much swap space may make the system terribly slow.
So if there is nothing besides your app which needs much memory then you should have at least 65GiB i.e. 55GiB swap space.
It is difficult to say whether Linux or your app is more effective with memory management. Thus I suggest to allocate 210GiB for swap (I just realize how crazy that sounds...) and compare the application performance with different application memory settings.
You can change the amount of swap space in a running system e.g. if you have LVM and several LVs which you can use for swap. See man swapon.
The sum of the (usable) physical RAM and the swap space must be larger than the combined amount of RAM which the kernel and all running processes allocate. Of course, using much swap space may make the system terribly slow.
So if there is nothing besides your app which needs much memory then you should have at least 65GiB i.e. 55GiB swap space.
It is difficult to say whether Linux or your app is more effective with memory management. Thus I suggest to allocate 210GiB for swap (I just realize how crazy that sounds...) and compare the application performance with different application memory settings.
You can change the amount of swap space in a running system e.g. if you have LVM and several LVs which you can use for swap. See man swapon.
answered Mar 25 at 11:28
Hauke Laging
53.3k1282130
53.3k1282130
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f433388%2fswap-partition-maximum-space-function%23new-answer', 'question_page');
);
Post as a guest
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
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
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
What is "Go"...?
â Hauke Laging
Mar 25 at 11:15
GB sorry in french it's octet for byte
â Mel Abgrall
Mar 25 at 11:16