memlockd - daemon to lock files into RAM

Property Value
Distribution Ubuntu 18.04 LTS (Bionic Beaver)
Repository Ubuntu Universe i386
Package filename memlockd_1.2_i386.deb
Package name memlockd
Package version 1.2
Package release -
Package architecture i386
Package type deb
Category universe/admin
Homepage -
License -
Maintainer Ubuntu Developers <>
Download size 12.65 KB
Installed size 47.00 KB
When a system starts paging excessively it may be impossible for the sysadmin
to login for the purpose of killing the runaway processes (sometimes the
login program times out due to thrashing).  Memlockd allows important system
files (such as /bin/login, /bin/getty, and the admin shell) to be locked in
memory so that there will be no delay in accessing executable pages.  In my
tests this can decrease the time required for the administrator to login on a
thrashing system by a factor of more than 3.


Package Version Architecture Repository
memlockd_1.2_amd64.deb 1.2 amd64 Ubuntu Universe
memlockd - - -


Name Value
adduser -
init-system-helpers >= 1.18~
libc6 >= 2.4


Type URL
Binary Package memlockd_1.2_i386.deb
Source Package memlockd

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install memlockd deb package:
    # sudo apt-get install memlockd




2016-12-14 - Russell Coker <>
memlockd (1.2) unstable; urgency=low
* debian/control: Add dh-systemd (>= 1.4) to Build-Depends - required to use
dh_systemd helpers
* debian/rules: Add dh_systemd_enable and dh_systemd_start in proper places
Thanks Michał Zając <> for the above.
Closes: #714957
* Changed to Debhelper compat level 9.
* Removed readdir_r() as it's deprected and readdir() now does everything
we need.
* Added $ARCH as a config option for specifiying the host architecture
according to uname(2).
* Compile with -O2
2012-06-20 - Russell Coker <>
memlockd (1.1.1) unstable; urgency=high
* Made it work correctly with systemd, restarts via systemd and doesn't use
a pidfile.
Closes: #678161
2012-06-16 - Russell Coker <>
memlockd (1.1) unstable; urgency=high
* Use wheezy paths for shared objects on i386 and amd64.  Also added a new
config file option to not log file not found errors so we don't see i386
errors on amd64 and amd64 errors on i386.
Closes: #660321, #480915
* Added systemd service file.
Closes: #652386
* Added a run-parts style config directory, default is /etc/memlock.d and
the config file uses a % to chain to another file or directory.
Closes: #529265
2011-01-11 - Russell Coker <>
memlockd (1.0) unstable; urgency=low
* Changed the default config to have library names that work on AMD64
and to include killall and ps.
* Better use of variables in the makefile.
* Put a copyright statement in the main source file and change the license
to GPLv3.
* Version 1.0, with no serious changes for 3 years it's good for that.
2008-05-07 - Russell Coker <>
memlockd (0.05) unstable; urgency=low
* Stopped including asm/page.h because we didn't use it since 0.03-0.2.
Closes: #479968
2008-03-29 - Petter Reinholdtsen <>
memlockd (0.04-0.1) unstable; urgency=low
* Non-maintainer upload to solve release goal.
* Add LSB dependency header to init.d scripts (Closes: #468888).
2008-01-27 - Russell Coker <>
memlockd (0.04) unstable; urgency=low
* Include changes from Robert S. Edmonds
* Fixed my email address in the Maintainer field.
2007-09-09 - Robert S. Edmonds <>
memlockd (0.03-0.2) unstable; urgency=low
* Non-maintainer upload.
* Compile with g++, not gcc -lstdc++; closes: #441449.
2007-09-05 - Robert S. Edmonds <>
memlockd (0.03-0.1) unstable; urgency=low
* Non-maintainer upload.
* Use sysconf(_SC_PAGESIZE) instead of PAGE_SIZE; closes: #418666.
* Add dependency on adduser; closes: #431529.
* Use invoke-rc.d; closes: #440574.
2007-03-13 - Russell Coker <>
memlockd (0.03) unstable; urgency=medium
* Fixed section and description.
* Made it write a pidfile, and also made the restart option of the init.d
script start a new instance unconditionally so the new instance can kill
the old.  This means that there is no window where memlockd is not

See Also

Package Description
memstat_1.1_i386.deb Identify what's using up virtual memory
memtester_4.3.0-4_i386.deb Utility for testing the memory subsystem
memtool_2016.10.0-1_i386.deb Development tool to modify memory mapped registers
mencal_3.0-3_all.deb menstruation calendar
mencoder_1.3.0-7build2_i386.deb MPlayer's Movie Encoder
menhir-doc_20171222-1_all.deb Documentation of the Menhir parser generator for OCaml
menhir_20171222-1_i386.deb Parser generator for OCaml
menu-l10n_0.20120730_all.deb localized menu entries for Debian menu
menu-xdg_0.5_all.deb menu compliant window manager scripts
menu_2.1.47ubuntu2_i386.deb generates programs menu for all menu-aware applications
menulibre_2.2.0-1_all.deb advanced compliant menu editor
mercurial-buildpackage_0.10.1+nmu1_i386.deb Suite to maintain Debian packages in Mercurial repository
mercurial-common_4.5.3-1ubuntu2_all.deb easy-to-use, scalable distributed version control system (common files)
mercurial-crecord_0.20151121-1_all.deb Mercurial crecord extension
mercurial-extension-utils_1.3.4-1_all.deb Contains functions for writing Mercurial extensions