Is reading a memory-mapped file sequentially from a PCI-E SSD faster than SATA SSD?Is there a tool to list...

"You are your self first supporter", a more proper way to say it

Prove that NP is closed under karp reduction?

What are these boxed doors outside store fronts in New York?

Watching something be written to a file live with tail

can i play a electric guitar through a bass amp?

Have astronauts in space suits ever taken selfies? If so, how?

What's the point of deactivating Num Lock on login screens?

Why doesn't H₄O²⁺ exist?

How could an uplifted falcon's brain work?

The use of multiple foreign keys on same column in SQL Server

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

Why not use SQL instead of GraphQL?

Arthur Somervell: 1000 Exercises - Meaning of this notation

How can I make my BBEG immortal short of making them a Lich or Vampire?

In Japanese, what’s the difference between “Tonari ni” (となりに) and “Tsugi” (つぎ)? When would you use one over the other?

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Writing rule stating superpower from different root cause is bad writing

Languages that we cannot (dis)prove to be Context-Free

What do you call a Matrix-like slowdown and camera movement effect?

Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?

Smoothness of finite-dimensional functional calculus

Why are electrically insulating heatsinks so rare? Is it just cost?

Minkowski space

Can I ask the recruiters in my resume to put the reason why I am rejected?



Is reading a memory-mapped file sequentially from a PCI-E SSD faster than SATA SSD?


Is there a tool to list the memory allocation of all PCI drivers (WinXP)?Why is reading a FILE faster than reading a VARIABLE?When Windows detects the system as being sluggish, what is it basing this off of?Can SSD raid be faster than ramdisk?Advice on SSD performance bottleneck neededWould an array of SSD drives be able to succesfully substitute the system memory?Why doesn't an SSD improve the speed of running applications compared to a HDD?NVMe ssd: Why is 4k writing faster than reading?Why is my DDR4 RAM benchmark in my new Ryzen build so lowUnderstanding RAM's Burst Mode






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







-1















(Stackoverflow said to post this here)



I read large files (3-10 GB) of binary data into program memory via C++ memory-mapping (mmap) on Linux. My access pattern is sequential- I read from beginning to end, no random accesses.



Would using a PCI-E SSD over a SATA SSD improve the latency? (I don't have one available to just test and find out).



I guess this ultimately depends on how exactly does the memory-mapping works. I don't think memory-mapping loads the entire file into RAM, but merely allocates a set of virtual addresses and streams the pages as they are required? (If this is true, how is it any different from streaming IO?).



If the pages are streamed, then I guess the answer depends on how quickly I process the data versus how quickly the bus can feed pages to the RAM? If my processing is slow, a PCI-E SSD would be pointless?










share|improve this question





























    -1















    (Stackoverflow said to post this here)



    I read large files (3-10 GB) of binary data into program memory via C++ memory-mapping (mmap) on Linux. My access pattern is sequential- I read from beginning to end, no random accesses.



    Would using a PCI-E SSD over a SATA SSD improve the latency? (I don't have one available to just test and find out).



    I guess this ultimately depends on how exactly does the memory-mapping works. I don't think memory-mapping loads the entire file into RAM, but merely allocates a set of virtual addresses and streams the pages as they are required? (If this is true, how is it any different from streaming IO?).



    If the pages are streamed, then I guess the answer depends on how quickly I process the data versus how quickly the bus can feed pages to the RAM? If my processing is slow, a PCI-E SSD would be pointless?










    share|improve this question

























      -1












      -1








      -1








      (Stackoverflow said to post this here)



      I read large files (3-10 GB) of binary data into program memory via C++ memory-mapping (mmap) on Linux. My access pattern is sequential- I read from beginning to end, no random accesses.



      Would using a PCI-E SSD over a SATA SSD improve the latency? (I don't have one available to just test and find out).



      I guess this ultimately depends on how exactly does the memory-mapping works. I don't think memory-mapping loads the entire file into RAM, but merely allocates a set of virtual addresses and streams the pages as they are required? (If this is true, how is it any different from streaming IO?).



      If the pages are streamed, then I guess the answer depends on how quickly I process the data versus how quickly the bus can feed pages to the RAM? If my processing is slow, a PCI-E SSD would be pointless?










      share|improve this question














      (Stackoverflow said to post this here)



      I read large files (3-10 GB) of binary data into program memory via C++ memory-mapping (mmap) on Linux. My access pattern is sequential- I read from beginning to end, no random accesses.



      Would using a PCI-E SSD over a SATA SSD improve the latency? (I don't have one available to just test and find out).



      I guess this ultimately depends on how exactly does the memory-mapping works. I don't think memory-mapping loads the entire file into RAM, but merely allocates a set of virtual addresses and streams the pages as they are required? (If this is true, how is it any different from streaming IO?).



      If the pages are streamed, then I guess the answer depends on how quickly I process the data versus how quickly the bus can feed pages to the RAM? If my processing is slow, a PCI-E SSD would be pointless?







      memory ssd performance operating-systems






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      user997112user997112

      10117




      10117






















          0






          active

          oldest

          votes












          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%2f1421843%2fis-reading-a-memory-mapped-file-sequentially-from-a-pci-e-ssd-faster-than-sata-s%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 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%2f1421843%2fis-reading-a-memory-mapped-file-sequentially-from-a-pci-e-ssd-faster-than-sata-s%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

          Cannot install PyQt5 The Next CEO of Stack OverflowCannot install tcpreplay 3.4.4cannot...

          Kapp-Putsch Acontecimentos | Outros artigos | Menu de navegação

          Why did early computer designers eschew integers? The Next CEO of Stack OverflowWhat register...