Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57786 - Ebuild for swapd
Summary: Ebuild for swapd
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Default Assignee for New Packages
Keywords: EBUILD
Depends on:
Reported: 2004-07-20 15:49 UTC by John Richard Moser
Modified: 2008-04-09 07:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---

sys-apps/swapd/swapd-0.4.0a.ebuild (swapd-0.4.0a.ebuild,1.11 KB, text/plain)
2004-07-20 15:51 UTC, John Richard Moser
files/swapd.conf.d (swapd.conf.d,1.42 KB, text/plain)
2004-07-20 15:51 UTC, John Richard Moser
files/swapd.init.d (swapd.init.d,738 bytes, text/plain)
2004-07-20 15:52 UTC, John Richard Moser
swapd-1.0.2.ebuild (swapd-1.0.2.ebuild,1.10 KB, text/plain)
2004-12-05 13:56 UTC, John Richard Moser

Note You need to log in before you can comment on or make changes to this bug.
Description John Richard Moser 2004-07-20 15:49:27 UTC
Here is an ebuild and init.d/conf.d set for swapd.

swapd polls the kernel and creates new swap files when free memory (as swap + memory) is below a given limit.  The swap files are destroyed if there is ample memory for a certain timeout.  This povides a fallback to pre-empt OOM (which pissed me off earlier when EMERGE got KILLED while INSTALLING xorg-x11), and may also be useful to new users.
Comment 1 John Richard Moser 2004-07-20 15:51:03 UTC
Created attachment 35838 [details]

swapd ebuild
Comment 2 John Richard Moser 2004-07-20 15:51:44 UTC
Created attachment 35839 [details]

conf.d for swapd, needed by ebuild
Comment 3 John Richard Moser 2004-07-20 15:52:43 UTC
Created attachment 35840 [details]

init.d for swapd, needed by ebuild
Comment 4 John Richard Moser 2004-07-20 15:56:12 UTC
I should note, I tried /etc/swapd.conf and --config; swapd ignored it, hence the ugly hack with the conf.d
Comment 5 Daniel Webert 2004-10-19 08:47:03 UTC
latest is 0.6
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2004-11-26 14:07:58 UTC
Can you please test this with the latest version 0.4.0?

Please change the headers of conf.d and ebuild

KEYWORDS="-* ~x86" - why is "-*" in the ebuild? Does it not work on the other archs?

IUSE="" should be always in ebuilds and you should use emake all instead of make all.

Here is also an interesting article about the OOM-killer, and how to stop it from killing :)
Comment 7 John Richard Moser 2004-12-05 13:56:37 UTC
Created attachment 45341 [details]

ebuild for swapd-1.0.2

the init.d needs to be fudged for this a bit.  I'll work it out later.
Comment 8 Norman Jonas 2005-05-22 14:51:46 UTC
I just want to remark that there are at least to different projects called swapd
and those already got mixed up here. Maybe either one should use separate names
for those separate projects or there should be a general decision which one
should become the one primarily used by gentoo based on things like stability or
portability. Considering the gentoo attitude of choice probably there need to be
different names like - "linux-swapd"

and "portable-swapd"
Comment 9 Markus Ullmann (RETIRED) gentoo-dev 2007-06-09 22:42:54 UTC
upstream url unreachable