What is Btrfs's disk space caching?












4















I noticed in my syslog that BTRFS reports enabling "disk space caching". What is Btrfs's "disk space caching"?










share|improve this question



























    4















    I noticed in my syslog that BTRFS reports enabling "disk space caching". What is Btrfs's "disk space caching"?










    share|improve this question

























      4












      4








      4








      I noticed in my syslog that BTRFS reports enabling "disk space caching". What is Btrfs's "disk space caching"?










      share|improve this question














      I noticed in my syslog that BTRFS reports enabling "disk space caching". What is Btrfs's "disk space caching"?







      btrfs hard-drive-cache






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 22 '14 at 8:31









      GeremiaGeremia

      190116




      190116






















          2 Answers
          2






          active

          oldest

          votes


















          2














          This space_cache option will be selected while mounting a mount point which has Btrfs file system. This will store the free space cache on the disk to make the caching of a block much faster. Without this, Btrfs has to scan the entire tree every time looking for the free space that can be allocated.






          share|improve this answer
























          • Nicely ripped almost directly from a phoronix report.

            – palswim
            Sep 11 '15 at 6:24





















          3














          Short and to the point:



          if enabled, Kernel will have available FS free space block addresses in memory, thus when you create a new file it will immediately start writing data to disk.



          More details:



          the mount option space_cache now is the default on recent kernels. It provides better performance, when creating new files or writing new data to disk. Please see link. You can disable it by adding nospace_cache mount option.



          nospace_cache since: 3.2, space_cache=v1 and space_cache=v2 since 4.5, default: space_cache=v1






          share|improve this answer


























          • Which link are you referring to?

            – Tom Hale
            Jan 23 at 2:41











          • added link in edit

            – Arunas Bartisius
            Jan 24 at 19:33












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          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: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          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%2fsuperuser.com%2fquestions%2f855506%2fwhat-is-btrfss-disk-space-caching%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          This space_cache option will be selected while mounting a mount point which has Btrfs file system. This will store the free space cache on the disk to make the caching of a block much faster. Without this, Btrfs has to scan the entire tree every time looking for the free space that can be allocated.






          share|improve this answer
























          • Nicely ripped almost directly from a phoronix report.

            – palswim
            Sep 11 '15 at 6:24


















          2














          This space_cache option will be selected while mounting a mount point which has Btrfs file system. This will store the free space cache on the disk to make the caching of a block much faster. Without this, Btrfs has to scan the entire tree every time looking for the free space that can be allocated.






          share|improve this answer
























          • Nicely ripped almost directly from a phoronix report.

            – palswim
            Sep 11 '15 at 6:24
















          2












          2








          2







          This space_cache option will be selected while mounting a mount point which has Btrfs file system. This will store the free space cache on the disk to make the caching of a block much faster. Without this, Btrfs has to scan the entire tree every time looking for the free space that can be allocated.






          share|improve this answer













          This space_cache option will be selected while mounting a mount point which has Btrfs file system. This will store the free space cache on the disk to make the caching of a block much faster. Without this, Btrfs has to scan the entire tree every time looking for the free space that can be allocated.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 22 '14 at 11:37









          vembutechvembutech

          5,47911318




          5,47911318













          • Nicely ripped almost directly from a phoronix report.

            – palswim
            Sep 11 '15 at 6:24





















          • Nicely ripped almost directly from a phoronix report.

            – palswim
            Sep 11 '15 at 6:24



















          Nicely ripped almost directly from a phoronix report.

          – palswim
          Sep 11 '15 at 6:24







          Nicely ripped almost directly from a phoronix report.

          – palswim
          Sep 11 '15 at 6:24















          3














          Short and to the point:



          if enabled, Kernel will have available FS free space block addresses in memory, thus when you create a new file it will immediately start writing data to disk.



          More details:



          the mount option space_cache now is the default on recent kernels. It provides better performance, when creating new files or writing new data to disk. Please see link. You can disable it by adding nospace_cache mount option.



          nospace_cache since: 3.2, space_cache=v1 and space_cache=v2 since 4.5, default: space_cache=v1






          share|improve this answer


























          • Which link are you referring to?

            – Tom Hale
            Jan 23 at 2:41











          • added link in edit

            – Arunas Bartisius
            Jan 24 at 19:33
















          3














          Short and to the point:



          if enabled, Kernel will have available FS free space block addresses in memory, thus when you create a new file it will immediately start writing data to disk.



          More details:



          the mount option space_cache now is the default on recent kernels. It provides better performance, when creating new files or writing new data to disk. Please see link. You can disable it by adding nospace_cache mount option.



          nospace_cache since: 3.2, space_cache=v1 and space_cache=v2 since 4.5, default: space_cache=v1






          share|improve this answer


























          • Which link are you referring to?

            – Tom Hale
            Jan 23 at 2:41











          • added link in edit

            – Arunas Bartisius
            Jan 24 at 19:33














          3












          3








          3







          Short and to the point:



          if enabled, Kernel will have available FS free space block addresses in memory, thus when you create a new file it will immediately start writing data to disk.



          More details:



          the mount option space_cache now is the default on recent kernels. It provides better performance, when creating new files or writing new data to disk. Please see link. You can disable it by adding nospace_cache mount option.



          nospace_cache since: 3.2, space_cache=v1 and space_cache=v2 since 4.5, default: space_cache=v1






          share|improve this answer















          Short and to the point:



          if enabled, Kernel will have available FS free space block addresses in memory, thus when you create a new file it will immediately start writing data to disk.



          More details:



          the mount option space_cache now is the default on recent kernels. It provides better performance, when creating new files or writing new data to disk. Please see link. You can disable it by adding nospace_cache mount option.



          nospace_cache since: 3.2, space_cache=v1 and space_cache=v2 since 4.5, default: space_cache=v1







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jan 24 at 19:32

























          answered Jan 24 '15 at 21:24









          Arunas BartisiusArunas Bartisius

          721610




          721610













          • Which link are you referring to?

            – Tom Hale
            Jan 23 at 2:41











          • added link in edit

            – Arunas Bartisius
            Jan 24 at 19:33



















          • Which link are you referring to?

            – Tom Hale
            Jan 23 at 2:41











          • added link in edit

            – Arunas Bartisius
            Jan 24 at 19:33

















          Which link are you referring to?

          – Tom Hale
          Jan 23 at 2:41





          Which link are you referring to?

          – Tom Hale
          Jan 23 at 2:41













          added link in edit

          – Arunas Bartisius
          Jan 24 at 19:33





          added link in edit

          – Arunas Bartisius
          Jan 24 at 19:33


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • 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%2fsuperuser.com%2fquestions%2f855506%2fwhat-is-btrfss-disk-space-caching%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

          Paul Cézanne

          UIScrollView CustomStickyHeader Resize height generates problems when scroll is too fast

          Angular material date-picker (MatDatepicker) auto completes the date on focus out