*BSD News Article 28708


Return to BSD News archive

Xref: sserve comp.unix.bsd:13645 comp.os.linux:57416
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!yeshua.marcam.com!zip.eecs.umich.edu!newsxfer.itd.umich.edu!gumby!yale!yale.edu!noc.near.net!newshost.williams.edu!newshost.williams.edu!csedore
From: csedore@parasite.cc.williams.edu (Christopher M Sedore)
Newsgroups: comp.unix.bsd,comp.os.linux
Subject: Re: Swap partition size?
Date: 25 Mar 1994 16:33:15 GMT
Organization: Williams College, Williamstown, MA
Lines: 23
Message-ID: <CSEDORE.94Mar25113315@parasite.cc.williams.edu>
References: <1994Mar8.141900.2906@wubios.wustl.edu> <2lk1jm$aor@simpson-01.cs.strath.ac.uk>
	<CMK8E9.EM5@eskimo.com> <1994Mar17.032150.2147@dde.dk>
	<1994Mar24.161735.2609@physchem.ox.ac.uk>
	<michaelv.764539942@ponderous.cc.iastate.edu>
NNTP-Posting-Host: parasite.cc.williams.edu
In-reply-to: michaelv@iastate.edu's message of 24 Mar 94 20:12:22 GMT


  >I just created a 32MB swap partition, I did mkswap and it reported 32MB,

  Are you sure you didn't just create a 32768 *block* partition?
  Blocksize is (generally) 512 bytes, or 1/2 a kilobyte.  32768 blocks
  would equal 16384 megabytes.

  >but when I did swapon, it only reported 16380k.  Is this talking about WORDS
  >or BYTES?                                    ^k or meg?

Me things you had a temporary mental block.  16384 megabytes would be
a rather large of swap (16 GB).  16384k==16meg.  So, it is a 32768
block partition at 512 bytes (or .5k) per block.  Total swap space =
37268/2 = 16MB, a fine swap space.

  A 16k or 32k swap partition would be worthless. ;-)

That it would.

-Chris

Chris Sedore
Williams College