Virtual address space exhaustion (was Discontigmem virt_to_page() )
Quoted 3 lines · Richard B. Johnson
One of the Unix characteristics is that the kernel address space is shared with each of the process address space.
This hasn't been an absolute requirement. There have been 32-bit Unix implementations that gave separate 4G address spaces to the kernel and to each user process. The only real downside to this is that copyin()/copyout() are more complex. Some processors provided special instructions to access user-mode addresses from kernel to mitigate this complexity.
-Tony
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
Quoted 13 lines · Tony Luck
Quoted 3 lines · Richard B. Johnson
One of the Unix characteristics is that the kernel address space is shared with each of the process address space.
This hasn't been an absolute requirement. There have been 32-bit Unix implementations that gave separate 4G address spaces to the kernel and to each user process. The only real downside to this is that copyin()/copyout() are more complex. Some processors provided special instructions to access user-mode addresses from kernel to mitigate this complexity.
Quoted 2 lines
-Tony
Really? The only 32-bit Unix's I've seen the details of are SCO Unix, Interactive Unix, Linux, and BSD Unix. The other Unix's I've become familiar are Sun-OS, the original AT&T(Unix System Labs)/SYS-V and DEC Ultrix. All these Unix's share user address-space with kernel address-space. This is supposed to be the very thing that makes Unix different from other VMS/timeshare Operating Systems.
I think that if this shared address-space doesn't exist then you don't have "Unix". You have something (perhaps better), but it's not Unix. For instance VAX/VMS doesn't share address space. In fact, the VAX/VMS kernel is, itself, a process. This means it has its own context. This can be quite useful.
Would you please tell me what Unix has 32-bit address space which is not shared with the kernel?
Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
Windows-2000/Professional isn't.
Quoted 1 line · Richard B. Johnson
The other Unix's I've become familiar are Sun-OS, the
SunOS 5 uses separate address spaces on sparcv9 (32 and 64bit). The same is true for many Linux ports, e.g. sparc64 or s390.
Quoted 6 lines · Christoph Hellwig
Quoted 1 line · Richard B. Johnson
The other Unix's I've become familiar are Sun-OS, the
SunOS 5 uses separate address spaces on sparcv9 (32 and 64bit). The same is true for many Linux ports, e.g. sparc64 or s390.
No no! I'm not talking about the physical address spaces. Many CPUs have separate address spaces for separate functions. I'm taking about the virtual address space that the process sees. There are no holes in this virtual address space of SunOS, and no "separate stuff" (I/O space) seen by a user-mode task.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
Windows-2000/Professional isn't.
Quoted 2 lines · [email protected] said:
Would you please tell me what Unix has 32-bit address space which is not shared with the kernel?
I'm planning on doing that with UML at some point.
The claim that it's not Unix if it doesn't share the process address space is just stupid.
Jeff
Quoted 9 lines · Richard B. Johnson
Quoted 6 lines · Christoph Hellwig
Quoted 1 line · Richard B. Johnson
The other Unix's I've become familiar are Sun-OS, the
SunOS 5 uses separate address spaces on sparcv9 (32 and 64bit). The same is true for many Linux ports, e.g. sparc64 or s390.
Quoted 5 lines
No no! I'm not talking about the physical address spaces. Many CPUs have separate address spaces for separate functions. I'm taking about the virtual address space that the process sees. There are no holes in this virtual address space of SunOS, and no "separate stuff" (I/O space) seen by a user-mode task.
This thread was about separate user/kernel VIRTUAL address spaces. Not about holes, I/O spaces or other crap.
Quoted 9 lines · Jeff Dike
Quoted 2 lines · [email protected] said:
Would you please tell me what Unix has 32-bit address space which is not shared with the kernel?
I'm planning on doing that with UML at some point.
The claim that it's not Unix if it doesn't share the process address space is just stupid.
No. It's not stupid. Unix defines a kind of operating system that has certain characteristics and/or attributes. Process/kernel shared address space is one of them. It's a name that has historical signifigance.
Linux does not have to be Unix. In fact, divorcing virtual address space may make a better Operating System and it's good that somebody it planning that. But the result will not be the 25-30 year old architecture we call Unix. It will be Linux. And it just might be the thing that makes Linux shine above others, so don't call this difference stupid.
Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
Windows-2000/Professional isn't.
On Fri, May 03, 2002 at 03:01:48PM -0400, Richard B. Johnson wrote:
...
Quoted 8 lines
Quoted 8 lines
This hasn't been an absolute requirement. There have been 32-bit Unix implementations that gave separate 4G address spaces to the kernel and to each user process. The only real downside to this is that copyin()/copyout() are more complex. Some processors provided special instructions to access user-mode addresses from kernel to mitigate this complexity.
Quoted 4 lines
Quoted 1 line
-Tony
Really? The only 32-bit Unix's I've seen the details of are SCO Unix, Interactive Unix, Linux, and BSD Unix.
An example of hardware with fully separable user/kernel spaces are Motorola 68020-68060 series processors.
They have those special instructions to choose (in kernel mode) what address spaces to use at which data access phase of the special moves. There is some speed penalty, of course..
...
Quoted 2 lines
Would you please tell me what Unix has 32-bit address space which is not shared with the kernel?
That could be the one called "Linux", if a bunch of conditions are met -- beginning with suitable hardware.
Quoted 3 lines
Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
/Matti Aarnio
--- "Richard B. Johnson" <[email protected]>
Quoted 6 lines · wrote:
I think that if this shared address-space doesn't
exist
then you don't have "Unix". You have something
(perhaps
better), but it's not Unix.
Looking back a little earlier in the history of Unix, we see that early versions ran on 16-bit architectures. Does anyone out there remember Version 6 on the pdp11. It most certainly did not share the address space (all 64k of it) between user and kernel. Are you trying to say that what Dennis and Ken wrote is not "Unix"?
-Tony
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
Quoted 4 lines
No. It's not stupid. Unix defines a kind of operating system that has certain characteristics and/or attributes. Process/kernel shared address space is one of them. It's a name that has historical signifigance.
Yes it is stupid. This is a small implementation detail, and has no real importance whatsoever. People have done this in the past (Dynix/PTX did it) will do so in the future. Nor does the kernel address space have to be global and shared across all tasks as stated earlier in this thread. What makes it Unix is the interface it presents to the world, and how it behaves, not the little details of how it's implemented inside.
M.
PS. I've been told Solaris x86 can do 4Gb for each of kernel and user space, though I've no first hand experience with that OS.
Quoted 5 lines · Martin J. Bligh
Quoted 4 lines
No. It's not stupid. Unix defines a kind of operating system that has certain characteristics and/or attributes. Process/kernel shared address space is one of them. It's a name that has historical signifigance.
Quoted 7 lines
Yes it is stupid. This is a small implementation detail, and has no real importance whatsoever. People have done this in the past (Dynix/PTX did it) will do so in the future. Nor does the kernel address space have to be global and shared across all tasks as stated earlier in this thread. What makes it Unix is the interface it presents to the world, and how it behaves, not the little details of how it's implemented inside.
I'm curious where it is visible to userspace?
(I'm asking for educational purposes)
--
vda
Quoted 14 lines · Martin J. Bligh
Quoted 5 lines
Quoted 4 lines
No. It's not stupid. Unix defines a kind of operating system that has certain characteristics and/or attributes. Process/kernel shared address space is one of them. It's a name that has historical signifigance.
Quoted 7 lines
Yes it is stupid. This is a small implementation detail, and has no real importance whatsoever. People have done this in the past (Dynix/PTX did it) will do so in the future. Nor does the kernel address space have to be global and shared across all tasks as stated earlier in this thread. What makes it Unix is the interface it presents to the world, and how it behaves, not the little details of how it's implemented inside.
Quoted 2 lines
I'm curious where it is visible to userspace?
(I'm asking for educational purposes)
Where what is visible to userspace? If you mean the bit about "the interface it presents to the world", I meant Linux in general, not this feature. The whole point is that this is invisble to userspace (apart from performance and a lack of architectural restrictions you might have been expecting) therefore it's irrelevant to whether it's "Unix" like or not.
M.
Hi!
Quoted 12 lines
Quoted 4 lines
Quoted 3 lines
One of the Unix characteristics is that the kernel address space is shared with each of the process address space.
Quoted 8 lines
This hasn't been an absolute requirement. There have been 32-bit Unix implementations that gave separate 4G address spaces to the kernel and to each user process. The only real downside to this is that copyin()/copyout() are more complex. Some processors provided special instructions to access user-mode addresses from kernel to mitigate this complexity.
Quoted 6 lines
Really? The only 32-bit Unix's I've seen the details of are SCO Unix, Interactive Unix, Linux, and BSD Unix. The other Unix's I've become familiar are Sun-OS, the original AT&T(Unix System Labs)/SYS-V and DEC Ultrix. All these Unix's share user address-space with kernel address-space. This is supposed to be the very thing
Remember userspace being accessed through fs: in linux-2.0 days?
That counts as separate address space to me...
Pavel
Signature · 2 lines
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt, details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.