|
楼主 |
发表于 2019-1-8 16:49:09
|
显示全部楼层
本帖最后由 chunjiu 于 2019-1-8 16:52 编辑
经过反复的细调和整理, 测试单用户下 gitea 运转时对系统资源的消耗不算大,
所以只要有 1GB 的内存就已经可以正常使用了。
过段时间待系统完全整理好之后,再看看三四个用户并发时的资源消耗情况。
PS: 改错字,另外补充 ~ 一个七百兆的项目首次推送用了半分钟左右。
- top - 16:44:46 up 2:21, 4 users, load average: 0.24, 0.35, 0.20
- Tasks: 144 total, 1 running, 89 sleeping, 0 stopped, 0 zombie
- %Cpu(s): 0.3 us, 0.3 sy, 0.0 ni, 99.3 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
- KiB Mem : 1024068 total, 505240 free, 143260 used, 375568 buff/cache
- KiB Swap: 512032 total, 512032 free, 0 used. 849540 avail Mem
- PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
- 4277 sam 20 0 6660 2668 2168 R 2.0 0.3 0:02.96 top
- 2372 root 20 0 0 0 0 I 0.3 0.0 0:02.49 kworker/2:1
- 1 root 20 0 29140 6348 4500 S 0.0 0.6 0:05.24 systemd
- 2 root 20 0 0 0 0 S 0.0 0.0 0:00.02 kthreadd
- 4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/0:+
- 6 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_+
- 7 root 20 0 0 0 0 S 0.0 0.0 0:00.40 ksoftirqd/0
- 8 root 20 0 0 0 0 I 0.0 0.0 0:00.71 rcu_sched
- 9 root 20 0 0 0 0 I 0.0 0.0 0:00.00 rcu_bh
- 10 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/0
- 11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
- 12 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
- 13 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/1
- 14 root 20 0 0 0 0 S 0.0 0.0 0:00.25 ksoftirqd/1
- 16 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/1:+
- 17 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/2
- 18 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/2
复制代码 |
|