Can we specify percentage value for RuntimeMaxUse attribute in journald.conf











up vote
3
down vote

favorite












From man page of Journald.conf I came to know that, by default Journal use 10% of file system size for storing journal files.



I have configured below values in journald.conf.



RuntimeMaxUse=10
#RuntimeKeepFree=
RuntimeMaxFileSize=2G
RuntimeMaxFiles=3


I have not specified any units for




RuntimeMaxUse attribute




How journal treats this value?



one more question below



Is there anyway to specify in journald.conf file to use 30% of the filesystem size for journal files?



For the above configuration, I could see below results on my system



-rw-r-----+ 1 root root 904M Jul 14 14:11 system@63691df841d14d4795850417936c799e-0000000006cdd9d1-0005379686115fe8.journal
-rw-r-----+ 1 root root 904M Jul 14 14:14 system@63691df841d14d4795850417936c799e-0000000006e30c11-00053796905a72d8.journal
-rw-r-----+ 1 root root 120M Jul 14 14:14 system.journal


Two files created with approximately 1G each and third file can grow upto 1G and after that oldest journal files gets deleted.



For one more configuration below,



RuntimeMaxUse=2G
#RuntimeKeepFree=
RuntimeMaxFileSize=2G
RuntimeMaxFiles=3


Even though i specified RuntimeMaxUse as 2G, I could see journal uses 3G of file system size.
i.e



1) file1 -- system@*********************** - 1G
2) file2 -- system@*********************** - 1G
3) file3 -- system.journal - Reaches upto 1G


Is my understanding correct?



Please clarify.










share|improve this question




























    up vote
    3
    down vote

    favorite












    From man page of Journald.conf I came to know that, by default Journal use 10% of file system size for storing journal files.



    I have configured below values in journald.conf.



    RuntimeMaxUse=10
    #RuntimeKeepFree=
    RuntimeMaxFileSize=2G
    RuntimeMaxFiles=3


    I have not specified any units for




    RuntimeMaxUse attribute




    How journal treats this value?



    one more question below



    Is there anyway to specify in journald.conf file to use 30% of the filesystem size for journal files?



    For the above configuration, I could see below results on my system



    -rw-r-----+ 1 root root 904M Jul 14 14:11 system@63691df841d14d4795850417936c799e-0000000006cdd9d1-0005379686115fe8.journal
    -rw-r-----+ 1 root root 904M Jul 14 14:14 system@63691df841d14d4795850417936c799e-0000000006e30c11-00053796905a72d8.journal
    -rw-r-----+ 1 root root 120M Jul 14 14:14 system.journal


    Two files created with approximately 1G each and third file can grow upto 1G and after that oldest journal files gets deleted.



    For one more configuration below,



    RuntimeMaxUse=2G
    #RuntimeKeepFree=
    RuntimeMaxFileSize=2G
    RuntimeMaxFiles=3


    Even though i specified RuntimeMaxUse as 2G, I could see journal uses 3G of file system size.
    i.e



    1) file1 -- system@*********************** - 1G
    2) file2 -- system@*********************** - 1G
    3) file3 -- system.journal - Reaches upto 1G


    Is my understanding correct?



    Please clarify.










    share|improve this question


























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      From man page of Journald.conf I came to know that, by default Journal use 10% of file system size for storing journal files.



      I have configured below values in journald.conf.



      RuntimeMaxUse=10
      #RuntimeKeepFree=
      RuntimeMaxFileSize=2G
      RuntimeMaxFiles=3


      I have not specified any units for




      RuntimeMaxUse attribute




      How journal treats this value?



      one more question below



      Is there anyway to specify in journald.conf file to use 30% of the filesystem size for journal files?



      For the above configuration, I could see below results on my system



      -rw-r-----+ 1 root root 904M Jul 14 14:11 system@63691df841d14d4795850417936c799e-0000000006cdd9d1-0005379686115fe8.journal
      -rw-r-----+ 1 root root 904M Jul 14 14:14 system@63691df841d14d4795850417936c799e-0000000006e30c11-00053796905a72d8.journal
      -rw-r-----+ 1 root root 120M Jul 14 14:14 system.journal


      Two files created with approximately 1G each and third file can grow upto 1G and after that oldest journal files gets deleted.



      For one more configuration below,



      RuntimeMaxUse=2G
      #RuntimeKeepFree=
      RuntimeMaxFileSize=2G
      RuntimeMaxFiles=3


      Even though i specified RuntimeMaxUse as 2G, I could see journal uses 3G of file system size.
      i.e



      1) file1 -- system@*********************** - 1G
      2) file2 -- system@*********************** - 1G
      3) file3 -- system.journal - Reaches upto 1G


      Is my understanding correct?



      Please clarify.










      share|improve this question















      From man page of Journald.conf I came to know that, by default Journal use 10% of file system size for storing journal files.



      I have configured below values in journald.conf.



      RuntimeMaxUse=10
      #RuntimeKeepFree=
      RuntimeMaxFileSize=2G
      RuntimeMaxFiles=3


      I have not specified any units for




      RuntimeMaxUse attribute




      How journal treats this value?



      one more question below



      Is there anyway to specify in journald.conf file to use 30% of the filesystem size for journal files?



      For the above configuration, I could see below results on my system



      -rw-r-----+ 1 root root 904M Jul 14 14:11 system@63691df841d14d4795850417936c799e-0000000006cdd9d1-0005379686115fe8.journal
      -rw-r-----+ 1 root root 904M Jul 14 14:14 system@63691df841d14d4795850417936c799e-0000000006e30c11-00053796905a72d8.journal
      -rw-r-----+ 1 root root 120M Jul 14 14:14 system.journal


      Two files created with approximately 1G each and third file can grow upto 1G and after that oldest journal files gets deleted.



      For one more configuration below,



      RuntimeMaxUse=2G
      #RuntimeKeepFree=
      RuntimeMaxFileSize=2G
      RuntimeMaxFiles=3


      Even though i specified RuntimeMaxUse as 2G, I could see journal uses 3G of file system size.
      i.e



      1) file1 -- system@*********************** - 1G
      2) file2 -- system@*********************** - 1G
      3) file3 -- system.journal - Reaches upto 1G


      Is my understanding correct?



      Please clarify.







      linux systemd logs systemd-journald






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 23 '17 at 19:48









      sourcejedi

      22k43396




      22k43396










      asked Jul 15 '16 at 6:17









      sandeep nagendra

      283




      283






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote



          accepted










          No, you cannot specify a percentage value for RuntimeMaxUse or any other storage option from journald.conf as Jan Synacek explains here:




          The values are not specified in percentages, they are specified in
          absolute values followed by a unit. The percentages mentioned in the
          manpage are applied only if the user specifies no value for a given
          option.




          So only absolute values followed by a unit will work.






          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: 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
            });


            }
            });














             

            draft saved


            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f296054%2fcan-we-specify-percentage-value-for-runtimemaxuse-attribute-in-journald-conf%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








            up vote
            1
            down vote



            accepted










            No, you cannot specify a percentage value for RuntimeMaxUse or any other storage option from journald.conf as Jan Synacek explains here:




            The values are not specified in percentages, they are specified in
            absolute values followed by a unit. The percentages mentioned in the
            manpage are applied only if the user specifies no value for a given
            option.




            So only absolute values followed by a unit will work.






            share|improve this answer

























              up vote
              1
              down vote



              accepted










              No, you cannot specify a percentage value for RuntimeMaxUse or any other storage option from journald.conf as Jan Synacek explains here:




              The values are not specified in percentages, they are specified in
              absolute values followed by a unit. The percentages mentioned in the
              manpage are applied only if the user specifies no value for a given
              option.




              So only absolute values followed by a unit will work.






              share|improve this answer























                up vote
                1
                down vote



                accepted







                up vote
                1
                down vote



                accepted






                No, you cannot specify a percentage value for RuntimeMaxUse or any other storage option from journald.conf as Jan Synacek explains here:




                The values are not specified in percentages, they are specified in
                absolute values followed by a unit. The percentages mentioned in the
                manpage are applied only if the user specifies no value for a given
                option.




                So only absolute values followed by a unit will work.






                share|improve this answer












                No, you cannot specify a percentage value for RuntimeMaxUse or any other storage option from journald.conf as Jan Synacek explains here:




                The values are not specified in percentages, they are specified in
                absolute values followed by a unit. The percentages mentioned in the
                manpage are applied only if the user specifies no value for a given
                option.




                So only absolute values followed by a unit will work.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Nov 20 at 11:55









                don_crissti

                48.8k15129157




                48.8k15129157






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f296054%2fcan-we-specify-percentage-value-for-runtimemaxuse-attribute-in-journald-conf%23new-answer', 'question_page');
                    }
                    );

                    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







                    Popular posts from this blog

                    Morgemoulin

                    Scott Moir

                    Souastre