0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

OCI Cloud Free Tier をもぎ取れ その13

Posted at

概要

OCI Cloud Free Tierを取得してみた。
asdfでコンパイルが始まるとwebが動かなくなる対策。

手順

freeで確認。

$ free -h
			   total		used		free	  shared  buff/cache   available
Mem:		   958Mi	   236Mi	   128Mi	   1.0Mi	   593Mi	   574Mi
Swap:			 0B		  0B		  0B

swapfileを設定。

$ sudo fallocate -l 1G /swapfile

$ sudo chmod 600 /swapfile

$ sudo mkswap /swapfile
Setting up swapspace version 1, size = 1024 MiB (1073737728 bytes)
no label, UUID=9a9a2ade-54a1-4a22-bedb-0cc0120c8a24

$ sudo swapon /swapfile

$ free -h
               total        used        free      shared  buff/cache   available
Mem:           958Mi       562Mi        70Mi        26Mi       325Mi       225Mi
Swap:          1.0Gi          0B       1.0Gi

$ top
top - 00:09:24 up 3 min,  1 user,  load average: 0.08, 0.27, 0.14
Tasks: 119 total,   1 running, 118 sleeping,   0 stopped,   0 zombie
%Cpu(s):  0.2 us,  0.0 sy,  0.0 ni, 99.7 id,  0.0 wa,  0.0 hi,  0.0 si,  0.2 st
MiB Mem :    958.8 total,     70.2 free,    562.7 used,    325.9 buff/cache
MiB Swap:   1024.0 total,   1024.0 free,      0.0 used.    225.4 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
    653 mysql     20   0 1786068 404724  29184 S   0.3  41.2   0:05.92 mysqld
      1 root      20   0  166184  11252   8308 S   0.0   1.1   0:09.07 systemd
      2 root      20   0       0      0      0 S   0.0   0.0   0:00.00 kthreadd
      3 root      20   0       0      0      0 S   0.0   0.0   0:00.00 pool_workqueue_release
      4 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/R-rcu_g
      5 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/R-rcu_p
      6 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/R-slub_
      7 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/R-netns
      8 root      20   0       0      0      0 I   0.0   0.0   0:00.00 kworker/0:0-events
      9 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/0:0H-events_highpri
     10 root      20   0       0      0      0 I   0.0   0.0   0:00.75 kworker/0:1-events
     11 root      20   0       0      0      0 I   0.0   0.0   0:00.28 kworker/u4:0-events_unbound
     12 root       0 -20       0      0      0 I   0.0   0.0   0:00.00 kworker/R-mm_pe
     13 root      20   0       0      0      0 I   0.0   0.0   0:00.00 rcu_tasks_rude_kthread
     14 root      20   0       0      0      0 I   0.0   0.0   0:00.00 rcu_tasks_trace_kthread
     15 root      20   0       0      0      0 S   0.0   0.0   0:00.16 ksoftirqd/0
     16 root      20   0       0      0      0 I   0.0   0.0   0:00.26 rcu_sched
     17 root      rt   0       0      0      0 S   0.0   0.0   0:00.07 migration/0
     18 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/0
     19 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/0
     20 root      20   0       0      0      0 S   0.0   0.0   0:00.00 cpuhp/1
     21 root     -51   0       0      0      0 S   0.0   0.0   0:00.00 idle_inject/1
     22 root      rt   0       0      0      0 S   0.0   0.0   0:00.20 migration/1

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?