Re: swap file vs. swap partition

From: Peter Arremann (loony_at_loonybin.org)
Date: 07/30/05

  • Next message: Roy: "Re: MRI Print server"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Sat, 30 Jul 2005 14:26:25 -0400
    
    

    On Saturday 30 July 2005 13:06, Mathieu Chouquet-Stringer wrote:
    > menscher@uiuc.edu (Damian Menscher) writes:
    > > A swap partition would be faster (think about it -- no filesystem
    > > overhead).
    >
    > Not true anymore. There is no overhead for a swap file compared to a swap
    > partition:
    >
    > http://groups.google.com/group/fa.linux.kernel/browse_thread/thread/801af09
    >eaf08147c/7bbb9d44ece78faf?lnk=st&q=group:*kernel*+swap+file+partition&rnum=
    >1#7bbb9d44ece78faf

    Was just going to post that link... Yes, there is no performance difference on
    a block by block base between partition and file... but there is still one
    good performance reason to use swap partitions - you can put them in the
    fastest region of the disk. Look at this graph
    http://www.tomshardware.com/storage/20050606/toshiba-05.html#data_transfer_graph
    (just an example, you can usually easily find similar graphs for your drive
    type).
    You see, if you place the swap partition at the end of the disk, you'll get
    like 40% less performance than if it is at the beginning. With a individual
    partition you can control this - with a filesystem (if its larger, i.e. if
    you only make one large / partition) you can't really determine the location
    of your swap file...

    Peter.

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Roy: "Re: MRI Print server"

    Relevant Pages

    • Re: Security of data in memory
      ... swap partition, key protection, secure data deletion. ... being stolen or otherwise disclosed they will often respond with filesystem ... permissions on a file, user, group and other as a bare minimum. ...
      (SecProg)
    • Re: Hibernation woes
      ... this) or a swap PARTITION needs to be created from disk space ... which I take to mean unformatted free physical unused disk space just ... swap "file" creation and change. ... Unfortunately this is a dual boot machine (XP and Ubuntu) and will ...
      (Ubuntu)
    • Re: Pagefile problem after duplicating Win2000 partition
      ... Boot into safe mode ... set your new swap file appropriatly ... > like the old one was (using Partition Magic 7): ... So that the actual Windows desktop never comes up, ...
      (microsoft.public.win2000.general)
    • Re: Script to change swap <-> FAT partition on reboot?
      ... access with either operating system to transfer files, ... script that changes my swap space to FAT. ... I rarely transfer files from Windows to Linux but if I do, ... choose whether I want to change the FAT partition to a swap one? ...
      (comp.os.linux.misc)
    • Re: Few questions before I try to install Ubuntu
      ... As long i use Ubuntu my swap was used max. 10MB if even that. ... in your e-mail you mention that you have 512 MB of RAM. ... your swap partition will see relatively ...
      (Ubuntu)