C + +: Internal compiler error:killed

Source: Internet
Author: User

Reason: Insufficient memory, swap insufficient

  1. create partition file, size 4G

    [[email protected] ~]# dd if=/dev/zero of=/data/swapfile bs=1k count=40960004096000+0 records in4096000+0 records out4194304000 bytes (4.2 GB) copied, 11.5204 s, 364 MB/s
  2. Generate swap file system

    [[email protected] ~]# mkswap /data/swapfilemkswap: /data/swapfile: warning: don‘t erase bootbits sectors        on whole disk. Use -f to force.Setting up swapspace version 1, size = 4095996 KiBno label, UUID=579f326b-b767-45e9-88f6-88348eea5414[[email protected] ~]# mkswap -f /data/swapfileSetting up swapspace version 1, size = 4095996 KiBno label, UUID=0b1356c5-b1e2-40c6-9142-627a7e38e2ca
  3. Mount swap file

    [[email protected] ~]# swapon /data/swapfile[[email protected] ~]# free -m             total       used       free     shared    buffers     cachedMem:         15948      15746        202          0        378       8830-/+ buffers/cache:       6537       9411Swap:        14239         70      14169
  4. Uninstalling swap Files

    [[email protected] ~]# swapoff /data/swapfile[[email protected] ~]# free -m             total       used       free     shared    buffers     cachedMem:         15948      15744        204          0        378       8830-/+ buffers/cache:       6535       9413Swap:        10239         70      10169
  5. To modify the/etc/fstab file, add the following:

    /data/swapfile swap swap defaults 0 0

C + +: Internal compiler error: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.