Virtual memory address space

From: Andrei Voropaev (avorop_at_mail.ru)
Date: 10/15/04

  • Next message: Kasper Dupont: "Re: Virtual memory address space"
    Date: 15 Oct 2004 11:50:25 GMT
    
    

    Hello!

    After reading thru the books and asking others I know that a user space
    process under Linux on 32 bit system can address only first 3G of space.
    (In default configuration).

    Now. I have a multithreaded application that does a lot of mmaps
    (approximately 2G). In the /proc/<pid>/status I see

    VmSize: 2241348 kB
    VmLck: 0 kB
    VmRSS: 149136 kB
    VmData: 326436 kB
    VmStk: 528 kB
    VmExe: 576 kB
    VmLib: 7252 kB

    This application can't create any more threads. pthread_create returns
    EAGAIN. What could be the reason for that? I have 2G of RAM with 1G of
    swap. Swap is not used at all. 2.4 Kernel is compiled with HIMEM option.

    Basically I don't understand what happened to the 800M of addresses that
    I should be able to use?

    Andrei


  • Next message: Kasper Dupont: "Re: Virtual memory address space"

    Relevant Pages

    • Re: Do I need kswapd if I dont have swap?
      ... AFAIK 2.4 has no callpath to return ENOMEM to user space. ... actually why Linux has problems with disk cache and disk cache can ... easily swap the task doing i/o. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: finding out the value of HZ from userspace
      ... >> of user space programs assume that HZ is 100 would NOT be ... If you have a recent glibc on a recent kernel, ... For Linux 2.4.xx and up, ...
      (Linux-Kernel)
    • Re: [SLE] http://www.kernel.org/ any good?
      ... >> User space applications won't see a big difference of course, ... > That is one of the nicest things that can be said of Linux... ... my Mom isn't a computer person and I installed SUSE for her one day. ... that only had Windows points, so I had to erase it and install Windows ...
      (SuSE)
    • Re: Cant X be elemenated?
      ... | I read your reply to a person worried about the future of linux. ... | I mean to say kernel level support for graphics device drivers and special ... | routines for accessing it directly; rest will be done by user space widget ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: FS impl.
      ... >> environment would dramatically shorten the panic and reboot cycle. ... NetBSD support for acting as the control plane is supposed ... > NetBSD and linux so far). ... > user space more difficult due to extra functionality that would need to ...
      (freebsd-hackers)