全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 426|回复: 1

[经验] Debian 创建交换文件

[复制链接]
发表于 2022-7-17 10:26:34 | 显示全部楼层 |阅读模式
yabs跑不起来,查资料说可能是没有交换文件,可以按照下面的方法创建一个交换文件。

  1. fallocate -l 4G /swapfile
  2. chmod 600 /swapfile
  3. mkswap /swapfile
  4. swapon /swapfile
  5. swapon -s
复制代码

  1. nano /etc/fstab
复制代码


添加一行

  1. /swapfile   none    swap    sw    0   0
复制代码


有了交换文件,yabs就可以跑了

  1. curl -sL yabs.sh | bash
复制代码

  1. # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
  2. #              Yet-Another-Bench-Script              #
  3. #                     v2022-06-11                    #
  4. # https://github.com/masonr/yet-another-bench-script #
  5. # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

  6. Sun Jul 17 01:54:09 UTC 2022

  7. Basic System Information:
  8. ---------------------------------
  9. Uptime     : 46 days, 4 hours, 18 minutes
  10. Processor  : AMD Ryzen 9 3950X 16-Core Processor
  11. CPU cores  : 1 [url=home.php?mod=space&uid=175]@[/url] 3499.998 MHz
  12. AES-NI     : ✔ Enabled
  13. VM-x/AMD-V : ✔ Enabled
  14. RAM        : 598.4 MiB
  15. Swap       : 1024.0 MiB
  16. Disk       : 16.7 GiB
  17. Distro     : Debian GNU/Linux 11 (bullseye)
  18. Kernel     : 5.10.0-14-amd64

  19. fio Disk Speed Tests (Mixed R/W 50/50):
  20. ---------------------------------
  21. Block Size | 4k            (IOPS) | 64k           (IOPS)
  22.   ------   | ---            ----  | ----           ----
  23. Read       | 193.90 MB/s  (48.4k) | 439.51 MB/s   (6.8k)
  24. Write      | 194.41 MB/s  (48.6k) | 441.82 MB/s   (6.9k)
  25. Total      | 388.32 MB/s  (97.0k) | 881.34 MB/s  (13.7k)
  26.            |                      |                     
  27. Block Size | 512k          (IOPS) | 1m            (IOPS)
  28.   ------   | ---            ----  | ----           ----
  29. Read       | 701.29 MB/s   (1.3k) | 1.54 GB/s     (1.5k)
  30. Write      | 738.55 MB/s   (1.4k) | 1.64 GB/s     (1.6k)
  31. Total      | 1.43 GB/s     (2.8k) | 3.19 GB/s     (3.1k)

  32. iperf3 Network Speed Tests (IPv4):
  33. ---------------------------------
  34. Provider        | Location (Link)           | Send Speed      | Recv Speed     
  35.                 |                           |                 |               
  36. Clouvider       | London, UK (10G)          | 702 Mbits/sec   | 89.8 Mbits/sec
  37. Online.net      | Paris, FR (10G)           | 748 Mbits/sec   | busy           
  38. Hybula          | The Netherlands (40G)     | 770 Mbits/sec   | 565 Mbits/sec  
  39. Uztelecom       | Tashkent, UZ (10G)        | 628 Mbits/sec   | 159 Mbits/sec  
  40. Clouvider       | NYC, NY, US (10G)         | 819 Mbits/sec   | 242 Mbits/sec  
  41. Clouvider       | Dallas, TX, US (10G)      | 739 Mbits/sec   | 172 Mbits/sec  
  42. Clouvider       | Los Angeles, CA, US (10G) | 922 Mbits/sec   | 775 Mbits/sec  

  43. Geekbench 5 Benchmark Test:
  44. ---------------------------------
  45. Test            | Value                        
  46.                 |                              
  47. Single Core     | 849                           
  48. Multi Core      | 823                           
  49. Full Test       | https://browser.geekbench.com/v5/cpu/16058142
复制代码
发表于 2022-7-17 10:48:05 来自手机 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-16 04:52 , Processed in 0.074318 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表