Bcache writeback_percent max value

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I'm tryng to set



writeback_percent


at a value > 40 but it only accept value between 0 and 40.



If i set



echo 50 > /sys/block/bcache0/bcache/writeback_percent 


then when i read the value



more /sys/block/bcache0/bcache/writeback_percent


i have 40.
For value<=40 the settings work fine.



My setting for cache type are



more /sys/block/bcache0/bcache/cache_mode 
writethrough [writeback] writearound none


I know this is dangerous but this is not a problem for me.



As far as i understand writeback_percent is the % used from dirty data in cache, why i can't use 90% or 100% of available space?
May be i dont' understand quite well this settings?










share|improve this question





















  • Thank you @sourcedj, but may be i'm wrong but previously i was able to use a value > 40. This are file systems in use only for automatic test purpose so data are copied from a source that is not cached , backupped and so on so no problem if i lost this data. Anyway i understand that probability of data loss increase but i can't find any info about this limit, so i ask here about some clarification. And anyway my English is not perfect :)
    – Antimo
    Sep 10 '17 at 19:36










  • Sorry, I was criticizing only a small detail. Don't worry about it. It sounds like I wasn't very helpful! I don't know why bcache is not accepting a value > 40. It's a perfectly reasonable question to have, hopefully someone who knows more will see your post.
    – sourcejedi
    Sep 10 '17 at 19:44














up vote
1
down vote

favorite












I'm tryng to set



writeback_percent


at a value > 40 but it only accept value between 0 and 40.



If i set



echo 50 > /sys/block/bcache0/bcache/writeback_percent 


then when i read the value



more /sys/block/bcache0/bcache/writeback_percent


i have 40.
For value<=40 the settings work fine.



My setting for cache type are



more /sys/block/bcache0/bcache/cache_mode 
writethrough [writeback] writearound none


I know this is dangerous but this is not a problem for me.



As far as i understand writeback_percent is the % used from dirty data in cache, why i can't use 90% or 100% of available space?
May be i dont' understand quite well this settings?










share|improve this question





















  • Thank you @sourcedj, but may be i'm wrong but previously i was able to use a value > 40. This are file systems in use only for automatic test purpose so data are copied from a source that is not cached , backupped and so on so no problem if i lost this data. Anyway i understand that probability of data loss increase but i can't find any info about this limit, so i ask here about some clarification. And anyway my English is not perfect :)
    – Antimo
    Sep 10 '17 at 19:36










  • Sorry, I was criticizing only a small detail. Don't worry about it. It sounds like I wasn't very helpful! I don't know why bcache is not accepting a value > 40. It's a perfectly reasonable question to have, hopefully someone who knows more will see your post.
    – sourcejedi
    Sep 10 '17 at 19:44












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I'm tryng to set



writeback_percent


at a value > 40 but it only accept value between 0 and 40.



If i set



echo 50 > /sys/block/bcache0/bcache/writeback_percent 


then when i read the value



more /sys/block/bcache0/bcache/writeback_percent


i have 40.
For value<=40 the settings work fine.



My setting for cache type are



more /sys/block/bcache0/bcache/cache_mode 
writethrough [writeback] writearound none


I know this is dangerous but this is not a problem for me.



As far as i understand writeback_percent is the % used from dirty data in cache, why i can't use 90% or 100% of available space?
May be i dont' understand quite well this settings?










share|improve this question













I'm tryng to set



writeback_percent


at a value > 40 but it only accept value between 0 and 40.



If i set



echo 50 > /sys/block/bcache0/bcache/writeback_percent 


then when i read the value



more /sys/block/bcache0/bcache/writeback_percent


i have 40.
For value<=40 the settings work fine.



My setting for cache type are



more /sys/block/bcache0/bcache/cache_mode 
writethrough [writeback] writearound none


I know this is dangerous but this is not a problem for me.



As far as i understand writeback_percent is the % used from dirty data in cache, why i can't use 90% or 100% of available space?
May be i dont' understand quite well this settings?







bcache






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 10 '17 at 13:06









Antimo

61




61











  • Thank you @sourcedj, but may be i'm wrong but previously i was able to use a value > 40. This are file systems in use only for automatic test purpose so data are copied from a source that is not cached , backupped and so on so no problem if i lost this data. Anyway i understand that probability of data loss increase but i can't find any info about this limit, so i ask here about some clarification. And anyway my English is not perfect :)
    – Antimo
    Sep 10 '17 at 19:36










  • Sorry, I was criticizing only a small detail. Don't worry about it. It sounds like I wasn't very helpful! I don't know why bcache is not accepting a value > 40. It's a perfectly reasonable question to have, hopefully someone who knows more will see your post.
    – sourcejedi
    Sep 10 '17 at 19:44
















  • Thank you @sourcedj, but may be i'm wrong but previously i was able to use a value > 40. This are file systems in use only for automatic test purpose so data are copied from a source that is not cached , backupped and so on so no problem if i lost this data. Anyway i understand that probability of data loss increase but i can't find any info about this limit, so i ask here about some clarification. And anyway my English is not perfect :)
    – Antimo
    Sep 10 '17 at 19:36










  • Sorry, I was criticizing only a small detail. Don't worry about it. It sounds like I wasn't very helpful! I don't know why bcache is not accepting a value > 40. It's a perfectly reasonable question to have, hopefully someone who knows more will see your post.
    – sourcejedi
    Sep 10 '17 at 19:44















Thank you @sourcedj, but may be i'm wrong but previously i was able to use a value > 40. This are file systems in use only for automatic test purpose so data are copied from a source that is not cached , backupped and so on so no problem if i lost this data. Anyway i understand that probability of data loss increase but i can't find any info about this limit, so i ask here about some clarification. And anyway my English is not perfect :)
– Antimo
Sep 10 '17 at 19:36




Thank you @sourcedj, but may be i'm wrong but previously i was able to use a value > 40. This are file systems in use only for automatic test purpose so data are copied from a source that is not cached , backupped and so on so no problem if i lost this data. Anyway i understand that probability of data loss increase but i can't find any info about this limit, so i ask here about some clarification. And anyway my English is not perfect :)
– Antimo
Sep 10 '17 at 19:36












Sorry, I was criticizing only a small detail. Don't worry about it. It sounds like I wasn't very helpful! I don't know why bcache is not accepting a value > 40. It's a perfectly reasonable question to have, hopefully someone who knows more will see your post.
– sourcejedi
Sep 10 '17 at 19:44




Sorry, I was criticizing only a small detail. Don't worry about it. It sounds like I wasn't very helpful! I don't know why bcache is not accepting a value > 40. It's a perfectly reasonable question to have, hopefully someone who knows more will see your post.
– sourcejedi
Sep 10 '17 at 19:44










1 Answer
1






active

oldest

votes

















up vote
0
down vote













This is hardcoded value in the bcache drive code - linux/drivers/md/bcache/writeback.h. The only way to change this limit is to rebuild the driver from source.





share








New contributor




V.Gorbunov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















    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%2f391435%2fbcache-writeback-percent-max-value%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













    This is hardcoded value in the bcache drive code - linux/drivers/md/bcache/writeback.h. The only way to change this limit is to rebuild the driver from source.





    share








    New contributor




    V.Gorbunov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      0
      down vote













      This is hardcoded value in the bcache drive code - linux/drivers/md/bcache/writeback.h. The only way to change this limit is to rebuild the driver from source.





      share








      New contributor




      V.Gorbunov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



















        up vote
        0
        down vote










        up vote
        0
        down vote









        This is hardcoded value in the bcache drive code - linux/drivers/md/bcache/writeback.h. The only way to change this limit is to rebuild the driver from source.





        share








        New contributor




        V.Gorbunov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        This is hardcoded value in the bcache drive code - linux/drivers/md/bcache/writeback.h. The only way to change this limit is to rebuild the driver from source.






        share








        New contributor




        V.Gorbunov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.








        share


        share






        New contributor




        V.Gorbunov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered 9 mins ago









        V.Gorbunov

        1




        1




        New contributor




        V.Gorbunov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        V.Gorbunov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        V.Gorbunov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f391435%2fbcache-writeback-percent-max-value%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?