memlockd - daemon to lock files into RAM

Property Value
Distribution Debian 10 (Buster)
Repository Debian Main amd64 Official
Package filename memlockd_1.2_amd64.deb
Package name memlockd
Package version 1.2
Package release -
Package architecture amd64
Package type deb
Homepage -
License -
Maintainer Russell Coker <>
Download size 12.54 KB
Installed size 52.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 Repository
memlockd All All


Name Value
adduser -
init-system-helpers >= 1.18~
libc6 >= 2.14
libgcc1 >= 1:3.0
libstdc++6 >= 4.1.1


Type URL
Binary Package memlockd_1.2_amd64.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_amd64.deb Identify what's using up virtual memory
memtest86+_5.01-3_amd64.deb thorough real-mode memory tester
memtest86_4.3.7-3_amd64.deb thorough real-mode memory tester
memtester_4.3.0-4+b1_amd64.deb Utility for testing the memory subsystem
memtool_2018.03.0-1_amd64.deb Development tool to modify memory mapped registers
mencal_3.0-4_all.deb menstruation calendar
mencoder_1.3.0-8+b4_amd64.deb MPlayer's Movie Encoder
mender-artifact_3.0.0+really2.4.0-1_amd64.deb utility to generate .mender artifacts
mender-cli_1.1.0-1+b10_amd64.deb general-purpose CLI for the Mender backend
mender-client_1.7.0-4+b12_amd64.deb Mender over-the-air software updater client
menhir-doc_20181113-1_all.deb Documentation of the Menhir parser generator for OCaml
menhir_20181113-1_amd64.deb Parser generator for OCaml
menu-l10n_0.20120730_all.deb localized menu entries for Debian menu
menu-xdg_0.6_all.deb menu compliant window manager scripts
menu_2.1.47+b1_amd64.deb generates programs menu for all menu-aware applications