Results 1 to 8 of 8

Thread: swap question

  1. #1
    Junior Member
    Join Date
    Mar 2003
    Location
    Santiago, Chile
    Posts
    5

    swap question

    I was thinking...

    i have a desktop PC and a notebook
    my notebook have only 96 MB ram, knoppix ask me to make a swap file, now my question...
    what would be faster a swap file or a swap partition???

    Thanks in advance for all your time


  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    As a rule of thumb, primary swap space would be on a swap partition.
    If you use an non-journaled file system then you run the risk of having a fragmented swap file. A swap file is usually used if temporary swap space is needed. Why?

    When swaping to a swap file it first must decide where to write, in order to do that you have to:
    -Find out where the file is.
    -Find the correct cluster that the blocks belong in.
    -Write the files there, BUT
    -If it's bigger than one cluster it has to find the next cluster.
    -Then it write in that cluster.
    -It will continue writing to and finding clusters until it finishes.

    There is one advantage to a swap file however. Should you wanted to increase your swap size you can do it without changing the partition table.

    With a swap partition there's less work involved. A swap partition basically writes wherever it wants to. Should you have two or more drives I always put a swap partition on a seperate disk, that way you can reduce seek times. Additionally a swap partition placed on the outside of the disk is faster due to the increased speed found on the outside edge of the disk. If you use imaging software for example or compile programs it could make a big difference but if you just do general day to day things it might not be a noticeable improvement.

    But that's just my 2 cents worth.

  3. #3
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    177
    In that case, when I install the copy of Mandrake I hope to be recieveing soo would you reccomend that I get rid of the swap partition I have on my primary Hard drive and replace it with my 500MB secondary HDD that is currently running DOS 6.22?

  4. #4
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    I'm sure that whomever is sending you that MDK set is very reliable.

    Actually I might use Knoppix 3.2 and the included partimage software to copy DOS to a second or third partition on my second hard drive then make my swap partition on the outside edge of the second hard drive. If you've ever used cfdisk you'll know how easy this would be to do. If you've got the space DOS is never a bad idea IMHO.

  5. #5
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    177
    Got the space? Untill 2 years ago, my father's primary computer was a packard Bell 386, no math co-processor with 8MB or RAM (upgraded from 1MB three years ago) and a, now read close, a 40MBHDD that is 4-0. Not 4-0-0, just 40MB. It RAN DOS 6.22 like mobodies bussiness.

    EVERYONE has room for a DOS partition. As for reliable, I don't know, the guy seemed kind of crazy

  6. #6
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    --No I would not, and here's why:

    --Linux can have multiple swap areas, whether they are files or partitions. You can add swap files on the fly, all you have to do is mkswap on the filename and swapon. This is from my machine:

    Code:
    swapon -s
    Filename                        Type            Size    Used    Priority
    /dev/hdb5                       partition       72252   19636   3
    /dev/hda3                       partition       265064  19644   3
    /dev/sdb2                       partition       72252   0       2
    --Knoppix in particular looks for a file called "knoppix.swp" - if found, it will activate it in addition to any other swap partitions you have.

    --Also, that ancient 500MB drive is S-L-O-W. Try doing a few hdparm tests against your primary drive and then the 500. (man hdparm) If possible, either connect the 500 to the secondary controller or just remove it and buy a faster/larger drive. I wouldn't use anything less than an 800M anyway (CDR capacity, doncha know) and that only in the extreme case. Find a 486 for that 500.

    Quote Originally Posted by VeeDubb
    In that case, when I install the copy of Mandrake I hope to be recieveing soo would you reccomend that I get rid of the swap partition I have on my primary Hard drive and replace it with my 500MB secondary HDD that is currently running DOS 6.22?

  7. #7
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    177
    That's a good point, though, it's a Western Digital Caviar, not a cheap piece of junk. And the seek times are realy quite low considering.

    I also have a 1995 1GB maxtor, a 1992 500MB Maxtor, and a 1995 1.28GB WD Caviar drive. Would one of those be better to use if I realy wan't my swap on a seperate controller? (whitch I do)

    I was thinking about using the 1.2 caviar, but it's litle big for a swap drive. (Perfect size for Windows 95 though) And I'm a litle apprehensive about using an older maxtor.

    By the way, if anybody wants one I'll sell it cheap, (shipping will be a lot though unless you are in the Salem, OR area.)

  8. #8
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    --You'll see the difference when you do the hdparm tests. My 40- and 80-gig IDE drives are faster than my 68-pin SCSI drives(!) Swap is one thing that you want FAST access to, as it is substituting for RAM. Always place your swap on your FASTEST drives.

    ( /me has his own dark opinions of WD, but chooses to withhold them at this time. )

    Quote Originally Posted by VeeDubb
    That's a good point, though, it's a Western Digital Caviar, not a cheap piece of junk. And the seek times are realy quite low considering.

    I also have a 1995 1GB maxtor, a 1992 500MB Maxtor, and a 1995 1.28GB WD Caviar drive. Would one of those be better to use if I realy wan't my swap on a seperate controller? (whitch I do)

    I was thinking about using the 1.2 caviar, but it's litle big for a swap drive. (Perfect size for Windows 95 though) And I'm a litle apprehensive about using an older maxtor.

    By the way, if anybody wants one I'll sell it cheap, (shipping will be a lot though unless you are in the Salem, OR area.)

Similar Threads

  1. Swap Required?
    By bsaber in forum Hdd Install / Debian / Apt
    Replies: 3
    Last Post: 02-11-2005, 09:58 PM
  2. swap file question
    By herbyweed in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 02-07-2005, 06:31 PM
  3. Must have swap partition?
    By metavoid in forum General Support
    Replies: 7
    Last Post: 02-20-2004, 04:40 PM
  4. Using win386.swp for swap
    By peterpasschier in forum Ideas
    Replies: 3
    Last Post: 01-29-2004, 05:50 PM
  5. Configuring Swap
    By CubeDweller in forum General Support
    Replies: 6
    Last Post: 03-26-2003, 08:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Juniper EX4100-F-12P Switch 12x 1GbE PoE  2x 10GbE Uplinks 4x 10GbE Stack Ports picture

Juniper EX4100-F-12P Switch 12x 1GbE PoE 2x 10GbE Uplinks 4x 10GbE Stack Ports

$900.00



Juniper EX2300 12-Port Gigabit PoE+ Managed Network Switch P/N: EX2300-C-12P picture

Juniper EX2300 12-Port Gigabit PoE+ Managed Network Switch P/N: EX2300-C-12P

$149.99



Juniper Network QFX5100-48S-AFO 48x SFP/SFP+ 6x 40GbE QSFP+ Switch w/ Dual power picture

Juniper Network QFX5100-48S-AFO 48x SFP/SFP+ 6x 40GbE QSFP+ Switch w/ Dual power

$253.30



Juniper EX4300-24P 24 Port Gigabit PoE+ Switch. picture

Juniper EX4300-24P 24 Port Gigabit PoE+ Switch.

$114.35



NEW JUNIPER QFX5120-48Y-AFO-T 48x 10/25GbE SFP28 8x 40/100GbE Switch Dual AC PS picture

NEW JUNIPER QFX5120-48Y-AFO-T 48x 10/25GbE SFP28 8x 40/100GbE Switch Dual AC PS

$12750.00



Juniper EX2300-C-12P 12 Port Gigabit PoE+ 2x10G SFP+ Managed Compact  Switch picture

Juniper EX2300-C-12P 12 Port Gigabit PoE+ 2x10G SFP+ Managed Compact Switch

$179.99



Juniper EX3400-48T-AFI Ethernet Network Switch 48x1GbE 4x10GbE SFP+ 2x40GbE QSFP picture

Juniper EX3400-48T-AFI Ethernet Network Switch 48x1GbE 4x10GbE SFP+ 2x40GbE QSFP

$139.00



Juniper EX2300-C 12 Port Compact Gigabit Switch EX2300-C-12p picture

Juniper EX2300-C 12 Port Compact Gigabit Switch EX2300-C-12p

$99.99



Juniper EX3400-24P 24-Port PoE+ GbE + 4-Port 1/10Gb SFP Switch picture

Juniper EX3400-24P 24-Port PoE+ GbE + 4-Port 1/10Gb SFP Switch

$245.00



Juniper Networks EX2300-48P 48-Port Gigabit PoE Managed Ethernet Switch picture

Juniper Networks EX2300-48P 48-Port Gigabit PoE Managed Ethernet Switch

$79.99