bcache: speed optimizationOptimizing bcacheWhat exactly should we do to get bcache?SSD as a read cache for...

Generate points for smooth movement between two given points

What is the difference between "wie" and "nach" in "Klingt wie/nach..."

Does the Scrying spell require you to have a clear path to the target in order to work?

One hour 10 min layover in Newark; International -> Domestic connection. Enough time to clear customs?

What is this red bug infesting some trees in southern Germany?

Do 643,000 Americans go bankrupt every year due to medical bills?

Can I sleep overnight at Stansted Airport

How can I oppose my advisor granting gift authorship to a collaborator?

Finder/Terminal: Find files that contain less than 21 lines of text

If p-value is exactly 1 (1.0000000), what are the confidence interval limits?

Why did the Joi advertisement trigger K?

In-universe, why does Doc Brown program the time machine to go to 1955?

pruning subdomains of other domains in a file using script (bash, awk or similar)

Why would a Intel 8080 chip be destroyed if +12 V is connected before -5 V?

How do I stop making people jump at home and at work?

Visiting girlfriend in the USA

How does speed affect lift?

What does "se jouer" mean here?

Are language and thought the same?

Adding transparency to ink drawing

Everyone for non livings

How to encode a class with 24,000 categories?

Main differences between 5th edition Druid and 3.5 edition Druid

First Number to Contain Each Letter



bcache: speed optimization


Optimizing bcacheWhat exactly should we do to get bcache?SSD as a read cache for FREQUENTLY read databcache on md or md on bcacheUsing multiple SSDs as cache devices with bcache?Optimizing bcacheHow to restart a 'stopped' bcache device?How to install bcache on Linux 4.1?Bcache writeback_percent max valueReplace Bcache Backing Device






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I have read Optimizing bcache



I am trying to make this as fast as possible:



# This gives around 120 MB/s
time head -c 10G /dev/zero |pv > tmp
# Simulate that there is not 10 G RAM cache
echo 3 | sudo tee /proc/sys/vm/drop_caches
# This gives around 250 MB/s
time pv tmp >/dev/null


My 128 GB SSD has a read performance of around 350 MB/s:



sudo pv /dev/sdb >/dev/null


During writing I can see that bcache starts flushing to the backing store. So there is both reading and writing to the SSD. It would be better if it waited until there was idle time on the SSD, and only did writebehind during idle times.



There is plenty of available space on the SSD:



/sys/fs/bcache/4c957602-1e3f-48fc-9005-cb9307d7cf50/cache_available_percent:92


Is there a way I can tell bcache to optimize for the above situation? Maybe tell it to stop dealing with backing store as long as there is available space on SSD and the SSD is 100% active?










share|improve this question































    0















    I have read Optimizing bcache



    I am trying to make this as fast as possible:



    # This gives around 120 MB/s
    time head -c 10G /dev/zero |pv > tmp
    # Simulate that there is not 10 G RAM cache
    echo 3 | sudo tee /proc/sys/vm/drop_caches
    # This gives around 250 MB/s
    time pv tmp >/dev/null


    My 128 GB SSD has a read performance of around 350 MB/s:



    sudo pv /dev/sdb >/dev/null


    During writing I can see that bcache starts flushing to the backing store. So there is both reading and writing to the SSD. It would be better if it waited until there was idle time on the SSD, and only did writebehind during idle times.



    There is plenty of available space on the SSD:



    /sys/fs/bcache/4c957602-1e3f-48fc-9005-cb9307d7cf50/cache_available_percent:92


    Is there a way I can tell bcache to optimize for the above situation? Maybe tell it to stop dealing with backing store as long as there is available space on SSD and the SSD is 100% active?










    share|improve this question



























      0












      0








      0








      I have read Optimizing bcache



      I am trying to make this as fast as possible:



      # This gives around 120 MB/s
      time head -c 10G /dev/zero |pv > tmp
      # Simulate that there is not 10 G RAM cache
      echo 3 | sudo tee /proc/sys/vm/drop_caches
      # This gives around 250 MB/s
      time pv tmp >/dev/null


      My 128 GB SSD has a read performance of around 350 MB/s:



      sudo pv /dev/sdb >/dev/null


      During writing I can see that bcache starts flushing to the backing store. So there is both reading and writing to the SSD. It would be better if it waited until there was idle time on the SSD, and only did writebehind during idle times.



      There is plenty of available space on the SSD:



      /sys/fs/bcache/4c957602-1e3f-48fc-9005-cb9307d7cf50/cache_available_percent:92


      Is there a way I can tell bcache to optimize for the above situation? Maybe tell it to stop dealing with backing store as long as there is available space on SSD and the SSD is 100% active?










      share|improve this question














      I have read Optimizing bcache



      I am trying to make this as fast as possible:



      # This gives around 120 MB/s
      time head -c 10G /dev/zero |pv > tmp
      # Simulate that there is not 10 G RAM cache
      echo 3 | sudo tee /proc/sys/vm/drop_caches
      # This gives around 250 MB/s
      time pv tmp >/dev/null


      My 128 GB SSD has a read performance of around 350 MB/s:



      sudo pv /dev/sdb >/dev/null


      During writing I can see that bcache starts flushing to the backing store. So there is both reading and writing to the SSD. It would be better if it waited until there was idle time on the SSD, and only did writebehind during idle times.



      There is plenty of available space on the SSD:



      /sys/fs/bcache/4c957602-1e3f-48fc-9005-cb9307d7cf50/cache_available_percent:92


      Is there a way I can tell bcache to optimize for the above situation? Maybe tell it to stop dealing with backing store as long as there is available space on SSD and the SSD is 100% active?







      bcache






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      Ole TangeOle Tange

      14k17 gold badges61 silver badges109 bronze badges




      14k17 gold badges61 silver badges109 bronze badges

























          0






          active

          oldest

          votes














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


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f538911%2fbcache-speed-optimization%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f538911%2fbcache-speed-optimization%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

          Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

          The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

          Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...