Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
16
rated 0 times [  16] [ 0]  / answers: 1 / hits: 38623  / 2 Years ago, tue, february 15, 2022, 5:35:18

I recently installed Ubuntu 11.04 onto a RAID0(stripe) device using the alternate installation disc and manually partitioned the HDs ext4 and swap partitions; during this process, I was reading in a forum walkthrough (can't remember where...) that having the swap partition at the beginning of your hard drive could be better for some reason!



Is the idea that the swap is "closer" at the beginning so its accessed quicker with a lower latency/delay? The HD 'needle' moves less to reach the swap...



This confuses me because I like to think of Hard Drives as likened to a samurai sword(not literally)!



I was told that the last inch or two at the tip of the sword is the cutting edge because it travels the fastest.



(Think of a ball on a string and as you swing it around the ball at the end of the string is travelling at a greater speed than it would be if it was closer to the source - your hand)



BUT since the HD is spinning at (x)RPM then the outer edge of that HD should be spinning relatively faster (+x) providing quicker read/write rate.



So does the swap position affect performance in anyway? If so, is it better to have it placed in the beginning for immediate access, or at the end for increased read/write?



I would think the swap is sized and placed according to the individuals needs but how do I decide...



EDIT:



As a note, I do have 8GB of RAM (4x2GB) so I noticed that the swap has not been used in any of my GIS (mapping and analysis) processing. 8GB is the full capacity for my motherboard.


More From » boot

 Answers
0

Forget swords and balls on string. Think of a stack of CD platters and then you will have in mind an image closer to what a hard drive is actually like.



Wikipedia on hard disks



Think also of the amount of Memory in the computer and ask, how often does the swap partition get used? Your question could be irrelevant. Disks do not have a beginning or an end. They have outer edges and inner edges. Data is placed across more than one platter. Seek times and access times, as well as spin speeds, would turn any answer into a debate.



Note this point from the Wikipedia article under HDD Formatting




Modern HDDs ... appear at their interfaces as a contiguous set of logical blocks; typically 512 bytes long




It only appears that has a beginning and an end. If performance is a concern then more RAM will have a greater effect than the placement of the swap partition.


[#43889] Thursday, February 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cisccla

Total Points: 66
Total Questions: 134
Total Answers: 115

Location: Croatia
Member since Fri, Sep 11, 2020
4 Years ago
;