Ubuntu virtual machine Reallocate disk space crawl Pit guide

Source: Internet
Author: User
Tags uuid

Light in the outside to allocate the hard disk space to the virtual machine is not, but also to go into operation, here the next graphical interface tools, easy to operate.

sudo apt-get install gparted



When the error starts, say a start job is running for dev-disk .... And then to wait a minute and a half, in the inside running the program, also a word to me kill. Because there is no change to the UUID of the swap, resulting in the following image error.



This shows that the swap partition is not active, so a large code is running, and it explodes.

This solution was referenced:

Https://blog.csdn.net/qq_33528164/article/details/76725439?locationNum=9&fps=1


sudo vim/etc/fstab


There is a mismatch in the UUID of the swap, so just replace the file.



Later


Here is the use of Python running a tensorflow training program, always killed, should be out of memory, suspect that the swap space is too small caused by the problem ...


This swappiness value is 60, which means actively using 60% of the swap space when memory.

I decided to set the swap a bit larger to avoid being killed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.