You can get more information on that using lvdisplay. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Asked 6 years, 1 month ago. Active 6 years, 1 month ago. Viewed 6k times. Improve this question. Add a comment. Active Oldest Votes. According to this: lkml.
Community Bot 1. Caleb Caleb I usually have swap as a partition at the beginning of the drive. I personally don't really care about the last few percentage points of swap performance enough to take the extra complexity of a separate partition. If my server starts seriously swapping, I have a problem anyway. The swap space is more of a last-resort safety net in case some process starts gobbling up memory.
That's fine, you're welcome to use a file. I find partitions quite easy to manage but I see your reasoning. You just asked what the convention was and that's pretty much the default scenario. I don't care about performance, since I almost don't use swap any more.
Maybe its main use today is for laptop hibernation, and obviously as "safety net". Show 2 more comments. Just to add my 2 cents to Malte's and Caleb's answers, and also to the excelent reference by Paul: Using swap partitions instead of swapfiles was mentioned often.
Daniel Dinnyes Daniel Dinnyes 6 6 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Explaining the semiconductor shortage, and how it might end.
Solving Together. Swap is space on a disk that is reserved for use as virtual memory. By default, a swap partition is not present on Cloud Servers, but you can add swap to a server by allocating a swap file. The performance of a swap file is similar to that of a swap partition. However, using a swap file makes it easier to control the swap size without repartitioning a volume. Start with a value of 10 and increase if it necessary.
0コメント