Memory management

Is it possible to request all memory from the operating system, and then almost "take control" of memory management and assign it to what other programs request? Or would this not be allowed by the OS? This is just a question out of curiosity.
A user space application can only ask for as much memory as the system will give it. This isn't necessarily all the available memory, and it could even be more, depending on what policies the system implements (e.g. COW allows an application to allocate basically infinite amounts of memory as long as it doesn't actually do anything with it).
Once that's out of the way, there are other problems. I actually was going to explain a couple of them, but I'm feeling lazy, so I'll just say that the idea of a user space memory manager is preposterous.
Lol ok, thanks!
Topic archived. No new replies allowed.