title: /proc kcore file is huge
body: <p>After experiencing a DDOS attack, somehow <code>/proc/kcore</code> is very huge, I use a small php class to check the current disk space, and how many has been used.</p>
  
  <p>It shows the following:</p>
  
  <pre><code>Total Disk Space: 39.2 GB
  Used Disk Space: 98 GB
  Free Disk Space: 811.6 MB
  </code></pre>
  
  <p>My question is, is it safe to delete the <code>/proc/kcore</code> file? Or is there a solution on getting it to an normal size.</p>
  
  <p>The filesize of <code>/proc/kcore</code> is 140.737.486.266.368 bytes</p>
  
  <p>I have hosted my server at DigitalOcean.</p>
  
  <p>If any more information needed to know, please ask ;)</p>
  
  <p>Many thanks!</p>
  
  <p>Edit...</p>
  
  <p><code>df -h</code> returns:</p>
  
  <pre><code>Filesystem      Size  Used Avail Use% Mounted on
  /dev/vda         40G   37G  755M  99% /
  udev            993M   12K  993M   1% /dev
  tmpfs           401M  224K  401M   1% /run
  none            5.0M     0  5.0M   0% /run/lock
  none           1002M     0 1002M   0% /run/shm
  </code></pre>
  
  <p><code>du -shx</code> returns:</p>
  
  <pre><code>du -shx *
  8.7M    bin
  27M     boot
  12K     dev
  6.3M    etc
  4.8M    home
  0       initrd.img
  229M    lib
  4.0K    lib64
  16K     lost+found
  8.0K    media
  4.0K    mnt
  4.0K    opt
  du: cannot access `proc/3765/task/3765/fd/3': No such file or directory
  du: cannot access `proc/3765/task/3765/fdinfo/3': No such file or directory
  du: cannot access `proc/3765/fd/3': No such file or directory
  du: cannot access `proc/3765/fdinfo/3': No such file or directory
  0       proc
  40K     root
  224K    run
  8.0M    sbin
  4.0K    selinux
  4.0K    srv
  0       sys
  4.0K    tmp
  608M    usr
  506M    var
  0       vmlinuz
  </code></pre>
  
  <p>Results of <code>lsof | grep deleted</code>:</p>
  
  <pre><code>mysqld     1356      mysql    4u      REG              253,0           0    1835011 /tmp/ib4jBFkc (deleted)
      mysqld     1356      mysql    5u      REG              253,0           0    1835012 /tmp/ibcE99rr (deleted)
      mysqld     1356      mysql    6u      REG              253,0           0    1835013 /tmp/ibrxYEzG (deleted)
      mysqld     1356      mysql    7u      REG              253,0           0    1835014 /tmp/ibK95UJV (deleted)
      mysqld     1356      mysql   11u      REG              253,0           0    1835015 /tmp/iboOi8Ua (deleted)
      nginx     30057       root    2w      REG              253,0           0     789548 /var/log/nginx/error.log (deleted)
      nginx     30057       root    5w      REG              253,0 37730323404     268273 /etc/nginx/off (deleted)
      nginx     30057       root    6w      REG              253,0           0     789548 /var/log/nginx/error.log (deleted)
      nginx     30058   www-data    2w      REG              253,0           0     789548 /var/log/nginx/error.log (deleted)
      nginx     30058   www-data    5w      REG              253,0 37730323404     268273 /etc/nginx/off (deleted)
      nginx     30058   www-data    6w      REG              253,0           0     789548 /var/log/nginx/error.log (deleted)
      nginx     30059   www-data    2w      REG              253,0           0     789548 /var/log/nginx/error.log (deleted)
      nginx     30059   www-data    5w      REG              253,0 37730323404     268273 /etc/nginx/off (deleted)
      nginx     30059   www-data    6w      REG              253,0           0     789548 /var/log/nginx/error.log (deleted)
  </code></pre>