[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

Attachment: signature.asc
Description: PGP signature

Reply to: