Skip to Content.
Sympa Menu

sm-grimoire - Re: [SM-Grimoire] Re: [SM-Sorcery] Sorcery API

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: Seth Woolley <seth AT tautology.org>
  • To: Jeremy Kolb <jkolb AT brandeis.edu>
  • Cc: Geoffrey Derber <Geoffrey.Derber AT Trinity.edu>, Hamish Greig <hgreig AT bigpond.net.au>, sm-grimoire AT lists.ibiblio.org
  • Subject: Re: [SM-Grimoire] Re: [SM-Sorcery] Sorcery API
  • Date: Mon, 30 Jun 2003 11:34:39 -0700 (PDT)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You're probably right... Swapfiles need contiguous free space, IIRC, but
it could always try to find enough swap space left. It of course
complicates the free space if 4 gigs go to a swap file and another gig
goes to installing OpenOffice, or something like that (the person who
casted it will probably be thinking "two gigs is enough"). Actually
disabling tmpfs will use up disk as well, so neither solution gets people
out of the disk space problem.

Maybe it could be an option hack? mk_source_dir could probably query the
user or use a config variable if it will have to make drastic measures --
either disabling tmpfs or trying the swapfile hack (only if tmpfs is
enabled), falling back to disabling tmpfs is there's not enough
contiguous free space.

On Mon, 30 Jun 2003, Jeremy Kolb wrote:

> Can't we just disable tmpfs for these spells somewhere? I don't want a huge
> swapfile created like that on my system. I'd prefer that when these spells
> cast tmpfs is not used. I like tmpfs though and use it for everything else.
>
> Jeremy
>
> Quoting Seth Woolley <seth AT tautology.org>:
>
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > On Mon, 30 Jun 2003, Hamish Greig wrote:
> >
> > > On Sun, 29 Jun 2003 07:36, Geoffrey Derber wrote:
> > > > Hamish Greig wrote:
> > > > > TMPFS needs to be turned off (from the spell IMHO) for j2sdk or
> > > > > openoffice and others in the future ?
> > > >
> > > > Shouldn't be nesissary, look at the
> > > >
> > > > mk_source_dir line for OO (j2sdk is similar)
> > > >
> > > > 'mk_source_dir $SOURCE_DIRECTORY 4g &&'
> > > >
> > > > from http://bugs.sourcemage.org/show_bug.cgi?id=1517#c79 by Eric
> > Sandall
> > > >
> > > > This will create the normal source directory under /usr/src, but will
> > > > have TMPFS set to use 4Gb.
> > > >
> > > > Here's the info from /var/lib/sorcery/modules/libgrimoire:334
> > > >
> > > >
> > #---------------------------------------------------------------------
> > > > ##=item mk_source_dir <directory name> [<size>]
> > > > ##
> > > > ## Creates a tmpfs filesystem. By default, the size is 1GB.
> > > > ## The caller may optionally supply a size argument.
> > > > ##
> > > > ## Example1: Create a 2GB mount at $SOURCE_DIRECTORY
> > > > ##
> > > > ## mk_source_dir $SOURCE_DIRECTORY 2g
> > > > ##
> > > > ## Example2: Create a mount at /tmp/newdir, defaults to 1GB size
> > > > ##
> > > > ## mk_source_dir /tmp/newdir
> > > > ##
> > > >
> > #---------------------------------------------------------------------
> > > >
> > > > Geoff
> > > >
> > > > _______________________________________________
> > > > SM-Grimoire mailing list
> > > > SM-Grimoire AT lists.ibiblio.org
> > > > http://lists.ibiblio.org/mailman/listinfo/sm-grimoire
> > > In a quick discussion yesterday ( i think Geoffrey might have been
> > there?) i
> > > discovered that this only works if you have 4GB swap/RAM combined
> > available.
> > > It will infact try to make a 4GB TMPFS part but if you only have 1.5GB
> > > swap+RAM it will fill it up , the kernel will start killing of processes
> > and
> > > then the cast will fail... this is not a long term solution.
> > > Hamish
> >
> > IDEA:
> >
> > Dynamic swapfile creation to make up the difference. Remove after cast
> > in
> > rm_source_dir.
> >
> > ...
> > I wonder if the anti-tmpfs crowd is watching... *looks around
> > suspiciously*.
> >
> > Seth
> >
> > - --
> > Seth Alan Woolley <seth at tautology.org>, SPAM/UCE is unauthorized
> > Key id 7BEACC7D = 2978 0BD1 BA48 B671 C1EB 93F7 EDF4 3CDF 7BEA CC7D
> > Full Key at seth.tautology.org and pgp.mit.edu. info: www.gnupg.org
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.2.0 (FreeBSD)
> >
> > iD8DBQE+//Ov7fQ833vqzH0RAq/4AJ9H+i46QP4qfy4sI1KrGZTLtQrJMgCfZL99
> > tHcGjXzePA7EJZ1HyokIUTE=
> > =v4GH
> > -----END PGP SIGNATURE-----
> >
> > _______________________________________________
> > SM-Grimoire mailing list
> > SM-Grimoire AT lists.ibiblio.org
> > http://lists.ibiblio.org/mailman/listinfo/sm-grimoire
> >
>
>
>
>
> _______________________________________________
> SM-Grimoire mailing list
> SM-Grimoire AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/sm-grimoire
>

- --
Seth Alan Woolley <seth at tautology.org>, SPAM/UCE is unauthorized
Key id 7BEACC7D = 2978 0BD1 BA48 B671 C1EB 93F7 EDF4 3CDF 7BEA CC7D
Full Key at seth.tautology.org and pgp.mit.edu. info: www.gnupg.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.0 (FreeBSD)

iD8DBQE/AILB7fQ833vqzH0RAnWnAJ9xsecQZY5jlUGfL0KP0257Uy9tEQCgwgrG
zlRCfOYn6oIlZUfwzfyxglc=
=Nz8W
-----END PGP SIGNATURE-----





Archive powered by MHonArc 2.6.24.

Top of Page