Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 15
I can't seem to find the answer to this anywhere. been googling and searched this forum with no luck. I posted on backtrack forum which is based off of ubuntu ...
  1. #1
    Just Joined!
    Join Date
    Sep 2011
    Posts
    8

    restrict memory usuage of process

    I can't seem to find the answer to this anywhere. been googling and searched this forum with no luck. I posted on backtrack forum which is based off of ubuntu and no luck.. I have this windows program that I have running on wine and it's eating up all my memory when I run it .. I need to use it for a class. Can I limit the amount of memory it uses..I tried ulimit -v and so others but seems like program just ignores it.any ideas..is it possible to limit user process..BTW im running as root...

  2. #2
    Just Joined! jippie's Avatar
    Join Date
    May 2006
    Location
    Eindhoven, the Netherlands
    Posts
    76
    Stop running the process as root. Root has access to all system resources including memory.
    Check the manual page on ( man limits.conf) /etc/security/limits.conf if it has something useful

  3. #3
    Linux Guru Irithori's Avatar
    Join Date
    May 2009
    Location
    Munich
    Posts
    2,102
    Additionally:
    If this app *needs* so much memory (btw: how much and how did you measure it?) and you introduce a limit, then it will probably crash.
    Is it a requirement to run exactly this app? Maybe there is a native linux alternative.
    You must always face the curtain with a bow.

  4. #4
    Just Joined!
    Join Date
    Sep 2011
    Posts
    8
    Well, I used it running the real -m command and top command.. I was able to use cgroups to restrict it but the program still seems to hang..It's for this ethical hacking course I'm taking and it just bothers me because according to Prof other students are not having an issue with it..It's running on Backtrack linux and the program is running in wine ..the program is called FOCA which runs only on windows..I'm stumped..Just not sure why other students are not having issues and I am..

  5. #5
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,977
    Are the other students also running it under Wine/Linux, or are they running it natively on Windows?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #6
    Just Joined!
    Join Date
    Sep 2011
    Posts
    8
    well, no way for me to confirm but they are suppose to be running in wine just like I am. So I'm going under the assumption that they are running in wine/linux.

  7. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,977
    Are they all running the same version of Linux and Wine that you are? What distribution+version of Linux and what version of Wine do you have installed?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  8. #8
    Just Joined! jippie's Avatar
    Join Date
    May 2006
    Location
    Eindhoven, the Netherlands
    Posts
    76
    An how much memory do you have installed anyway?
    Can't find "foca" on appdb.winehq.org btw.

  9. #9
    Just Joined!
    Join Date
    Sep 2011
    Posts
    8
    I have 4 gigs on my mac..I allocated as much as 3 gigs at one point to the linux VM and foca still hung..

    google foca informatica64

  10. #10
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,977
    Ok. You are running Linux in a Mac VM, and then running Wine there? What about running Wine directly in the Mac OSX?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Page 1 of 2 1 2 LastLast

Posting Permissions

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