On Mon, 1 Jul 2024 21:34:42 +0000
mitchalsup@aol.com (MitchAlsup1) wrote:
Michael S wrote:
On Mon, 1 Jul 2024 02:10:43 -0000 (UTC)
John Levine <johnl@taugh.com> wrote:
According to MitchAlsup1 <mitchalsup@aol.com>:
In fact, you can ftruncate arbitrarily large at the start -
backing sectors for the mapped pages will only be allocated
when a page is referenced for the first time.
>
Can you ftruncate( 0x7FFFFFFFFFFFFFFFF ); ?? ½ of the address
space
>
Every filesystem has a maximum file size. Exceed that and you'll
get an EFBIG error.
>
Then it is not capable of ftruncate arbitrarily large in a
hardware's view of arbitrarily large which tends to be 1-bit
smaller than the largest container.
>
The goal here is to map a file into the address space. What's your
use case for mapping a file-like thing that is bigger than any
real file and can't be written out to the disk?
>
Consider that configurations in which maximal file size is bigger
than half of address space are quite common. And not just on 32-bit
HW.
>
Of course, what is considered "half of address space" is not a very
simple question by itself. Take x86-64. Is its address space 2**64
or 2*48? Take aarch64. Is its address space 2**64 or 2**49? Or, may
be, 2**56?
To answer this one has to use the proper verbology::
Half the virtual address space of x86-64 is 63-bits
I am not sure.
New Intel Manual say:
4.5
4-LEVEL PAGING AND 5-LEVEL PAGING
Because the operation of 4-level paging and 5-level paging is very
similar, they are described together in this section. The following
items highlight the distinctions between the two paging modes:
• A logical processor uses 4-level paging if CR0.PG = 1, CR4.PAE = 1,
IA32_EFER.LME = 1, and CR4.LA57 = 0.
4-level paging translates 48-bit linear addresses to 52-bit physical
addresses.(1) Although 52 bits corresponds to 4 PBytes, linear
addresses are limited to 48 bits; at most 256 TBytes of linear-address
space may be accessed at any given time.
•
A logical processor uses 5-level paging if CR0.PG = 1, CR4.PAE = 1,
IA32_EFER.LME = 1, and CR4.LA57 = 1.
5-level paging translates 57-bit linear addresses to 52-bit physical
addresses. Thus, 5-level paging supports a linear-address space
sufficient to access the entire physical-address space.
(1) - If MAXPHYADDR < 52, bits in the range 51:MAXPHYADDR will be 0 in
any physical address used by 4-level paging. (The corresponding bits
are reserved in the paging-structure entries.) See Section 4.1.4 for
how to determine MAXPHYADDR.
To me it sounds like 57-bit virtual address space rather than 64-bit.
Old Intel Manual says.
3.4.1
Logical Address Translation in IA-32e Mode
In IA-32e mode, an Intel 64 processor uses the steps described above to
translate a logical address to a linear address. In 64-bit mode, the
offset and base address of the segment are 64-bits instead of 32 bits.
The linear address format is also 64 bits wide and is subject to the
canonical form requirement.
4.1.1 Three Paging Modes
<snip>
64-bit mode. While this mode produces 64-bit linear addresses, the
processor ensures that bits 63:47 of such an address are identical.(1)
4-level paging does not use bits 63:48 of such addresses.
<snip>
(1) - Such an address is called canonical. Use of a non-canonical
linear address in 64-bit mode produces a general-protection exception
(#GP(0)); the processor does not attempt to translate non-canonical
linear addresses using 4-level paging.
To me it sounds like 48-bit virtual address space rather than 64-bit.
Half the physical address space is as low as 38-bits and as high as
47-bits
depending on the implementation (i.e., age)
>
Indeed for the very long time the limit was 47 bits, which in practice
meant that main memory address was at most 46 bits (64 TB).
But 4th gen AMD EPYC white paper claims 57 bit:
AMD SECURE NESTED PAGING (SEV-SNP)* introduced in 3rd Gen AMD EPYC
processors, builds on SEV and SEV-ES by adding strong encryption to
virtual machine nested page tables to help prevent attacks such as data
replay, memory remapping, and more—all with the goal to create
confidential, isolated execution environments for virtual machines�
With the 57-bit physical memory enabled by 4th Gen AMD EPYC processors,
we have increased the page table depth that can be encrypted to five
levels�
Considering that AMD uses the same 5-level paging tables as Intel
that, according to Intel, supports only 52 physical bits, I don't know
what to make of it.
Anyway, all this huge physical address spaces are predicated on success
of CXL-mem, which most likely would not happen.
With "normal" memory AMD EPYC4 can access at most 12 TB. Intel Sapphire
Rapids in 8S configuration can access 32 TB, but newer Emerald Rapids
supports at most 2 SMP sockets == 8TB.
For more than decade it looks like big SMP is a dying breed. Only IBM z
is still growing # dies per SMP domain. The rest of them are on the
opposite trail - they could occasionally grow # of dies per package,
but # of packages per SMP domains is shrinking and the day when even
dual-socket SMP is abandoned by x86-64, ARM and POWER server vendors
appears rather close.
This is one of those situations where the physical realm overrules the
virtual realm.
Date | Sujet | # | | Auteur |
20 Jun 24 | ARM is channeling the IBM 360 | 102 | | John Savard |
20 Jun 24 | Re: ARM is sort of channeling the IBM 360 | 95 | | John Levine |
21 Jun 24 | Re: ARM is sort of channeling the IBM 360 | 94 | | Lynn Wheeler |
24 Jun 24 | Re: ARM is sort of channeling the IBM 360 | 93 | | Lawrence D'Oliveiro |
24 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 90 | | John Levine |
24 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 87 | | Lynn Wheeler |
24 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 82 | | Lawrence D'Oliveiro |
25 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 81 | | John Levine |
25 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 73 | | Lawrence D'Oliveiro |
25 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 72 | | Stephen Fuld |
25 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 64 | | Stephen Fuld |
26 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 63 | | Stephen Fuld |
26 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 62 | | Lawrence D'Oliveiro |
26 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 57 | | John Levine |
26 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 56 | | Lawrence D'Oliveiro |
27 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 55 | | John Levine |
27 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 54 | | MitchAlsup1 |
28 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 53 | | Lawrence D'Oliveiro |
28 Jun 24 | Re: TSS I/O, ancient OS history | 1 | | John Levine |
28 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 51 | | MitchAlsup1 |
28 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 50 | | Lawrence D'Oliveiro |
29 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 49 | | Stephen Fuld |
29 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 48 | | John Levine |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 32 | | Lawrence D'Oliveiro |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | MitchAlsup1 |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 30 | | Stephen Fuld |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 24 | | Lawrence D'Oliveiro |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 22 | | Lynn Wheeler |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 21 | | John Dallman |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 19 | | Thomas Koenig |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 8 | | Michael S |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 6 | | Thomas Koenig |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 4 | | Stephen Fuld |
30 Jun 24 | Re: base registers, ancient OS history, ARM is sort of channeling the IBM 360 | 3 | | John Levine |
1 Jul 24 | Re: base registers, ancient OS history, ARM is sort of channeling the IBM 360 | 2 | | Lawrence D'Oliveiro |
1 Jul 24 | Re: base registers, ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | John Levine |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | MitchAlsup1 |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | MitchAlsup1 |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 10 | | John Dallman |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | MitchAlsup1 |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 8 | | Stephen Fuld |
30 Jun 24 | Re: small old machines, ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | John Levine |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 4 | | John Dallman |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 2 | | Stephen Fuld |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | John Dallman |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | Lynn Wheeler |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 2 | | MitchAlsup1 |
1 Jul 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | moi |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | Lynn Wheeler |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | Stephen Fuld |
1 Jul 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 5 | | Lawrence D'Oliveiro |
2 Jul 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 4 | | John Levine |
2 Jul 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 3 | | Lawrence D'Oliveiro |
2 Jul 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 2 | | John Levine |
2 Jul 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | Dan Cross |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 15 | | Anton Ertl |
30 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 14 | | Anton Ertl |
30 Jun 24 | Re: streams and file locks, ancient OS history, ARM is sort of channeling the IBM 360 | 13 | | John Levine |
1 Jul 24 | Re: streams and file locks, ancient OS history, ARM is sort of channeling the IBM 360 | 10 | | MitchAlsup1 |
1 Jul 24 | Re: streams and file locks, ancient OS history, ARM is sort of channeling | 9 | | John Levine |
1 Jul 24 | Re: streams and file locks, ancient OS history, ARM is sort of channeling | 8 | | MitchAlsup1 |
1 Jul 24 | Re: streams and file locks, ancient OS history, ARM is sort of channeling | 7 | | John Levine |
1 Jul 24 | Re: streams and file locks, ancient OS history, ARM is sort of channeling | 2 | | Lawrence D'Oliveiro |
1 Jul 24 | Re: streams and file locks, ancient OS history, ARM is sort of channeling | 1 | | John Levine |
1 Jul 24 | Re: streams and file locks, ancient OS history, ARM is sort of channeling | 4 | | Michael S |
1 Jul 24 | Re: streams and file locks, ancient OS history, ARM is sort of channeling | 3 | | MitchAlsup1 |
2 Jul 24 | Re: streams and file locks, ancient OS history, ARM is sort of channeling | 1 | | Michael S |
2 Jul 24 | Re: streams and file locks, ancient OS history, ARM is sort of channeling | 1 | | Michael S |
1 Jul 24 | Re: streams and file locks, ancient OS history, ARM is sort of channeling the IBM 360 | 2 | | Lawrence D'Oliveiro |
1 Jul 24 | Re: streams and file locks, ancient OS history | 1 | | John Levine |
26 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 4 | | Stephen Fuld |
26 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 2 | | John Levine |
26 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | Stephen Fuld |
27 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | MitchAlsup1 |
26 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 7 | | John Levine |
26 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 6 | | John Levine |
27 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 5 | | Thomas Koenig |
27 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 4 | | John Levine |
27 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | Thomas Koenig |
28 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | Lawrence D'Oliveiro |
28 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | Lawrence D'Oliveiro |
25 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 6 | | Terje Mathisen |
25 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 2 | | Lawrence D'Oliveiro |
25 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | Terje Mathisen |
25 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 3 | | Michael S |
26 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 2 | | Michael S |
26 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | Terje Mathisen |
25 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | Lynn Wheeler |
24 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 4 | | Terje Mathisen |
24 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 2 | | Lawrence D'Oliveiro |
24 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | Stephen Fuld |
24 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | Thomas Koenig |
24 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 2 | | Thomas Koenig |
24 Jun 24 | Re: ancient OS history, ARM is sort of channeling the IBM 360 | 1 | | Lawrence D'Oliveiro |
24 Jun 24 | Re: ARM is sort of channeling the IBM 360 | 2 | | Stephen Fuld |
24 Jun 24 | Re: ARM is sort of channeling the IBM 360 | 1 | | Stephen Fuld |
20 Jun 24 | Re: ARM is channeling the IBM 360 | 2 | | moi |
24 Jun 24 | Re: ARM is channeling the IBM 360 | 1 | | Lawrence D'Oliveiro |
21 Jun 24 | Re: ARM is channeling the IBM 360 | 4 | | MitchAlsup1 |
22 Jun 24 | Re: ARM is channeling the IBM 360 | 3 | | John Dallman |
22 Jun 24 | Re: ARM is channeling the IBM 360 | 1 | | MitchAlsup1 |
22 Jun 24 | Re: ARM is channeling the IBM 360 | 1 | | BGB |