[parisc-linux] [[email protected]: arch changes for file-offset-in-pte's]
Quoted 1 line
FYI. jsm, any comments?
It doesn't appear to be a problem, since the bit comes out of the swap entry bits, not the "present" bits, which we don't have any more available (e.g. _PAGE_FILE can overload _PAGE_ACCESSED, since _PAGE_ACCESSED is only valid when _PAGE_PRESENT is set).
The main issue is whether to take the bit out of the swap offset or swap type. i386 went from 24 offset bits and 6 type bits to 24 offset bits and 5 type bits, i.e. they took the bit from the type field. We are currently at 25 offset bits and 5 type bits.
The offset bits control the maximum swap size for each swap device. The type bits control the number of possible swap devices. So, one possibility is to reduce the number of possible swap devices from 32 to 16, rather than decrease the maximum swap size. But, perhaps since limiting the maximum swap size would only really have an effect on the 32 bit kernel, perhaps it would better to leave the maximum number of swap devices at 32 and decrease the maximum swap size (i.e. the maximum swap size for a swap device would decrease from 128 Gb to 64 Gb for a 32 bit kernel). This would be the same as i386.
Another possibility would be to split out the SWP_TYPE, SWP_OFFSET and SWP_ENTRY macros in order to have a 32 bit kernel version and a 64 bit kernel version. Then we could go with 16 swap devices for the 32 bit kernel and even increase the number of swap devices for the 64 bit kernel, since we have a huge number of bits for the offset.
Any opinions?
John
Quoted 5 lines
Another possibility would be to split out the
SWP_TYPE,SWP_OFFSETandSWP_ENTRYmacros in order to have a 32 bit kernel version and a 64 bit kernel version. Then we could go with 16 swap devices for the 32 bit kernel and even increase the number of swap devices for the 64 bit kernel, since we have a huge number of bits for the offset.
My $0.02
a) Keep the swap size the same, and reduce the number of entries.
= Offers better compatiblity in most situations
b) Split the macro's, keeping the swap size the same, and increase the number of possible devices.
= Offers size consistency, and benefits to 64-bit kernels.
c.