How a 64-bit process virtual address space is divided in Linux? The Next CEO of Stack OverflowLinux Kernel logical address space organisationhow is page size determined in virtual address space?Physical Address Extension - how do virtual addresses work?How can two identical virtual addresses point to different physical addresses?How does the CPU knows which physical address is mapped to which virtual address?how to get virtual address generated by a processHow can the Linux kernel address from 8 MB to 1 GB of virtual memory in x86 systemsDoes the isolation between virtual memory address spaces of different processes not apply to privileged process and to swap?Do the virtual address spaces of all the processes have the same content in their “Kernel” parts?Disabling virtual address space randomization for a linux kernel module

Is this "being" usage is essential?

Running a General Election and the European Elections together

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Should I tutor a student who I know has cheated on their homework?

How to place nodes around a circle from some initial angle?

Why, when going from special to general relativity, do we just replace partial derivatives with covariant derivatives?

Flying from Cape Town to England and return to another province

Is it possible to replace duplicates of a character with one character using tr

What does "Its cash flow is deeply negative" mean?

Why does standard notation not preserve intervals (visually)

Beveled cylinder cutout

Why is information "lost" when it got into a black hole?

Is there a difference between "Fahrstuhl" and "Aufzug"

INSERT to a table from a database to other (same SQL Server) using Dynamic SQL

What was the first Unix version to run on a microcomputer?

The exact meaning of 'Mom made me a sandwich'

How to invert MapIndexed on a ragged structure? How to construct a tree from rules?

How a 64-bit process virtual address space is divided in Linux?

I want to delete every two lines after 3rd lines in file contain very large number of lines :

Why is my new battery behaving weirdly?

How to avoid supervisors with prejudiced views?

Why doesn't UK go for the same deal Japan has with EU to resolve Brexit?

Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?

Why this way of making earth uninhabitable in Interstellar?



How a 64-bit process virtual address space is divided in Linux?



The Next CEO of Stack OverflowLinux Kernel logical address space organisationhow is page size determined in virtual address space?Physical Address Extension - how do virtual addresses work?How can two identical virtual addresses point to different physical addresses?How does the CPU knows which physical address is mapped to which virtual address?how to get virtual address generated by a processHow can the Linux kernel address from 8 MB to 1 GB of virtual memory in x86 systemsDoes the isolation between virtual memory address spaces of different processes not apply to privileged process and to swap?Do the virtual address spaces of all the processes have the same content in their “Kernel” parts?Disabling virtual address space randomization for a linux kernel module










6















The following image shows how a 32-bit process virtual address space is divided:



enter image description here



But how a 64-bit process virtual address space is divided?










share|improve this question


























    6















    The following image shows how a 32-bit process virtual address space is divided:



    enter image description here



    But how a 64-bit process virtual address space is divided?










    share|improve this question
























      6












      6








      6


      1






      The following image shows how a 32-bit process virtual address space is divided:



      enter image description here



      But how a 64-bit process virtual address space is divided?










      share|improve this question














      The following image shows how a 32-bit process virtual address space is divided:



      enter image description here



      But how a 64-bit process virtual address space is divided?







      linux






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 4 hours ago









      ChristopherChristopher

      1532




      1532




















          1 Answer
          1






          active

          oldest

          votes


















          5














          The 64-bit x86 virtual memory map splits the address space into two: the lower section (with the top bit set to 0) is user-space, the upper section (with the top bit set to 1) is kernel-space. (Note that x86-64 defines “canonical” “lower half” and “higher half” addresses, with a number of bits effectively limited to 48 or 56; see Wikipedia for details.)



          The complete map is documented in detail in the kernel; currently it looks like



          ===========================================================================================
          Start addr | Offset | End addr | Size | VM area description
          ===========================================================================================
          | | | |
          0000000000000000 | 0 | 00007fffffffffff | 128 TB | user-space virtual memory
          __________________|____________|__________________|_________|______________________________
          | | | |
          0000800000000000 | +128 TB | ffff7fffffffffff | ~16M TB | non-canonical
          __________________|____________|__________________|_________|______________________________
          | | | |
          ffff800000000000 | -128 TB | ffffffffffffffff | 128 TB | kernel-space virtual memory
          __________________|____________|__________________|_________|______________________________


          with 48-bit virtual addresses.



          Unlike the 32-bit case, the “64-bit” memory map is a direct reflection of hardware constraints.






          share|improve this answer

























          • To clarify: this limitation is imposed by the hardware. There is currently no 64-bit processor implementation that doesn't leave a huge hole of unusable addresses in the middle of the virtual address space. The amount of physical memory the CPUs are able to address is also way below 2 to the power of 64.

            – Johan Myréen
            3 hours ago











          • Thanks @Johan, I’ve tried to highlight this.

            – Stephen Kitt
            2 hours ago











          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%2f509607%2fhow-a-64-bit-process-virtual-address-space-is-divided-in-linux%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









          5














          The 64-bit x86 virtual memory map splits the address space into two: the lower section (with the top bit set to 0) is user-space, the upper section (with the top bit set to 1) is kernel-space. (Note that x86-64 defines “canonical” “lower half” and “higher half” addresses, with a number of bits effectively limited to 48 or 56; see Wikipedia for details.)



          The complete map is documented in detail in the kernel; currently it looks like



          ===========================================================================================
          Start addr | Offset | End addr | Size | VM area description
          ===========================================================================================
          | | | |
          0000000000000000 | 0 | 00007fffffffffff | 128 TB | user-space virtual memory
          __________________|____________|__________________|_________|______________________________
          | | | |
          0000800000000000 | +128 TB | ffff7fffffffffff | ~16M TB | non-canonical
          __________________|____________|__________________|_________|______________________________
          | | | |
          ffff800000000000 | -128 TB | ffffffffffffffff | 128 TB | kernel-space virtual memory
          __________________|____________|__________________|_________|______________________________


          with 48-bit virtual addresses.



          Unlike the 32-bit case, the “64-bit” memory map is a direct reflection of hardware constraints.






          share|improve this answer

























          • To clarify: this limitation is imposed by the hardware. There is currently no 64-bit processor implementation that doesn't leave a huge hole of unusable addresses in the middle of the virtual address space. The amount of physical memory the CPUs are able to address is also way below 2 to the power of 64.

            – Johan Myréen
            3 hours ago











          • Thanks @Johan, I’ve tried to highlight this.

            – Stephen Kitt
            2 hours ago















          5














          The 64-bit x86 virtual memory map splits the address space into two: the lower section (with the top bit set to 0) is user-space, the upper section (with the top bit set to 1) is kernel-space. (Note that x86-64 defines “canonical” “lower half” and “higher half” addresses, with a number of bits effectively limited to 48 or 56; see Wikipedia for details.)



          The complete map is documented in detail in the kernel; currently it looks like



          ===========================================================================================
          Start addr | Offset | End addr | Size | VM area description
          ===========================================================================================
          | | | |
          0000000000000000 | 0 | 00007fffffffffff | 128 TB | user-space virtual memory
          __________________|____________|__________________|_________|______________________________
          | | | |
          0000800000000000 | +128 TB | ffff7fffffffffff | ~16M TB | non-canonical
          __________________|____________|__________________|_________|______________________________
          | | | |
          ffff800000000000 | -128 TB | ffffffffffffffff | 128 TB | kernel-space virtual memory
          __________________|____________|__________________|_________|______________________________


          with 48-bit virtual addresses.



          Unlike the 32-bit case, the “64-bit” memory map is a direct reflection of hardware constraints.






          share|improve this answer

























          • To clarify: this limitation is imposed by the hardware. There is currently no 64-bit processor implementation that doesn't leave a huge hole of unusable addresses in the middle of the virtual address space. The amount of physical memory the CPUs are able to address is also way below 2 to the power of 64.

            – Johan Myréen
            3 hours ago











          • Thanks @Johan, I’ve tried to highlight this.

            – Stephen Kitt
            2 hours ago













          5












          5








          5







          The 64-bit x86 virtual memory map splits the address space into two: the lower section (with the top bit set to 0) is user-space, the upper section (with the top bit set to 1) is kernel-space. (Note that x86-64 defines “canonical” “lower half” and “higher half” addresses, with a number of bits effectively limited to 48 or 56; see Wikipedia for details.)



          The complete map is documented in detail in the kernel; currently it looks like



          ===========================================================================================
          Start addr | Offset | End addr | Size | VM area description
          ===========================================================================================
          | | | |
          0000000000000000 | 0 | 00007fffffffffff | 128 TB | user-space virtual memory
          __________________|____________|__________________|_________|______________________________
          | | | |
          0000800000000000 | +128 TB | ffff7fffffffffff | ~16M TB | non-canonical
          __________________|____________|__________________|_________|______________________________
          | | | |
          ffff800000000000 | -128 TB | ffffffffffffffff | 128 TB | kernel-space virtual memory
          __________________|____________|__________________|_________|______________________________


          with 48-bit virtual addresses.



          Unlike the 32-bit case, the “64-bit” memory map is a direct reflection of hardware constraints.






          share|improve this answer















          The 64-bit x86 virtual memory map splits the address space into two: the lower section (with the top bit set to 0) is user-space, the upper section (with the top bit set to 1) is kernel-space. (Note that x86-64 defines “canonical” “lower half” and “higher half” addresses, with a number of bits effectively limited to 48 or 56; see Wikipedia for details.)



          The complete map is documented in detail in the kernel; currently it looks like



          ===========================================================================================
          Start addr | Offset | End addr | Size | VM area description
          ===========================================================================================
          | | | |
          0000000000000000 | 0 | 00007fffffffffff | 128 TB | user-space virtual memory
          __________________|____________|__________________|_________|______________________________
          | | | |
          0000800000000000 | +128 TB | ffff7fffffffffff | ~16M TB | non-canonical
          __________________|____________|__________________|_________|______________________________
          | | | |
          ffff800000000000 | -128 TB | ffffffffffffffff | 128 TB | kernel-space virtual memory
          __________________|____________|__________________|_________|______________________________


          with 48-bit virtual addresses.



          Unlike the 32-bit case, the “64-bit” memory map is a direct reflection of hardware constraints.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 2 hours ago

























          answered 4 hours ago









          Stephen KittStephen Kitt

          179k24406484




          179k24406484












          • To clarify: this limitation is imposed by the hardware. There is currently no 64-bit processor implementation that doesn't leave a huge hole of unusable addresses in the middle of the virtual address space. The amount of physical memory the CPUs are able to address is also way below 2 to the power of 64.

            – Johan Myréen
            3 hours ago











          • Thanks @Johan, I’ve tried to highlight this.

            – Stephen Kitt
            2 hours ago

















          • To clarify: this limitation is imposed by the hardware. There is currently no 64-bit processor implementation that doesn't leave a huge hole of unusable addresses in the middle of the virtual address space. The amount of physical memory the CPUs are able to address is also way below 2 to the power of 64.

            – Johan Myréen
            3 hours ago











          • Thanks @Johan, I’ve tried to highlight this.

            – Stephen Kitt
            2 hours ago
















          To clarify: this limitation is imposed by the hardware. There is currently no 64-bit processor implementation that doesn't leave a huge hole of unusable addresses in the middle of the virtual address space. The amount of physical memory the CPUs are able to address is also way below 2 to the power of 64.

          – Johan Myréen
          3 hours ago





          To clarify: this limitation is imposed by the hardware. There is currently no 64-bit processor implementation that doesn't leave a huge hole of unusable addresses in the middle of the virtual address space. The amount of physical memory the CPUs are able to address is also way below 2 to the power of 64.

          – Johan Myréen
          3 hours ago













          Thanks @Johan, I’ve tried to highlight this.

          – Stephen Kitt
          2 hours ago





          Thanks @Johan, I’ve tried to highlight this.

          – Stephen Kitt
          2 hours ago

















          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%2f509607%2fhow-a-64-bit-process-virtual-address-space-is-divided-in-linux%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

          acmart: Multiple authors: all with same affiliation, one author an additional affiliationHow to Write Names of Multiple Authors with Shared Affiliation in ACM 2017 Template?Multiple authors with different primary affiliation, but same additional affiliationSame affiliation for all authors without extra packagesIOS-Book-Article.cls: one author with multiple affiliationacmart: Shared Author AffiliationMultiple authors with different primary affiliation, but same additional affiliationAuthor affiliation with only 1 authorAdding Multiple Authors with Different Affiliation in LaTeX ArticleLaTeX: Multiple authors stays on same lineHow to Label Multiple Authors with Same DescriptionHow to make two authors use the same affiliationTwo authors with same affiliation on finished front page

          How to write “ä” and other umlauts and accented letters in bibliography?Accents in BibTeXSorting references with special characters alphabeticallyUse ae ligature in bibliographyEastern European nameInverted circumflex in BibTexBibTex, non-ascii initials and nameptr fproblems with accent in LatexHow to add a Ø to my bibliography from Jabref?References without accentsTroubles when trying to cite St“omer-Verlet in ”title" field of a bib entryComprehensive list of accented charactersHow to type the letter “i” with two dots (diaeresis) in math mode?Problem with glossary text and accented lettersSpecial character in bibliographyAccented letters, Unicode and LaTeX accentsHow to stop natbib from modifying bibliography styleCitation of a paper with non-standard characters by BibtexWrite accented characters to file using writeHow to group the bibliography alphabetically, if some surnames start with “accented” characters?How can I automatically capitalize significant words in my bibliography?

          Problem using RevTeX4-1 with “! Undefined control sequence. @bibitemShut”