How would I restrict RAM for one application?

I need to develop some software for an environment that has a LOT less
RAM than our computers here do. We could spend money to buy a crap
computer to test it on but it would be much more useful/efficient if I
could test it on the same computer but just restrict how much RAM it
gets. Is there a way to do that?

And in a similar vein: is there a way to also make the processor appear
slower in executing that application as well?


6tr6tr

6tr6tr’s Profile: http://forums.opensuse.org/member.php?userid=12994
View this thread: http://forums.opensuse.org/showthread.php?t=400964

You can specify the amount of RAM the machine is allowed to use, in the
boot parameters, e.g.

> mem=512M

You would type in this parameter at the GRUB menu.


ken_yap

ken_yap’s Profile: http://forums.opensuse.org/member.php?userid=221
View this thread: http://forums.opensuse.org/showthread.php?t=400964

why you could not use virtual machine for this? any xen virtualbox qemu
or vmware?
afaik this is main thing why they was developed…


Linux 2.6.25.16-0.1-pae openSUSE 11 i386
#1KM400|Athlon|RAM2GB|FX5200
#2 nforce2|Athlon|Radeon9200|RAM1GB
#3 laptop ASUS x51r|Xpress1100|512MB

didencool’s Profile: http://forums.opensuse.org/member.php?userid=4743
View this thread: http://forums.opensuse.org/showthread.php?t=400964

didencool;1903149 Wrote:
> why you could not use virtual machine for this? any xen virtualbox qemu
> or vmware?
> afaik this is main thing why they was developed…

I thought of that, the only thing is, in developing, you want to make
the environment as similar as possible so you don’t introduce new
variables that might lead to issues which are different from the env.
you’ll run it in or hide other issues. Running in virtualization is not
100% similar in terms of how the OS works with the hardware. It’s
probably not an issue, but always something to be wary of…


6tr6tr

6tr6tr’s Profile: http://forums.opensuse.org/member.php?userid=12994
View this thread: http://forums.opensuse.org/showthread.php?t=400964

you should not explain me :slight_smile: I am not a programmer and I did not
understand a difference. It was just a suggestion… my friend use VM as
a different platforms for compilling… So from this was my post…


Linux 2.6.25.16-0.1-pae openSUSE 11 i386
#1KM400|Athlon|RAM2GB|FX5200
#2 nforce2|Athlon|Radeon9200|RAM1GB
#3 laptop ASUS x51r|Xpress1100|512MB

didencool’s Profile: http://forums.opensuse.org/member.php?userid=4743
View this thread: http://forums.opensuse.org/showthread.php?t=400964