swap partition maximum space & function

The name of the pictureThe name of the pictureThe name of the pictureClash 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)







share|improve this question






















  • 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














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)







share|improve this question






















  • 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












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)







share|improve this question














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)









share|improve this question













share|improve this question




share|improve this question








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
















  • 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










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.






share|improve this answer




















    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );








     

    draft saved


    draft discarded


















    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






























    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.






    share|improve this answer
























      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.






      share|improve this answer






















        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.






        share|improve this answer












        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 25 at 11:28









        Hauke Laging

        53.3k1282130




        53.3k1282130






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            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













































































            Popular posts from this blog

            Peggy Mitchell

            Palaiologos

            The Forum (Inglewood, California)