Find the answer to your Linux question:
Results 1 to 10 of 10
Hi, System RAM is 128 MB. Process has occupied 97MB. When try to get Network IP using DHCP client, shows cannot allocate memory error, during system call. using VFork to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    5

    How to increase Process memory limit


    Hi,
    System RAM is 128 MB.
    Process has occupied 97MB.
    When try to get Network IP using DHCP client, shows cannot allocate memory error, during system call. using VFork to create child process. Provide solution.

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,356
    1) Are you talking about a SOHO router?
    2) If yes, how many clients are connected?
    3) Which process takes 97MByte?
    4) Is it reasonable for that process to take so much?
    You must always face the curtain with a bow.

  3. #3
    Just Joined!
    Join Date
    Aug 2011
    Posts
    5
    How use ulimit command for process? Is ulimit command is common for all processes?

  4. #4
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,356
    Code:
    man ulimit
    Please provide more information, answering the questions of #1 might be a start.
    You must always face the curtain with a bow.

  5. #5
    Just Joined!
    Join Date
    Aug 2011
    Posts
    5
    Parent process is consuming 97MB out of 128MB of memory. When I vfork() to create child process to get dynamic IP, vfork() fails with -1 and errono shows ENOMEM. vfork does not create the image of parent in memory. so that it must work. reply.

  6. #6
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,356
    Provide info :P

    There are probably more processes running, so that the 128MByte are exhausted.
    It is also possible, that your mysterious "process" does take more ram.
    Hence the oom problem.

    It looks like you need to either add ram or find a way to reduce the ram usage.
    Adding swap might be a third option, but is not prefered.
    You must always face the curtain with a bow.

  7. #7
    Just Joined!
    Join Date
    Aug 2011
    Posts
    5

    Out of Memory Problem

    Total RAM = 128MB in system.
    Process using 97MB. When vfork() system call is issued from this process. vfork returns -1 with errono = ENOMEM. I think Out of Memory Issue (oom). Is there any system call that manage this problem?

  8. #8
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,356
    No. Add ram, add swap or shrink that process.
    You must always face the curtain with a bow.

  9. #9
    Just Joined!
    Join Date
    Aug 2011
    Posts
    5

    Out of Memory Problem

    Quote Originally Posted by Irithori View Post
    No. Add ram, add swap or shrink that process.
    Can we increase RLIMIT of stack, virtual memory, data memory, no process, no of file etc... to solve out of memory problem? if yes how and where to change in kernel.

  10. #10
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    3,356
    Apart from that mysterious process, there are probably others, but at the very least the kernel.
    They all need ram as well.

    Look, what I am trying to say is :
    You *physically* have no resources.

    Fiddling with parameters is therefore futile.
    You must always face the curtain with a bow.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •