Friday, February 27, 2015

linux - swap partition vs file for performance?

What is better for performance? A partition closer to the inside of the disk will have slower access times, and we must wait for the drive to switch between the OS and swap partitions.




On the other hand, a swap partition bypasses all of the filesystem allowing writes to the disk directly, which can be faster than a file.



What is the performance trade off?



How much does having a fixed size swapfile make a difference?



Is it a case that it will be longer to change to the swap partition, but performance will be better while it is on the swap partition that if it had been a swap file?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...