Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

memory allocation Tru64 Unix 4.0G

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Excuse this if it is a simple question but I do not know the answer!

I want to start a cron job to backup various directories to a snap server on our network. Problem is, once it starts backing up the directories the amount of system free memory drops extremely quickly and everything grinds to a halt.
Is there a command I can use to limit the amount of memory just this one process can have?
 
I don't know of an actual command but perhaps you could lower the priority
use ps -el to check you current priorities on your system, then:-

"renice" (see man pages)
Example:-

Adjust the system scheduling priority so that process IDs
987 and 1012 would have a lower scheduling priority of 5:

renice -n 5 -p 987 1012

Is it worth adding some swap space?

mkfile 5m newswapfile

swap -a /fullpath/to/newswapfile
swap -d newswapfile will delete




 
You can also put a "ulimit" command in your script to limit the memory usage...

ulimit -m [# of kB]

HTH
 
Nice one. Have read the man pages on nice and ulimit and make the necessary changes and it seems to be working well.

Thanks guys and gals!
 
Hi, guys.

1 question.
Does anybody get "C"-source to "uptime" for Tru64 5.1?

In other word, I wanna get some performance info 'bout load average from "/dev/kmem" structures for monitoring purposes by calling this from "C".

Will somebody be so kind and help me?
Thanks.

Vlado
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top