Hello mlock() works only for superuser. Ordinary users will get EPERM, regardless of rlimits, buffer alignment, size, .. According to manpage, mlock() may never end up with EPERM. No rlimit checking is performed for superuser. Is this known bug, intended behaviour or what? System is OpenBSD 2.5 on Intel x86. -- vix