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

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

Would a completely good Muggle be able to use a wand?

Is it ever safe to open a suspicious HTML file (e.g. email attachment)?

Some questions about different axiomatic systems for neighbourhoods

Powershell. How to parse gci Name?

Newlines in BSD sed vs gsed

Is it professional to write unrelated content in an almost-empty email?

Why is my new battery behaving weirdly?

Rotate a column

Does soap repel water?

How many extra stops do monopods offer for tele photographs?

Would a grinding machine be a simple and workable propulsion system for an interplanetary spacecraft?

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

Would be okay to drive on this tire?

Easy to read palindrome checker

A Man With a Stainless Steel Endoskeleton (like The Terminator) Fighting Cloaked Aliens Only He Can See

What flight has the highest ratio of time difference to flight time?

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

is it ok to reduce charging current for li ion 18650 battery?

Need help understanding a power circuit (caps and diodes)

Proper way to express "He disappeared them"

How to sed chunks text from a stream of files from find

Which one is the true statement?

Is there always a complete, orthogonal set of unitary matrices?



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 6 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
            4 hours ago











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

            – Stephen Kitt
            4 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
            4 hours ago











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

            – Stephen Kitt
            4 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
            4 hours ago











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

            – Stephen Kitt
            4 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 4 hours ago

























          answered 5 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
            4 hours ago











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

            – Stephen Kitt
            4 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
            4 hours ago











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

            – Stephen Kitt
            4 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
          4 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
          4 hours ago













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

          – Stephen Kitt
          4 hours ago





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

          – Stephen Kitt
          4 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

          How to create a command for the “strange m” symbol in latex? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)How do you make your own symbol when Detexify fails?Writing bold small caps with mathpazo packageplus-minus symbol with parenthesis around the minus signGreek character in Beamer document titleHow to create dashed right arrow over symbol?Currency symbol: Turkish LiraDouble prec as a single symbol?Plus Sign Too Big; How to Call adfbullet?Is there a TeX macro for three-legged pi?How do I get my integral-like symbol to align like the integral?How to selectively substitute a letter with another symbol representing the same letterHow do I generate a less than symbol and vertical bar that are the same height?

          Българска екзархия Съдържание История | Български екзарси | Вижте също | Външни препратки | Литература | Бележки | НавигацияУстав за управлението на българската екзархия. Цариград, 1870Слово на Ловешкия митрополит Иларион при откриването на Българския народен събор в Цариград на 23. II. 1870 г.Българската правда и гръцката кривда. От С. М. (= Софийски Мелетий). Цариград, 1872Предстоятели на Българската екзархияПодмененият ВеликденИнформационна агенция „Фокус“Димитър Ризов. Българите в техните исторически, етнографически и политически граници (Атлас съдържащ 40 карти). Berlin, Königliche Hoflithographie, Hof-Buch- und -Steindruckerei Wilhelm Greve, 1917Report of the International Commission to Inquire into the Causes and Conduct of the Balkan Wars

          Category:Tremithousa Media in category "Tremithousa"Navigation menuUpload media34° 49′ 02.7″ N, 32° 26′ 37.32″ EOpenStreetMapGoogle EarthProximityramaReasonatorScholiaStatisticsWikiShootMe