* Alpha Expertise
@ 1999-10-07 4:00 komarekpaul
1999-10-08 4:00 ` pjan2
0 siblings, 1 reply; 2+ messages in thread
From: komarekpaul @ 1999-10-07 4:00 UTC (permalink / raw)
NOTE: my real email address is komarek AT andrew cmu edu, without the
appropriate modifications. If you try to contact me, please do not
reply to this message directly, rather use the address I just mentioned.
I realize this is the linux-alpha newsgroup, and the sad fact is that I
only wish I were running linux on our Alpha. However, I am desperate
for help, and can't find any help anywhere--so I'm posting all over the
place. Please forgive me! =-)
I'm running D-Unix 4.0E on a (multiuser) dual 21264 with 4GB ram. I'm a
grad student doing some research, and am testing the performance of an
algorithm. One test I'd like to run is how the algorithm performs while
swapping (I'm trying to make this research _useful_). I want to force a
particular process to limit its physical memory (RSS is close enough, or
whatever else you might suggest for the DATA area) to something well
below the 4GB in the machine, for example 64MB.
The setrlimit() system call isn't effective, because D-Unix uses the
RLIMIT_RSS resource only to decide who swaps first when physical
memory for the whole system is low. D-Unix does not prevent a process'
RSS from becoming greater than RLIMIT_RSS.
Does anyone have any suggestions? In particular, I need to do this on a
process-by-process basis since it is a multiuser machine. Thanks for
your time and help! If possible, please cc: any response to my email,
komarek AT andrew cmu edu, since CMU has a strange news system that
makes reading newsgroups wildly inconvenient. That's why I'm posting
through Deja News. If you simply reply to the email address of this
message, I will surely never see the answer since I don't intend to ever
log into my new Deja News email account!
-Paul Komarek
komarek AT andrew cmu edu
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Alpha Expertise
1999-10-07 4:00 Alpha Expertise komarekpaul
@ 1999-10-08 4:00 ` pjan2
0 siblings, 0 replies; 2+ messages in thread
From: pjan2 @ 1999-10-08 4:00 UTC (permalink / raw)
To: komarek
komarekpaul@my-deja.com wrote:
...
> One test I'd like to run is how the algorithm performs while
> swapping (I'm trying to make this research _useful_). I want to force a
> particular process to limit its physical memory (RSS is close enough, or
> whatever else you might suggest for the DATA area) to something well
> below the 4GB in the machine, for example 64MB.
...
You can limit the total amount of memory available by using the csh command
ulimit(1) .
Try "ulimit -m 65536" to get 64MB for all the processes started from that
shell.
However, you really want to limit the physical amount of memory that your
computer uses, so that it will be forced to swap. This requires you to set
some (undocumented) variable at the firmware level (can't remember what it's
called ...) and power cycle the machine, which you say is infeasible.
Can't you just find yourself a crappy old PC for this job?!
Paul
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1999-10-08 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-07 4:00 Alpha Expertise komarekpaul
1999-10-08 4:00 ` pjan2
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox