ts-7000
[Top] [All Lists]

Re: [ts-7000] Enabling swap on tslinux

To:
Subject: Re: [ts-7000] Enabling swap on tslinux
From: "Martin Guy" <>
Date: Sat, 27 Oct 2007 22:44:35 +0100
2007/10/27, Mel Wilson <>:
> ticrus00 wrote:
> > I have tslinux running on a CF card on the ts7200.  I noticed there
> > isnt a swap runnin.  Is there a way to create a swap partition and
> > enable it for the tslinux os, not Debian.  Your help is greatly
> > appreciated.

Alternatively, you can swap to a file of you don't want to repartition
your card, or might to reassign the space to the system in future.
Say your CF card is mounted on /mnt/hda1:

dd if=/dev/zero of=/mnt/hda1/swapfile bs=1M count=32
mkswap /mnt/hda1/swapfile
swapon /mnt/hda1/swapfile

and maybe edit /etc/fstab to include a line
     /mnt/hda1/swapfile  none  swap  defaults 0 0
if you want it to enable swap automatically when it boots.

Of course, you must not remove the CF card without first turning swap off...

> flash cards provided a limited number of write/erase cycles before
> they failed, so I've avoided configuring swap.

In practice it turns out that it hardly ever modifies the swap space
once the system is running, unless you are trying to use more RAM than
you actually have.
On a system here with 64MB RAM with debian apache and mysql running a
low-traffic forum, it eventually gets round to freeing up 18MB of RAM
that would otherwise be pointlessly occupied with programs that never
run, allowing it to cache more useful data and freeing it from having
to keep refetching pages of code from the filesystem.

If your system is in flash, you will get a bigger reduction in writes
to the flash by enabling "noatime" in the fstab line for the
filesystems in flash, to prevent it writing to the filesystem every
time a file is accessed (your vendor may already have done this)

    M


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU