[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Limit memory consumption of an ad hoc process



Dear Colleagues,

FreeBSD has a simple way to run some ad-hoc program with memory limits:

$ limits -m 2G ./mytest
  memoryuse             2097152 kB
  vmemoryuse           infinity kB
$ limits -m 1G ./mytest
  memoryuse             1048576 kB
  vmemoryuse           infinity kB

How do I do the same in Linux (without root permissions)?

-- 
Victor Sudakov VAS4-RIPE
http://vas.tomsk.ru/
2:5005/49@fidonet

Attachment: signature.asc
Description: PGP signature


Reply to: