Berkeley CSUA MOTD:Entry 26297
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/11/23 [General] UID:1000 Activity:popular
11/23   

2002/10/23-25 [Computer/HW/Drives] UID:26297 Activity:high
10/23   On modern disks, where should you place swap?  At the beginning?
        at the end (like on old ide disks)?  Can we be assured that mfr's
        think "end" is the edge of the platter?  I wanted to know in general
        and in the case of "20 Gig Maxtor drive".  Also, I do infact
        reliaze that it probably doesn't matter, but theoretically where
        should it go?  Thx.
        \_ experiment -don't know either.
                      \_ no, just sick of people asking questions that they're
                         simply too lazy to take care of themselves.  The
                         answer would be: "it depends, but probably doesn't
                         matter"
        \_ i tend to place it next to partitions used for filesystems that
           I might want to resize later on.  easier to resize swap than to
           resize another filesystem to rearrange space to make /var, for
           exmaple, bigger.  on some OS's you can even stop swapping on a
           particular partition without rebooting (as on Solaris). --Jon
        \_ I put it near the beginning, but these days when main memory
           is 1 gb or greater and much much faster than disk, it doesn't
           really matter that your placement will make vm a bit faster,
           since the overhead is just so damn high.
           \_ so it makes absolutly no performance boost to put swap at
                 "optimal" placement will be unnoticable.
              the edge of the platter?
                \_ if you're swapping, you've already lost.  -tom
              \_ Even on a budget system the disk runs at 7200 rpm and
                 has a 2 or 4 mb buffer. Whatever speedup you get by
                 "optimal" placement will be unnoticable with such a
                 disk. The thing to worry about these days is getting
                 the fastest ddr ram you can find and making sure that
                 it is interleaved properly.
              source of latency anyway).  Putting the swap near the center means
              that you're more likely on average to swing the head less.
                `\_ Even the slowest RAM is 8 orders of magnitude faster
                    than the fastest disk.
                     \_ Try 5 orders of magnitude.  Your point is still
                        valid, however.
        \_ huh, isn't the disk access going to be faster at the outer
           parts of the platter? look at the math, i degree of turn on
           the inner goes thru less distance than on the outer edge.
           \_ Aren't hard disk tracks concentric and non-uniform density
              (the inner tracks have the same storage capacity as the
              outer ones)?  If that's the case, it shouldn't impact
              performance either way.
           \_ once again tho, how can you make sure that what cfdisk thinks
              is "end" is  what the mfr thinks is "outer edge of platter"
              is there a standard to these things?
           \_ That doesn't account for moving the head (which is the larger
              source of latency anyway).  Putting the swap near the center
              means that you're more likely on average to swing the head less.
              \_ this is pointless ... use the time and energy to buy more
                 memory or kill a unneeded application. if you are interested
                 in doing this to see if the difference is measureable well
                 then obviously you will have to measure for your hardware.
                 this might be an interesting way to see how good a
                 disk simulator is.              --psb
                 \_ Actually, that was kind of my point.  Making guesses this
                    deep without actually measuring the performance isn't
                    productive.
        \_ WinXP automatically place it in the beginning 1/4-1/5 of your
           partition. Not sure if that means anything.
2024/11/23 [General] UID:1000 Activity:popular
11/23   

You may also be interested in these entries...
2012/1/4-2/6 [Computer/HW/Drives] UID:54281 Activity:nil
1/4     I want to test how my servers behave during a disk failure and
        a RAID reconstruction so I want to simulate a hardware failure.
        How can I do this in Linux without having to physically pull
        a drive? These disks are behind a RAID card and run Linux. -ausman
        \_ According to the Linux RAID wiki, you might be able to use mdadm
           to do this with something like the following:
	...
2011/9/14-10/25 [Computer/HW/Drives] UID:54173 Activity:nil
9/13    Thanks to Jordan, our disk server is no longer virtualized. Our long
        nightmare of poor IO performance should hopefully be over. Prepare for
        another long nightmare of poor hardware reliability!
        ...
        Just kidding! (I hope)
        In any case, this means that cooler was taken out back and shot, and
	...
2011/2/14-4/20 [Computer/SW/Unix] UID:54039 Activity:nil
2/14    You sure soda isn't running windows in disguise?  It would explain the
        uptimes.
        \_ hardly, My winbox stays up longer.
        \_ Nobody cares about uptime anymore brother, that's what web2.0 has
           taught us.  Everything is "stateless".
           \_ You;d think gamers would care more about uptime.
	...
2010/7/22-8/9 [Computer/SW/OS/FreeBSD, Computer/HW/Drives] UID:53893 Activity:nil
7/22    Playing with dd if=/dev/random of=/dev/<disk> on linux and bsd:
        2 questions, on linux when <disk>==hda it always gives me this off
        by one report i.e. Records out == records in-1 and says there is an
        error. Has anyone else seen this?  Second, when trying to repeat this
        on bsd, <disk>==rwd0 now, to my surprise, using the install disk and
        selecting (S)hell, when I try to dd a 40 gig disk it says "409 records
	...
2009/10/27-11/3 [Computer/HW/Drives] UID:53474 Activity:nil
10/27   I just read an article that Facebook had moved their database
        to all SSD to speed throughput, but now I can't find it. Has
        anyone else seen this? Any experience with doing this? -ausman
        \_ I hope you're not running mission critical data:
           http://ask.slashdot.org/story/09/10/27/1559248/Reliability-of-PC-Flash-SSDs?from=rss
        \_ Do you have any idea how much storage space is used by Facebook,
	...
2009/8/4-13 [Computer/SW/OS/Windows] UID:53239 Activity:kinda low
8/3     VMWare + Windows XP + Validation question. I need to test stuff with
        Service Pack 3 installed. I have a valid key that I own (yeah yeah I
        actually *bought* a copy, please don't flame me for supporting evil
        M$). Is it possible to register the key once, and then duplicate it
        for testing purposes?  Will Windows or Microsoft detect copies and
        disable the rest the copies?
	...
2009/7/28-8/6 [Computer/HW/Drives] UID:53216 Activity:nil
7/28    Does it make sense to defragment disks on VMWare? My 80GB disk
        on VMWare isn't really using 80GB, it just uses what it needs.
        Will defragment do anything to it?
        \_ If you want to speed up disk operation in your VM, it's best to
           defragment the disks in your VM, then defragment the disk on your
           host machine where the VM files are.
	...
2009/7/24-27 [Computer/SW/WWW/Browsers, Computer/SW/OS/OsX] UID:53191 Activity:kinda low
7/24    Firefox 3.5.1 on MacOS is a piece of crap. It crashes ALL THE TIME.
        It has crashed 3 or 4 times on me in the last hour, and not on
        the same pages either. The new Yahoo! home page also sucks ass.
        \_ os x keeps trashing my raid disk: '11 hours to rebuild. have fun
           with the kernel IO subsystem running like shit until then".
           Worthless piece of shit.
	...
2009/7/17-24 [Computer/SW/OS/OsX] UID:53156 Activity:kinda low
7/17    -rw-r--r--@
        What does the "at sign" mean? This is on Mac OS. VMWare disk file.
        \_ The file has metadata attributes
           \_ How do I add/delete attributes to files? What about
              -rw-r--r--+ <-- what is the "+" sign? Also how do you make
              tar preserve these attributes?
	...