Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Why does E3 SSD dedi seem faster than Ryzen 7950X NVMe 2 vCore VPS at `sha256sum -c`?

2

Comments

  • oplinkoplink Member, Patron Provider

    My guess would be your VPS has no swap space, and your DEDI has swap space to use.

    How large is the file your trying to SUM?

    Thanks
    Ryan

    Thanked by 1Not_Oles
  • Not_OlesNot_Oles Member, Patron Provider

    @oplink said:
    My guess would be your VPS has no swap space, and your DEDI has swap space to use.

    Correct!

    How large is the file your trying to SUM?

    sha256sum target file is 4.6 GB. The VPS has 4 GB RAM and zero swap space. The dedi has 64 GB of RAM and 4 GB swap space.

    root@Ryzen-2-vCore-VPS:~# ls -lh chronos-20240904.tgz.cpt
    -rw------- 1 root root 4.6G Sep  4 21:29 chronos-20240904.tgz.cpt
    root@Ryzen-2-vCore-VPS:~# free -h
                   total        used        free      shared  buff/cache   available
    Mem:           3.8Gi       338Mi       130Mi       524Ki       3.6Gi       3.5Gi
    Swap:             0B          0B          0B
    root@Ryzen-2-vCore-VPS:~# swapon
    root@Ryzen-2-vCore-VPS:~# 
    
    root@E3-Dedi:~# free -h
                   total        used        free      shared  buff/cache   available
    Mem:            62Gi       8.8Gi       605Mi       2.0Mi        53Gi        53Gi
    Swap:          4.0Gi        60Mi       3.9Gi
    root@E3-Dedi:~# swapon
    NAME      TYPE      SIZE  USED PRIO
    /dev/dm-0 partition   4G 60.3M   -2
    root@E3-Dadi:~# 
    

    Thanks
    Ryan

    Thanks for helping, Ryan!

    The question in my mind now is, "How can we understand the cause of the persistent I/O wait?"

    Are you suggesting that the cause of the persistent file I/O wait is simply that there isn't enough RAM in the VPS to accept the size of the target file?

    I haven't looked at the source for sha256sum but wouldn't it be surprising if sha256sum required the entire target file to be moved into RAM?

    In the above vmstat output, it looks like there consistently is free RAM shown by the second column, titled "free." But this is the first time I've ever tried vmstat so I have a lot to learn, that's for sure!

    Thanks again! :star:

    Best! <3

  • Your E3 has 4 cores vs 2 cores. Run comparisons limiting E3 to two cores.

    Thanked by 1Not_Oles
  • edited September 2024

    When doing your testing make sure to clear caches so that the dedi is not given an advantage from potential caching. This will then reveal a CPU or disk bottleneck.

    i.e. sync && echo 3 > /proc/sys/vm/drop_caches

    Or you could generate say a 2GB random file, copy to the to other machine, load it into RAM (maybe ramdisk for determinism) on both, and then compare again.

    Thanked by 1Not_Oles
  • Not_OlesNot_Oles Member, Patron Provider

    BTW, another thing you could do is use dd to read the file (with a bigger block size) and see if that reduces I/O wait (sha256sum seems to read in chunks of 32 kB only). Unfortunately, you can't do that with the -c options, but you can still just try:

    dd if=chronos-20240904.tgz.cpt bs=1M | /usr/bin/time -v sha256sum -

    root@Ryzen-2-vCore-VPS:~# who am i
    root     pts/1        2024-09-06 20:56 (xxx.xxx.xxx.xxx)
    root@Ryzen-2-vCore-VPS:~# date; \
    > dd if=chronos-20240904.tgz.cpt bs=1M | \
    > /usr/bin/time -v sha256sum -c chronos-20240904.tgz.cpt.SHA256
    Fri Sep  6 09:01:18 PM UTC 2024
    chronos-20240904.tgz.cpt: OK
            Command being timed: "sha256sum -c chronos-20240904.tgz.cpt.SHA256"
            User time (seconds): 9.61
            System time (seconds): 0.42
            Percent of CPU this job got: 93%
            Elapsed (wall clock) time (h:mm:ss or m:ss): 0:10.75
            Average shared text size (kbytes): 0
            Average unshared data size (kbytes): 0
            Average stack size (kbytes): 0
            Average total size (kbytes): 0
            Maximum resident set size (kbytes): 2052
            Average resident set size (kbytes): 0
            Major (requiring I/O) page faults: 1
            Minor (reclaiming a frame) page faults: 101
            Voluntary context switches: 399
            Involuntary context switches: 63
            Swaps: 0
            File system inputs: 6446344
            File system outputs: 0
            Socket messages sent: 0
            Socket messages received: 0
            Signals delivered: 0
            Page size (bytes): 4096
            Exit status: 0
    root@Ryzen-2-vCore-VPS:~# date
    Fri Sep  6 09:01:33 PM UTC 2024
    root@Ryzen-2-vCore-VPS:~# 
    
    root@Ryzen-2-vCore-VPS:~# who am i
    root     pts/0        2024-09-06 20:33 (xxx.xxx.xxx.xxx)
    root@Ryzen-2-vCore-VPS:~# uptime
     21:00:44 up 21:13,  2 users,  load average: 0.00, 0.00, 0.00
    root@Ryzen-2-vCore-VPS:~# date; vmstat 1
    Fri Sep  6 09:01:15 PM UTC 2024
    procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
     r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
     1  0      0 129352   1876 3752600    0    0   161    76  172   84  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  348  154  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  275  132  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  299  117  0  0 100  0  0
     2  0      0 129352   1876 3752600    0    0 189784     0 1300  656 20  2 78  1  0
     2  0      0 129352   1876 3752600    0    0 438016     0 2483 1268 43  3 50  4  0
     2  0      0 129352   1876 3752600    0    0 461312     0 2616 1171 47  3 49  1  0
     2  0      0 129352   1876 3752600    0    0 414464     1 2347  997 42  2 50  7  0
     2  0      0 129352   1876 3752600    0    0 444672     0 2471 1087 46  2 50  3  0
     2  0      0 129352   1876 3752600    0    0 453160     0 2550 1121 46  3 50  2  0
     2  0      0 129352   1876 3752600    0    0 451072     0 2579 1199 46  2 50  3  0
     2  0      0 129352   1876 3752600    0    0 273024     0 1759  714 48  2 50  1  0
     2  0      0 129352   1876 3752600    0    0     0     0  520  156 48  3 50  0  0
     2  0      0 129352   1876 3752600    0    0 99928     0  896  737 33  2 50 16  0
     2  0      0 129352   1876 3752600    0    0     0     0  525  150 48  3 50  0  0
     1  0      0 129352   1876 3752600    0    0  1056     0  461  182 16  1 84  0  0
    procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
     r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
     1  0      0 129352   1876 3752600    0    0     0     0  363  175  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  310  135  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  426  174  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0   164     0  419  184  1  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  394  178  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  241  121  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  345  154  0  0 100  0  0
    ^C
    root@Ryzen-2-vCore-VPS:~# date
    Fri Sep  6 09:01:39 PM UTC 2024
    root@Ryzen-2-vCore-VPS:~# 
    

    Did another run to test consistency.

    root@Ryzen-2-vCore-VPS:~# date; dd if=chronos-20240904.tgz.cpt bs=1M | /usr/bin/time -v sha256sum -c chronos-20240904.tgz.cpt.SHA256; date
    Fri Sep  6 09:17:26 PM UTC 2024
    chronos-20240904.tgz.cpt: OK
            Command being timed: "sha256sum -c chronos-20240904.tgz.cpt.SHA256"
            User time (seconds): 9.84
            System time (seconds): 0.44
            Percent of CPU this job got: 52%
            Elapsed (wall clock) time (h:mm:ss or m:ss): 0:19.62
            Average shared text size (kbytes): 0
            Average unshared data size (kbytes): 0
            Average stack size (kbytes): 0
            Average total size (kbytes): 0
            Maximum resident set size (kbytes): 2152
            Average resident set size (kbytes): 0
            Major (requiring I/O) page faults: 1
            Minor (reclaiming a frame) page faults: 103
            Voluntary context switches: 4994
            Involuntary context switches: 572
            Swaps: 0
            File system inputs: 5861048
            File system outputs: 0
            Socket messages sent: 0
            Socket messages received: 0
            Signals delivered: 0
            Page size (bytes): 4096
            Exit status: 0
    Fri Sep  6 09:17:46 PM UTC 2024
    root@Ryzen-2-vCore-VPS:~# 
    

    sha256sum seems to read in chunks of 32 kB only

    So, chunk size is the answer, at least on the Ryzen VPS?

    I can see how the E3 could just keep on reading because the E3 has plenty of memory. But the VPS, even without much memory, seems to work fast when we use 1 M block size with dd. So it seems that the chunk size issue is at least partly independent of overall memory size. Maybe the root of the issue not in the memory size, but, instead, is in the increased number of read operations when the chunk size is small? How is the chunk size issue (memory size or number of operations, or maybe both) avoided on the E3 Dedi?

    Thanks yet again!

  • @TimboJones said:
    Your E3 has 4 cores vs 2 cores. Run comparisons limiting E3 to two cores.

    That is not a contributing factor that single threaded processes.

    Thanked by 1Not_Oles
  • @Not_Oles said:

    BTW, another thing you could do is use dd to read the file (with a bigger block size) and see if that reduces I/O wait (sha256sum seems to read in chunks of 32 kB only). Unfortunately, you can't do that with the -c options, but you can still just try:

    dd if=chronos-20240904.tgz.cpt bs=1M | /usr/bin/time -v sha256sum -

    root@Ryzen-2-vCore-VPS:~# who am i
    root     pts/1        2024-09-06 20:56 (xxx.xxx.xxx.xxx)
    root@Ryzen-2-vCore-VPS:~# date; \
    > dd if=chronos-20240904.tgz.cpt bs=1M | \
    > /usr/bin/time -v sha256sum -c chronos-20240904.tgz.cpt.SHA256
    Fri Sep  6 09:01:18 PM UTC 2024
    chronos-20240904.tgz.cpt: OK
            Command being timed: "sha256sum -c chronos-20240904.tgz.cpt.SHA256"
            User time (seconds): 9.61
            System time (seconds): 0.42
            Percent of CPU this job got: 93%
            Elapsed (wall clock) time (h:mm:ss or m:ss): 0:10.75
            Average shared text size (kbytes): 0
            Average unshared data size (kbytes): 0
            Average stack size (kbytes): 0
            Average total size (kbytes): 0
            Maximum resident set size (kbytes): 2052
            Average resident set size (kbytes): 0
            Major (requiring I/O) page faults: 1
            Minor (reclaiming a frame) page faults: 101
            Voluntary context switches: 399
            Involuntary context switches: 63
            Swaps: 0
            File system inputs: 6446344
            File system outputs: 0
            Socket messages sent: 0
            Socket messages received: 0
            Signals delivered: 0
            Page size (bytes): 4096
            Exit status: 0
    root@Ryzen-2-vCore-VPS:~# date
    Fri Sep  6 09:01:33 PM UTC 2024
    root@Ryzen-2-vCore-VPS:~# 
    
    root@Ryzen-2-vCore-VPS:~# who am i
    root     pts/0        2024-09-06 20:33 (xxx.xxx.xxx.xxx)
    root@Ryzen-2-vCore-VPS:~# uptime
     21:00:44 up 21:13,  2 users,  load average: 0.00, 0.00, 0.00
    root@Ryzen-2-vCore-VPS:~# date; vmstat 1
    Fri Sep  6 09:01:15 PM UTC 2024
    procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
     r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
     1  0      0 129352   1876 3752600    0    0   161    76  172   84  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  348  154  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  275  132  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  299  117  0  0 100  0  0
     2  0      0 129352   1876 3752600    0    0 189784     0 1300  656 20  2 78  1  0
     2  0      0 129352   1876 3752600    0    0 438016     0 2483 1268 43  3 50  4  0
     2  0      0 129352   1876 3752600    0    0 461312     0 2616 1171 47  3 49  1  0
     2  0      0 129352   1876 3752600    0    0 414464     1 2347  997 42  2 50  7  0
     2  0      0 129352   1876 3752600    0    0 444672     0 2471 1087 46  2 50  3  0
     2  0      0 129352   1876 3752600    0    0 453160     0 2550 1121 46  3 50  2  0
     2  0      0 129352   1876 3752600    0    0 451072     0 2579 1199 46  2 50  3  0
     2  0      0 129352   1876 3752600    0    0 273024     0 1759  714 48  2 50  1  0
     2  0      0 129352   1876 3752600    0    0     0     0  520  156 48  3 50  0  0
     2  0      0 129352   1876 3752600    0    0 99928     0  896  737 33  2 50 16  0
     2  0      0 129352   1876 3752600    0    0     0     0  525  150 48  3 50  0  0
     1  0      0 129352   1876 3752600    0    0  1056     0  461  182 16  1 84  0  0
    procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
     r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
     1  0      0 129352   1876 3752600    0    0     0     0  363  175  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  310  135  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  426  174  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0   164     0  419  184  1  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  394  178  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  241  121  0  0 100  0  0
     1  0      0 129352   1876 3752600    0    0     0     0  345  154  0  0 100  0  0
    ^C
    root@Ryzen-2-vCore-VPS:~# date
    Fri Sep  6 09:01:39 PM UTC 2024
    root@Ryzen-2-vCore-VPS:~# 
    

    Did another run to test consistency.

    root@Ryzen-2-vCore-VPS:~# date; dd if=chronos-20240904.tgz.cpt bs=1M | /usr/bin/time -v sha256sum -c chronos-20240904.tgz.cpt.SHA256; date
    Fri Sep  6 09:17:26 PM UTC 2024
    chronos-20240904.tgz.cpt: OK
            Command being timed: "sha256sum -c chronos-20240904.tgz.cpt.SHA256"
            User time (seconds): 9.84
            System time (seconds): 0.44
            Percent of CPU this job got: 52%
            Elapsed (wall clock) time (h:mm:ss or m:ss): 0:19.62
            Average shared text size (kbytes): 0
            Average unshared data size (kbytes): 0
            Average stack size (kbytes): 0
            Average total size (kbytes): 0
            Maximum resident set size (kbytes): 2152
            Average resident set size (kbytes): 0
            Major (requiring I/O) page faults: 1
            Minor (reclaiming a frame) page faults: 103
            Voluntary context switches: 4994
            Involuntary context switches: 572
            Swaps: 0
            File system inputs: 5861048
            File system outputs: 0
            Socket messages sent: 0
            Socket messages received: 0
            Signals delivered: 0
            Page size (bytes): 4096
            Exit status: 0
    Fri Sep  6 09:17:46 PM UTC 2024
    root@Ryzen-2-vCore-VPS:~# 
    

    sha256sum seems to read in chunks of 32 kB only

    So, chunk size is the answer, at least on the Ryzen VPS?

    I can see how the E3 could just keep on reading because the E3 has plenty of memory. But the VPS, even without much memory, seems to work fast when we use 1 M block size with dd. So it seems that the chunk size issue is at least partly independent of overall memory size. Maybe the root of the issue not in the memory size, but, instead, is in the increased number of read operations when the chunk size is small? How is the chunk size issue (memory size or number of operations, or maybe both) avoided on the E3 Dedi?

    Thanks yet again!

    You’re correct in suspecting that the chunk size plays a key role in performance during read operations, and that it’s not entirely tied to the overall memory size.

    When performing read operations, especially with tools like dd, the block size (or chunk size) determines how much data is read from the disk in a single operation.

    A smaller block size results in more frequent read operations, which can increase overhead due to the need to manage and process each request. Larger block sizes reduce the number of operations needed but require more memory to handle larger chunks of data.

    Thanked by 1Not_Oles
  • Not_OlesNot_Oles Member, Patron Provider

    From the OP:

    @Not_Oles said: For the E3 dedi the wall clock "real" time was 22.655 seconds, and, for the Ryzen, 30.658 seconds.

    Now, using dd to increase block size for sha256sum.

    • First run

    @Not_Oles said: Elapsed (wall clock) time (h:mm:ss or m:ss): 0:10.75

    This looks enough faster than the E3 Dedi. :)

    • Second run

    @Not_Oles said: Elapsed (wall clock) time (h:mm:ss or m:ss): 0:19.62

    But this one is almost twice as long. Why? :)

  • Not_OlesNot_Oles Member, Patron Provider

    I added some swap. Swap didn't seem to help the I/O wait. I also wanted to see whether another file I/O program would show I/O wait like sha256sum. So, just for some quick fun, I ran a yabs, which calls fio. I ran vmstat while the Yabs was running. Note that the interval for this vmstat was 6 seconds instead of 1 second. This time I ran vmstat in the background instead of in a separate terminal. Here's the Yabs result, and I will post the vmstat results in a moment.

    root@Ryzen-2-vCore-VPS:~# vmstat 6 > vmstat-out 2>&1 &
    [1] 9571
    root@Ryzen-2-vCore-VPS:~# curl -sL yabs.sh | bash
    # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
    #              Yet-Another-Bench-Script              #
    #                     v2024-06-09                    #
    # https://github.com/masonr/yet-another-bench-script #
    # ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
    
    Mon Sep  9 12:03:22 AM UTC 2024
    
    Basic System Information:
    ---------------------------------
    Uptime     : 3 days, 16 hours, 0 minutes
    Processor  : AMD Ryzen 9 7950X 16-Core Processor
    CPU cores  : 2 @ 4499.980 MHz
    AES-NI     : ✔ Enabled
    VM-x/AMD-V : ✔ Enabled
    RAM        : 3.8 GiB
    Swap       : 4.0 GiB
    Disk       : 249.9 GiB
    Distro     : Debian GNU/Linux 12 (bookworm)
    Kernel     : 6.1.0-9-amd64
    VM Type    : KVM
    IPv4/IPv6  : ✔ Online / ✔ Online
    
    IPv6 Network Information:
    ---------------------------------
    ISP        : XXXXXXXXXXXXXXXXXXXXXXXX
    ASN        : XXXXXXXXXXXXXXXXXXXXXXXX
    Host       : XXXXXXXXXXXXXXXXXXXXXXXX
    Location   : XXXXXXXXXXXXXXXXX
    Country    : United States
    
    fio Disk Speed Tests (Mixed R/W 50/50) (Partition /dev/sda1):
    ---------------------------------
    Block Size | 4k            (IOPS) | 64k           (IOPS)
      ------   | ---            ----  | ----           ---- 
    Read       | 455.40 MB/s (113.8k) | 3.85 GB/s    (60.2k)
    Write      | 456.60 MB/s (114.1k) | 3.87 GB/s    (60.6k)
    Total      | 912.00 MB/s (228.0k) | 7.73 GB/s   (120.9k)
               |                      |                     
    Block Size | 512k          (IOPS) | 1m            (IOPS)
      ------   | ---            ----  | ----           ---- 
    Read       | 5.10 GB/s     (9.9k) | 4.41 GB/s     (4.3k)
    Write      | 5.37 GB/s    (10.5k) | 4.70 GB/s     (4.5k)
    Total      | 10.48 GB/s   (20.4k) | 9.11 GB/s     (8.9k)
    
    iperf3 Network Speed Tests (IPv4):
    ---------------------------------
    Provider        | Location (Link)           | Send Speed      | Recv Speed      | Ping           
    -----           | -----                     | ----            | ----            | ----           
    Clouvider       | London, UK (10G)          | 1.75 Gbits/sec  | 1.79 Gbits/sec  | 103 ms         
    Eranium         | Amsterdam, NL (100G)      | 1.74 Gbits/sec  | 1.64 Gbits/sec  | --             
    Uztelecom       | Tashkent, UZ (10G)        | 1.02 Gbits/sec  | 824 Mbits/sec   | 222 ms         
    Leaseweb        | Singapore, SG (10G)       | 923 Mbits/sec   | 785 Mbits/sec   | 220 ms         
    Clouvider       | Los Angeles, CA, US (10G) | 2.92 Gbits/sec  | 4.17 Gbits/sec  | 37.2 ms        
    Leaseweb        | NYC, NY, US (10G)         | 5.28 Gbits/sec  | 4.43 Gbits/sec  | 35.5 ms        
    Edgoo           | Sao Paulo, BR (1G)        | 1.43 Gbits/sec  | 753 Mbits/sec   | 137 ms         
    
    iperf3 Network Speed Tests (IPv6):
    ---------------------------------
    Provider        | Location (Link)           | Send Speed      | Recv Speed      | Ping           
    -----           | -----                     | ----            | ----            | ----           
    Clouvider       | London, UK (10G)          | 1.70 Gbits/sec  | 1.75 Gbits/sec  | 103 ms         
    Eranium         | Amsterdam, NL (100G)      | 2.00 Gbits/sec  | 1.64 Gbits/sec  | 112 ms         
    Uztelecom       | Tashkent, UZ (10G)        | 987 Mbits/sec   | busy            | 205 ms         
    Leaseweb        | Singapore, SG (10G)       | 926 Mbits/sec   | 774 Mbits/sec   | --             
    Clouvider       | Los Angeles, CA, US (10G) | 2.58 Gbits/sec  | 4.08 Gbits/sec  | 36.2 ms        
    Leaseweb        | NYC, NY, US (10G)         | 5.64 Gbits/sec  | 4.31 Gbits/sec  | 35.4 ms        
    Edgoo           | Sao Paulo, BR (1G)        | 1.00 Gbits/sec  | 1.35 Gbits/sec  | 137 ms         
    
    Geekbench 6 Benchmark Test:
    ---------------------------------
    Test            | Value                         
                    |                               
    Single Core     | 2515                          
    Multi Core      | 4447                          
    Full Test       | https://browser.geekbench.com/v6/cpu/7683692
    
    YABS completed in 11 min 53 sec
    root@Ryzen-2-vCore-VPS:~# fg
    vmstat 6 > vmstat-out 2>&1
    ^C
    root@Ryzen-2-vCore-VPS:~# 
    
  • Not_OlesNot_Oles Member, Patron Provider
    root@Ryzen-2-vCore-VPS:~# cat -n vmstat-out 
         1  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
         2   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
         3   1  0    572 138928   1876 3746624    0    0   116    74  173   84  0  0 100  0  0
         4   1  0    572 138928   1876 3746624    0    0     0     1  339  189  0  0 100  0  0
         5   1  0    572 138928   1876 3746624    0    0     0     1  285  194  0  0 100  0  0
         6   1  2    572 138928   1876 3746624    0    0    49 240391  844 1028  2  4 51 43  0
         7   2  0    572 138928   1876 3746624    0    0 785761 335577 42194 20746  4 21 52 22  0
         8   1  0    572 138928   1876 3746624    0    0 1150402 1193687 27078 16269  5 17 77  0  0
         9   1  0    572 138928   1876 3746624    0    0     0     0 11713  559  0  2 98  0  0
        10   1  0    572 138928   1876 3746624    0    0     1     0 6734  482  0  3 97  0  0
        11   1  0    572 138928   1876 3746624    0    0     0     0 7719 7060  0  5 95  0  0
        12   1  0    572 138928   1876 3746624    0    0     0     0 5803 5314  0  5 95  0  0
        13   1  0    572 138928   1876 3746624    0    0     0    22 15721  526  0  3 97  0  0
        14   1  0    572 138928   1876 3746624    0    0     0     0 9606  452  0  2 98  0  0
        15   1  0    572 138928   1876 3746624    0    0     0     0 15199 12519  0  2 98  0  0
        16   1  0    572 138928   1876 3746624    0    0     0     0 10142 9770  0  2 98  0  0
        17   1  0    572 138928   1876 3746624    0    0     0     0  286  204  0  0 100  0  0
        18   1  0    572 138928   1876 3746624    0    0     0     0 3120  323  0  4 96  0  0
        19   1  0    572 138928   1876 3746624    0    0     0     9 3474  400  0  2 98  0  0
        20   1  0    572 138928   1876 3746624    0    0     0     0  379  233  0  2 98  0  0
        21   1  0    572 138928   1876 3746624    0    0     0     0 5656 4238  0  2 98  0  0
        22   1  0    572 138928   1876 3746624    0    0     0    29 3223 2815  0  2 98  0  0
        23   1  0    572 138928   1876 3746624    0    0     0     0 3872  320  0  4 96  0  0
        24  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
        25   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
        26   1  0    572 138928   1876 3746624    0    0     0     3 5337  384  0  3 97  0  0
        27   1  0    572 138928   1876 3746624    0    0     0     1 4484 2900  0  2 97  0  0
        28   1  0    572 138928   1876 3746624    0    0     0     0 12163 8441  0  3 97  0  0
        29   1  0    572 138928   1876 3746624    0    0     0     0 12295 2799  0  3 96  0  0
        30   1  0    572 138928   1876 3746624    0    0     0    90 22461  803  0  4 95  1  0
        31   1  0    572 138928   1876 3746624    0    0     0    11 7195 2004  0  3 97  0  0
        32   1  0    572 138928   1876 3746624    0    0     0     0 19901 18090  0  7 93  0  0
        33   1  0    572 138928   1876 3746624    0    0     0    47 18924 9931  0  7 92  0  0
        34   1  0    572 138928   1876 3746624    0    0     0     0 29803 1175  0  8 92  0  0
        35   1  0    572 138928   1876 3746624    0    0     0     0 24200 9551  0  7 93  0  0
        36   1  0    572 138928   1876 3746624    0    0     0     3 36013 24124  0 15 84  0  0
        37   1  0    572 138928   1876 3746624    0    0     0     0 2456  329  0  3 97  0  0
        38   1  0    572 138928   1876 3746624    0    0     0     0 8374  492  0  3 97  0  0
        39   1  0    572 138928   1876 3746624    0    0     0    57 3260  576  0  3 97  1  0
        40   1  0    572 138928   1876 3746624    0    0     0     0 5966 4256  0  2 98  0  0
        41   1  0    572 138928   1876 3746624    0    0     0     2 6094 3897  0  1 98  0  0
        42   1  0    572 138928   1876 3746624    0    0     0     0 7115  433  0  3 97  0  0
        43   1  0    572 138928   1876 3746624    0    0     0     0 8904  515  0  3 97  0  0
        44   1  0    572 138928   1876 3746624    0    0     0     0 7956 6478  0  3 97  0  0
        45   2  0    572 138928   1876 3746624    0    0     0     1 13184 11447  0  4 96  0  0
        46   1  0    572 138928   1876 3746624    0    0     0     2 7723  519  0  2 97  0  0
        47  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
        48   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
        49   1  0    572 138928   1876 3746624    0    0     0     0 13976  604  0  4 95  0  0
        50   1  0    572 138928   1876 3746624    0    0     0     0 12171 7910  0  1 99  0  0
        51   2  0    572 138928   1876 3746624    0    0     0     0 17823 13196  0  2 98  0  0
        52   1  0    572 138928   1876 3746624    0    0     0     0 2553 1192  1  3 96  0  0
        53   1  0    572 138928   1876 3746624    0    0     0    54 4026  427  0  1 98  1  0
        54   1  0    572 138928   1876 3746624    0    0     0     0 1149  269  0  1 99  0  0
        55   1  0    572 138928   1876 3746624    0    0     0     0  430  222  0  0 100  0  0
        56   1  0    572 138928   1876 3746624    0    0     0     0  581  241  0  4 96  0  0
        57   1  0    572 138928   1876 3746624    0    0     0     0 6243  396  0  2 98  0  0
        58   1  0    572 138928   1876 3746624    0    0     0     5 2993  306  0  2 98  0  0
        59   2  0    572 138928   1876 3746624    0    0     0     1 9506 6072  0  4 96  0  0
        60   1  0    572 138928   1876 3746624    0    0     0     0 7866 6713  0  2 98  0  0
        61   1  0    572 138928   1876 3746624    0    0     0     0  301  182  0  0 100  0  0
        62   1  0    572 138928   1876 3746624    0    0     0     0 4760  361  0  2 98  0  0
        63   1  0    572 138928   1876 3746624    0    0     0     0 24371  700  0  5 95  0  0
        64   2  0    572 138928   1876 3746624    0    0     0     2 19078 7205  0  5 94  0  0
        65   1  0    572 138928   1876 3746624    0    0     0     1 36257 25194  0  8 92  0  0
        66   1  0    572 138928   1876 3746624    0    0     0     0 23524 9861  0  7 93  0  0
        67   1  0    572 138928   1876 3746624    0    0     0     0 31332 1300  0  9 91  0  0
        68   1  0    572 138928   1876 3746624    0    0     0     0 30865 16805  0 10 90  0  0
        69   1  0    572 138928   1876 3746624    0    0     0     3 24246 20366  0  9 91  0  0
        70  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
        71   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
        72   1  0    572 138928   1876 3746624    0    0     0     0 4794  398  0  3 97  0  0
        73   1  0    572 138928   1876 3746624    0    0     0    52 9151  412  0  2 98  0  0
        74   2  0    572 138928   1876 3746624    0    0     0     0 5880 3104  0  3 96  0  0
        75   1  0    572 138928   1876 3746624    0    0     0     0 14219 8466  0  4 96  0  0
        76   1  0    572 138928   1876 3746624    0    0    31 29333 6856 10894 15  7 77  1  0
        77   2  0    572 138928   1876 3746624    0    0     0 35825  405  198 14  0 84  2  0
        78   2  0    572 138928   1876 3746624    0    0     0    23  509  188 49  2 50  0  0
        79   1  0    572 138928   1876 3746624    0    0     0     0  414  190 14  0 85  0  0
        80   2  0    572 138928   1876 3746624    0    0     0     0  547  204 43  1 56  0  0
        81   1  0    572 138928   1876 3746624    0    0     0    35  483  216 28  1 70  1  0
        82   1  0    572 138928   1876 3746624    0    0     0 16196  400  208  8  0 91  1  0
        83   1  0    572 138928   1876 3746624    0    0     0     0  461  206 26  1 73  0  0
        84   2  0    572 138928   1876 3746624    0    0     0     0  397  212 11  1 88  0  0
        85   1  0    572 138928   1876 3746624    0    0     0     0  407  208 17  0 83  0  0
        86   1  0    572 138928   1876 3746624    0    0     0     9  425  204 24  0 76  0  0
        87   2  0    572 138928   1876 3746624    0    0     0     0  654  283 25  1 74  0  0
        88   1  0    572 138928   1876 3746624    0    0     0     1  613  307 18  1 81  0  0
        89   2  0    572 138928   1876 3746624    0    0     0     0  597  194 39  1 60  0  0
        90   1  0    572 138928   1876 3746624    0    0     0     0  592  204 34  1 66  0  0
        91   1  0    572 138928   1876 3746624    0    0     0    11  405  199  9  1 90  0  0
        92   2  0    572 138928   1876 3746624    0    0     0     0  529  203 23  1 77  0  0
        93  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
        94   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
        95   2  0    572 138928   1876 3746624    0    0     0     0  347  182  8  0 91  0  0
        96   1  0    572 138928   1876 3746624    0    0     0     1 2999  189 22  1 77  0  0
        97   2  0    572 138928   1876 3746624    0    0     0     0  533  185 36  1 63  0  0
        98   2  0    572 138928   1876 3746624    0    0     0     3  531  186 50  1 50  0  0
        99   2  0    572 138928   1876 3746624    0    0     0     0  404  184  8  1 92  0  0
       100   1  0    572 138928   1876 3746624    0    0     0     0  437  185 31  1 68  0  0
       101   1  0    572 138928   1876 3746624    0    0     0     0 4093  232 19  4 77  0  0
       102   2  0    572 138928   1876 3746624    0    0     0     7  485  211 12  2 86  0  0
       103   1  0    572 138928   1876 3746624    0    0     0     1  428  213 11  1 88  0  0
       104   1  0    572 138928   1876 3746624    0    0     0     0  474  206 35  1 64  0  0
       105   2  0    572 138928   1876 3746624    0    0  8827     0  508  560 28  1 69  1  0
       106   1  0    572 138928   1876 3746624    0    0     0     0  714  850 64  2 34  0  0
       107   3  0    572 138928   1876 3746624    0    0  5206    51  522  220 32  1 65  2  0
       108   1  0    572 138928   1876 3746624    0    0     0     1  500  221 39  1 60  0  0
       109   1  0    572 138928   1876 3746624    1 4898     1  4902 2737 1163 32  3 65  0  0
       110   3  0    572 138928   1876 3746624   10    0   596     0  927  885 53  2 45  0  0
       111   1  0    572 138928   1876 3746624    0    0     0     0 1944  397 47  2 51  0  0
       112   3  0    572 138928   1876 3746624    1    0  2333     0  973  298 56  2 42  1  0
       113   1  0    572 138928   1876 3746624    0    0     0     0  535  242 32  1 68  0  0
       114   3  0    572 138928   1876 3746624  140    0   247     1  702  304 79  0 20  2  0
       115   3  0    572 138928   1876 3746624    0    0     0     0  664  227 100  0  0  0  0
       116  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
       117   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
       118   3  0    572 138928   1876 3746624    2    0     2     0  678  228 100  0  0  0  0
       119   2  0    572 138928   1876 3746624   49    0   246     0  437  216 14  0 85  0  0
       120   1  0    572 138928   1876 3746624   23    0    23     0  861  642 42  1 57  0  0
       121   3  0    572 138928   1876 3746624    0    0  2102     0  590  238 41  0 58  0  0
       122   1  0    572 138928   1876 3746624    0    0     0     1  486  233 33  0 67  0  0
       123   1  0    572 138928   1876 3746624    6  231   311   231 1858  373 38  3 60  0  0
       124   1  0    572 138928   1876 3746624    1    0  1895     0  538  249 32  1 67  1  0
       125   1  0    572 138928   1876 3746624    0    0   683     0  439  226 21  1 78  0  0
       126   2  0    572 138928   1876 3746624    0    0    27     0  478  233 26  0 74  0  0
       127   1  0    572 138928   1876 3746624    0    0     0     0  603  262 70  0 29  0  0
       128   3  0    572 138928   1876 3746624    0    0   961     1 2437  229 38  2 60  0  0
       129   3  0    572 138928   1876 3746624    0    0  2339     0  458  208 11  2 87  0  0
       130   2  0    572 138928   1876 3746624    0    0  8039     0  390  204 11  2 86  1  0
       131   1  0    572 138928   1876 3746624    0    0     0     0  420  191 23  2 75  0  0
       132   1  0    572 138928   1876 3746624    0    0   281    22  504  253 36  1 63  0  0
       133   1  0    572 138928   1876 3746624  215    0   217     0  455  299  0  0 100  0  0
       134   1  0    572 138928   1876 3746624    0    0     0     1  344  174  0  0 100  0  0
       135   1  0    572 138928   1876 3746624   74    0    77     1  327  230  0  0 99  0  0
       136   1  0    572 138928   1876 3746624    0    0     0     7  300  176  0  0 100  0  0
       137   1  0    572 138928   1876 3746624    0    0     0     0  268  169  0  0 100  0  0
       138   1  0    572 138928   1876 3746624    0    0     0    78  301  179  0  0 99  1  0
       139  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
       140   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
       141   1  0    572 138928   1876 3746624    0    0     0     0  338  177  0  0 100  0  0
       142   1  0    572 138928   1876 3746624    0    0     0     1  294  180  0  0 100  0  0
       143   1  0    572 138928   1876 3746624    0    0     0    44  280  171  0  0 99  1  0
       144   1  0    572 138928   1876 3746624    0    0     0     0  324  189  0  0 100  0  0
       145   1  0    572 138928   1876 3746624    0    0     0     0  356  196  0  0 100  0  0
       146   1  0    572 138928   1876 3746624    0    0     0     0  349  181  0  0 100  0  0
       147   1  0    572 138928   1876 3746624    0    0     0     0  335  193  0  0 100  0  0
       148   1  0    572 138928   1876 3746624    0    0     0     4  318  184  0  0 100  0  0
       149   1  0    572 138928   1876 3746624    0    0     0     0  295  179  0  0 100  0  0
       150   1  0    572 138928   1876 3746624    0    0     0     0  304  168  0  0 100  0  0
       151   1  0    572 138928   1876 3746624    0    0     0     0  312  158  0  0 100  0  0
       152   1  0    572 138928   1876 3746624    0    0     0     0  361  191  0  0 100  0  0
       153   1  0    572 138928   1876 3746624    0    0     0     0  324  176  0  0 100  0  0
       154   1  0    572 138928   1876 3746624    0    0     3     1  291  180  0  0 100  0  0
       155   1  0    572 138928   1876 3746624    0    0     0     0  374  191  0  0 100  0  0
       156   1  0    572 138928   1876 3746624    0    0     0    74  356  192  0  0 99  1  0
       157   1  0    572 138928   1876 3746624    0    0     0     0  316  183  0  0 100  0  0
       158   1  0    572 138928   1876 3746624    0    0     0     0  332  186  0  0 100  0  0
       159   1  1    572 138928   1876 3746624    0    0     0    24  301  185  0  0 100  0  0
       160   1  0    572 138928   1876 3746624    0    0     0    44  324  178  0  0 99  1  0
       161   1  0    572 138928   1876 3746624    0    0     0     0  376  178  0  0 100  0  0
       162  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
       163   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
       164   1  0    572 138928   1876 3746624    0    0     0     0  377  190  0  0 100  0  0
       165   1  0    572 138928   1876 3746624    0    0     0     0  332  178  0  0 100  0  0
       166   1  0    572 138928   1876 3746624    0    0     0     3  309  191  0  0 100  0  0
       167   1  0    572 138928   1876 3746624    0    0     0     0  325  179  0  0 100  0  0
       168   1  0    572 138928   1876 3746624    0    0     0     1  347  186  0  0 100  0  0
       169   1  0    572 138928   1876 3746624    0    0     0     0  332  198  0  0 100  0  0
       170   1  0    572 138928   1876 3746624    0    0     0     0  327  185  0  0 100  0  0
       171   1  0    572 138928   1876 3746624    0    0     0     0  359  195  0  0 100  0  0
       172   1  0    572 138928   1876 3746624    0    0     0     0  336  193  0  0 100  0  0
       173   1  0    572 138928   1876 3746624    0    0     0     0  340  184  0  0 100  0  0
       174   1  0    572 138928   1876 3746624    0    0     0     1  354  196  0  0 100  0  0
       175   1  0    572 138928   1876 3746624    0    0     0     0  415  204  0  0 100  0  0
       176   1  0    572 138928   1876 3746624    0    0     0     0  346  199  0  0 100  0  0
       177   1  0    572 138928   1876 3746624    0    0     0     0  348  193  0  0 100  0  0
       178   1  0    572 138928   1876 3746624    0    0     0     0  323  164  0  0 100  0  0
       179   1  0    572 138928   1876 3746624    0    0     0     0  393  202  0  0 100  0  0
       180   1  0    572 138928   1876 3746624    0    0     0     1  344  192  0  0 100  0  0
       181   1  0    572 138928   1876 3746624    0    0     0     0  308  189  0  0 100  0  0
       182   1  0    572 138928   1876 3746624    0    0     0     0  312  178  0  0 100  0  0
       183   1  0    572 138928   1876 3746624    0    0     0     0  339  188  0  0 100  0  0
       184   1  0    572 138928   1876 3746624    0    0     0     0  301  179  0  0 100  0  0
       185  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
       186   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
       187   1  0    572 138928   1876 3746624    0    0     0     0  294  179  0  0 100  0  0
       188   1  0    572 138928   1876 3746624    0    0     0    26  270  189  0  0 99  1  0
       189   1  0    572 138928   1876 3746624    0    0     0     0  292  179  0  0 100  0  0
       190   1  0    572 138928   1876 3746624    0    0     0     0  298  174  0  0 100  0  0
       191   1  0    572 138928   1876 3746624    0    0     0     0  333  206  0  0 100  0  0
       192   1  0    572 138928   1876 3746624    0    0     0     0  275  176  0  0 100  0  0
       193   1  0    572 138928   1876 3746624    0    0     0     8  255  174  0  0 100  0  0
       194   1  0    572 138928   1876 3746624    0    0     0     1  294  186  0  0 100  0  0
       195   1  0    572 138928   1876 3746624    0    0     0     0  289  174  0  0 100  0  0
       196   1  0    572 138928   1876 3746624    0    0     0     0  288  183  0  0 100  0  0
       197   1  0    572 138928   1876 3746624    0    0     0     0  301  189  0  0 100  0  0
       198   1  0    572 138928   1876 3746624    0    0     0     0  260  185  0  0 100  0  0
       199   1  0    572 138928   1876 3746624    0    0     0     0  287  180  0  0 100  0  0
       200   1  0    572 138928   1876 3746624    0    0     0     1  305  174  0  0 100  0  0
       201   1  0    572 138928   1876 3746624    0    0     0     0  282  177  0  0 100  0  0
       202   1  0    572 138928   1876 3746624    0    0     0     0  289  175  0  0 100  0  0
       203   1  0    572 138928   1876 3746624    0    0     0     0  251  168  0  0 100  0  0
       204   1  0    572 138928   1876 3746624    0    0     0     1  282  178  0  0 100  0  0
       205   1  0    572 138928   1876 3746624    0    0     0     0  302  168  0  0 100  0  0
       206   1  0    572 138928   1876 3746624    0    0     0     1  275  176  0  0 100  0  0
       207   1  0    572 138928   1876 3746624    0    0     0     0  268  163  0  0 100  0  0
       208  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
       209   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
       210   1  0    572 138928   1876 3746624    0    0     0     0  276  191  0  0 100  0  0
       211   1  0    572 138928   1876 3746624    0    0     0     2  277  184  0  0 100  0  0
       212   1  0    572 138928   1876 3746624    0    0     0     6  314  189  0  0 100  0  0
       213   1  0    572 138928   1876 3746624    0    0     0    49  312  199  0  0 99  1  0
       214   1  0    572 138928   1876 3746624    0    0     0     1  285  174  0  0 100  0  0
       215   1  0    572 138928   1876 3746624    0    0     0     0  241  171  0  0 100  0  0
       216   1  0    572 138928   1876 3746624    0    0     0     0  289  188  0  0 100  0  0
       217   1  0    572 138928   1876 3746624    0    0     0     0  295  176  0  0 100  0  0
       218   1  0    572 138928   1876 3746624    0    0     0     0  271  176  0  0 100  0  0
       219   1  0    572 138928   1876 3746624    0    0     0     0  297  183  0  0 100  0  0
       220   1  0    572 138928   1876 3746624    0    0     0     1  248  175  0  0 100  0  0
       221   1  0    572 138928   1876 3746624    0    0     0     3  342  196  0  0 100  0  0
       222   1  0    572 138928   1876 3746624    0    0     0     0  310  174  0  0 100  0  0
       223   1  0    572 138928   1876 3746624    0    0     0     0  273  183  0  0 100  0  0
       224   1  0    572 138928   1876 3746624    0    0     0     0  279  170  0  0 100  0  0
       225   1  0    572 138928   1876 3746624    0    0     0     0  256  182  0  0 100  0  0
       226   1  0    572 138928   1876 3746624    0    0     0     1  297  180  0  0 100  0  0
       227   1  0    572 138928   1876 3746624    0    0     0     0  341  184  0  0 100  0  0
       228   1  0    572 138928   1876 3746624    0    0     0     0  265  172  0  0 100  0  0
       229   1  0    572 138928   1876 3746624    0    0     0     0  290  178  0  0 100  0  0
       230   1  0    572 138928   1876 3746624    0    0     0     0  249  170  0  0 100  0  0
       231  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
       232   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
       233   1  0    572 138928   1876 3746624    0    0     0     0  286  181  0  0 100  0  0
       234   1  0    572 138928   1876 3746624    0    0     0     1  314  176  0  0 100  0  0
       235   1  0    572 138928   1876 3746624    0    0     0     0  339  208  0  0 100  0  0
       236   1  0    572 138928   1876 3746624    0    0     0     0  351  196  0  0 100  0  0
    root@Ryzen-2-vCore-VPS:~#
    
  • Not_OlesNot_Oles Member, Patron Provider

    Here's adding some swap in case anypne's interested.

    root@Ryzen-2-vCore-VPS:~# cd /
    root@Ryzen-2-vCore-VPS:/# dd if=/dev/zero of=/swapfile bs=1024 count=4194304
    4194304+0 records in
    4194304+0 records out
    4294967296 bytes (4.3 GB, 4.0 GiB) copied, 7.20403 s, 596 MB/s
    root@Ryzen-2-vCore-VPS:/# ls -l swapfile 
    -rw-r--r-- 1 root root 4294967296 Sep  7 01:04 swapfile
    root@Ryzen-2-vCore-VPS:/# chown root:root swapfile 
    root@Ryzen-2-vCore-VPS:/# chmod 0600 swapfile 
    root@Ryzen-2-vCore-VPS:/# ls -l swapfile 
    -rw------- 1 root root 4294967296 Sep  7 01:04 swapfile
    root@Ryzen-2-vCore-VPS:/# mkswap swapfile
    Setting up swapspace version 1, size = 4 GiB (4294963200 bytes)
    no label, UUID=f4c27178-d1e8-4411-bca8-43aeda70da63
    root@Ryzen-2-vCore-VPS:/# swapon /swapfile 
    root@Ryzen-2-vCore-VPS:/# swapon
    NAME      TYPE SIZE USED PRIO
    /swapfile file   4G   0B   -2
    root@Ryzen-2-vCore-VPS:/#
    
  • Not_OlesNot_Oles Member, Patron Provider
          6   1  2    572 138928   1876 3746624    0    0    49 240391  844 1028  2  4 51 43  0
          7   2  0    572 138928   1876 3746624    0    0 785761 335577 42194 20746  4 21 52 22  0
    

    Looks like these two lines show significant I/O wait, 43% and 22%. So it seems that both fio and sha256sum experience significant I/O wait. Why? :)

  • Not_OlesNot_Oles Member, Patron Provider

    The provider of this very nice VPS asked me to retest with RAM doubled to 4 GB. The short answer seems to be that increasing the RAM doesn't help. Even with 4 GB RAM, there still is a lot of I/O wait.

    "very nice VPS" is not sarcasm. It really is a great VPS! And the provider's customer service is great as well!

    root@Ryzen-4-vCore-VPS:~# date; uptime
    Mon Sep  9 07:20:32 PM UTC 2024
     19:20:32 up 7 min,  2 users,  load average: 0.00, 0.00, 0.00
    root@Ryzen-4-vCore-VPS:~# nproc
    4
    root@Ryzen-4-vCore-VPS:~# vmstat 1 > vmstat-out 2>&1 &
    [1] 997
    root@Ryzen-4-vCore-VPS:~# date; dd if=chronos-20240904.tgz.cpt bs=1M | /usr/bin/time -v sha256sum -c chronos-20240904.tgz.cpt.SHA256; date
    Mon Sep  9 07:21:23 PM UTC 2024
    chronos-20240904.tgz.cpt: OK
            Command being timed: "sha256sum -c chronos-20240904.tgz.cpt.SHA256"
            User time (seconds): 9.80
            System time (seconds): 0.67
            Percent of CPU this job got: 32%
            Elapsed (wall clock) time (h:mm:ss or m:ss): 0:32.11
            Average shared text size (kbytes): 0
            Average unshared data size (kbytes): 0
            Average stack size (kbytes): 0
            Average total size (kbytes): 0
            Maximum resident set size (kbytes): 1984
            Average resident set size (kbytes): 0
            Major (requiring I/O) page faults: 2
            Minor (reclaiming a frame) page faults: 102
            Voluntary context switches: 9061
            Involuntary context switches: 482
            Swaps: 0
            File system inputs: 9567464
            File system outputs: 0
            Socket messages sent: 0
            Socket messages received: 0
            Signals delivered: 0
            Page size (bytes): 4096
            Exit status: 0
    Mon Sep  9 07:21:55 PM UTC 2024
    root@Ryzen-4-vCore-VPS:~# fg
    vmstat 1 > vmstat-out 2>&1
    ^C
    root@Ryzen-4-vCore-VPS:~# cat -n vmstat-out 
         1  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
         2   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
         3   1  0      0 3743848   1876 142920    0    0    78    13  109   81  0  0 100  0  0
         4   1  0      0 3743848   1876 142920    0    0     0     0  293  116  0  0 100  0  0
         5   1  0      0 3743848   1876 142920    0    0     0     0  377  153  0  0 100  0  0
         6   1  0      0 3743848   1876 142920    0    0     0     0  260  123  0  0 100  0  0
         7   1  0      0 3743848   1876 142920    0    0     0     0  288  165  0  0 100  0  0
         8   1  0      0 3743848   1876 142920    0    0     0     0  275  158  0  0 100  0  0
         9   1  0      0 3743848   1876 142920    0    0     0     4  256  169  0  0 100  0  0
        10   1  0      0 3743848   1876 142920    0    0     0     0  203  123  0  0 100  0  0
        11   1  0      0 3743848   1876 142920    0    0     0     0  245  131  0  0 100  0  0
        12   1  0      0 3743848   1876 142920    0    0     0     6  313  163  0  0 100  0  0
        13   1  0      0 3743848   1876 142920    0    0     0     0  311  157  0  0 100  0  0
        14   1  0      0 3743848   1876 142920    0    0     0     0  237  100  0  0 100  0  0
        15   1  0      0 3743848   1876 142920    0    0     0     4  280  152  0  0 100  0  0
        16   1  0      0 3743848   1876 142920    0    0     0     0  274  157  0  0 100  0  0
        17   1  0      0 3743848   1876 142920    0    0     0     0  250  137  0  0 100  0  0
        18   1  0      0 3743848   1876 142920    0    0     0     0  287  139  0  0 100  0  0
        19   1  0      0 3743848   1876 142920    0    0     0     0  283  102  0  0 100  0  0
        20   1  0      0 3743848   1876 142920    0    0     0     0  317  160  0  0 100  0  0
        21   1  0      0 3743848   1876 142920    0    0     0     4  316  159  0  0 100  0  0
        22   1  0      0 3743848   1876 142920    0    0     0     0  247  114  0  0 100  0  0
        23   1  0      0 3743848   1876 142920    0    0     0     0  219  111  0  0 100  0  0
        24  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
        25   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
        26   1  0      0 3743848   1876 142920    0    0     0     0  263  158  0  0 100  0  0
        27   1  0      0 3743848   1876 142920    0    0     0     0  239  135  0  0 100  0  0
        28   1  0      0 3743848   1876 142920    0    0     0     0  266  120  0  0 100  0  0
        29   1  0      0 3743848   1876 142920    0    0     0     4  268  137  0  0 100  0  0
        30   1  0      0 3743848   1876 142920    0    0     0     0  309  156  0  0 100  0  0
        31   1  0      0 3743848   1876 142920    0    0     0     0  236  130  0  0 100  0  0
        32   1  0      0 3743848   1876 142920    0    0     0     0  276  127  0  0 100  0  0
        33   1  0      0 3743848   1876 142920    0    0     0     0  357  191  0  0 100  0  0
        34   2  0      0 3743848   1876 142920    0    0 71380     0  603  466  4  1 87  8  0
        35   1  1      0 3743848   1876 142920    0    0 148736     4  910  751  8  2 74 17  0
        36   1  1      0 3743848   1876 142920    0    0 145152     0  881  706  6  2 75 17  0
        37   1  1      0 3743848   1876 142920    0    0 154368     0  993  747  7  2 74 16  0
        38   1  1      0 3743848   1876 142920    0    0 146176     0  929  767  8  2 74 17  0
        39   1  1      0 3743848   1876 142920    0    0 147968     0  853  687  7  2 74 16  0
        40   1  1      0 3743848   1876 142920    0    0 154624     0  871  764  7  2 74 16  0
        41   1  1      0 3743848   1876 142920    0    0 146688     4  849  727  8  2 73 17  0
        42   1  1      0 3743848   1876 142920    0    0 139008     0  824  708  6  2 74 17  0
        43   1  1      0 3743848   1876 142920    0    0 149504     0  888  736  7  2 74 16  0
        44   1  1      0 3743848   1876 142920    0    0 149248     0  942  740  9  1 74 17  0
        45   1  1      0 3743848   1876 142920    0    0 145408     9  905  741  8  1 74 17  0
        46   2  0      0 3743848   1876 142920    0    0 141056     0  849  786  7  2 74 17  0
        47  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
        48   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
        49   1  1      0 3743848   1876 142920    0    0 150528     4  930  817  8  3 73 16  0
        50   1  1      0 3743848   1876 142920    0    0 140544     0  824  730  7  2 74 17  0
        51   2  0      0 3743848   1876 142920    0    0 153344     0  876  793  7  3 74 16  0
        52   1  1      0 3743848   1876 142920    0    0 148992     0  884  773  8  2 73 17  0
        53   2  0      0 3743848   1876 142920    0    0 157184     0  893  720  8  2 74 16  0
        54   1  1      0 3743848   1876 142920    0    0 152064     0  915  808  8  3 72 16  0
        55   1  1      0 3743848   1876 142920    0    0 151296     8  926  771  7  2 74 17  0
        56   2  0      0 3743848   1876 142920    0    0 143104     0  869  773  8  2 74 17  0
        57   2  0      0 3743848   1876 142920    0    0 149760     0  888  788  8  3 72 16  0
        58   2  0      0 3743848   1876 142920    0    0 156416     0  854  774  8  2 74 16  0
        59   2  0      0 3743848   1876 142920    0    0 151296     0  865  775  8  2 74 16  0
        60   1  1      0 3743848   1876 142920    0    0 154112     0  988  887  7  2 74 16  0
        61   1  1      0 3743848   1876 142920    0    0 154112     4  961  943  7  2 74 16  0
        62   1  1      0 3743848   1876 142920    0    0 153088     0  970 1008  8  3 73 16  0
        63   1  1      0 3743848   1876 142920    0    0 152320     0  934 1038  6  2 75 17  0
        64   1  1      0 3743848   1876 142920    0    0 144896     0  909  969  7  3 73 17  0
        65   1  1      0 3743848   1876 142920    0    0 140032     0  888 1062  7  1 74 17  0
        66   2  0      0 3743848   1876 142920    0    0 141056     0  930 1093  6  2 74 17  0
        67   1  1      0 3743848   1876 142920    0    0 152576     4  926 1063  8  3 73 16  0
        68   1  0      0 3743848   1876 142920    0    0 99372     0  820  811  5  1 83 11  0
        69   1  0      0 3743848   1876 142920    0    0     0     0  492  213  0  0 100  0  0
        70  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
        71   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
        72   1  0      0 3743848   1876 142920    0    0     0     0  285  147  0  0 100  0  0
        73   1  0      0 3743848   1876 142920    0    0     0     0  333  197  0  0 100  0  0
        74   1  0      0 3743848   1876 142920    0    0     0     0  322  198  0  0 100  0  0
        75   1  0      0 3743848   1876 142920    0    0     0     4  338  197  0  0 100  0  0
    root@Ryzen-4-vCore-VPS:~# 
    
  • Could you ask your provider to temporarily increase your ram so that you can test using a ramdisk? At this point it’s really hard to tell if it is storage bounded or there are other limiting factors.

    Thanked by 1Not_Oles
  • jsgjsg Member, Resident Benchmarker

    Sorry @Not_Oles
    but I stopped reading the whole thread relatively early; too much quoted, too many (IMO) irrelevant numbers.

    What you experience doesn't surprise me at all, I see that all the time (I'm developing a lot in the crypto field, not as in "using crypto libraries" but as in "implementing algorithms").

    IMO the decisive - and so very often overlooked - point is memory, both as in speed and size. Explanation: crypto algorithms breath (or suffocate) in memory, preferably L1 and L2, but of course (a) those are very limited, and (b) the data must be fetched first from normal RAM anyway, and also written back to it. In fact, I often saw memory being a factor that is more relevant than processor (speed, computing power, etc).

    Now, in particular with a large data size (file size), memory enter the game yet again, in particular as (file) cache.

    So, your (oldish, "smallish") dedi with 64 GB memory has multiple advantages over the Ryzen VM. Among others it highly likely can cache the whole file; and keep in mind that the VM does not read/write directly from/to the disk but it has to go through the host. Moreover the dedi can directly access its memory that is it can both get and put the SHA results from/to the memory while the Ryzen VM has to go through the hypervisor.

    Short version: Your E3 dedi may have lower SHA throughput in the processor but it can transfer the data faster: the whole circle is more balanced, while your Ryzen may process the data much faster but that is of limited value if it takes a small eternity to shove the data to/from memory and disk!

    Btw, you can largely ignore SSD vs NVME, this file system vs. that file system, etc. That plays, if any noticeable at all, quite minor role. The significant factor wrt disk is that the dedi can comfortably shove many GB of data into (comparably fast) memory and have the OS shove them to/from disk without breaking a sweat, while the Ryzen VM is wasting cycles waiting for relatively small blocks of data shove to/from disk.

    Thanked by 2Not_Oles loay
  • Not_OlesNot_Oles Member, Patron Provider

    @zakkuuno said:
    Could you ask your provider to temporarily increase your ram so that you can test using a ramdisk? At this point it’s really hard to tell if it is storage bounded or there are other limiting factors.

    My provider previously suggested a temporary RAM increase. I believe they still would do it. Maybe they will see this comment and the RAM increase might happen automagically? :)

    Aditionally, I might have previous test results or maybe could do a RAM test on a different server.

    Give me a day or two, please. I will post something.

    Thanks for your interest @zakkuuno!

    Thanked by 1zakkuuno
  • Not_OlesNot_Oles Member, Patron Provider

    What I did this morning was create a 2 core, 4 GB VPS on my E3 machine. Then I ran a test on the E3 VPS. Here are the results. Almost no I/O wait!

    Why is there so much I/O wait on the Ryzen VPS results shown above and practically none on the E3 VPS?


    bashvm@E3-VPS:~$ vmstat 1 > vmstat-out 2>&1 & [1] 566 bashvm@E3-VPS:~$ date; dd if=chronos-20240904.tgz.cpt bs=1M | /usr/bin/time -v sha256sum -c 6 Wed Sep 11 17:31:01 UTC 2024 chronos-20240904.tgz.cpt: OK Command being timed: "sha256sum -c chronos-20240904.tgz.cpt.SHA256" User time (seconds): 21.54 System time (seconds): 2.50 Percent of CPU this job got: 99% Elapsed (wall clock) time (h:mm:ss or m:ss): 0:24.05 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 Maximum resident set size (kbytes): 1780 Average resident set size (kbytes): 0 Major (requiring I/O) page faults: 1 Minor (reclaiming a frame) page faults: 106 Voluntary context switches: 6 Involuntary context switches: 132 Swaps: 0 File system inputs: 9562160 File system outputs: 0 Socket messages sent: 0 Socket messages received: 0 Signals delivered: 0 Page size (bytes): 4096 Exit status: 0 bashvm@E3-VPS:~$ cat vmstat-out procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 1 0 0 71896 12556 1828908 0 0 9238 2323 211 98 5 1 93 0 0 1 0 0 71896 12556 1828908 0 0 0 0 33 39 0 0 100 0 1 1 0 0 71896 12556 1828908 0 0 0 4 24 32 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 0 24 30 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 0 21 36 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 0 23 30 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 24 32 54 0 0 100 1 0 1 0 0 71896 12556 1828908 0 0 0 0 15 18 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 0 24 36 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 0 19 26 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 0 14 19 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 12 31 48 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 0 34 47 0 0 100 0 0 2 0 0 71896 12556 1828908 0 0 57564 0 367 103 13 4 84 0 0 2 0 0 71896 12556 1828908 0 0 197376 0 1081 159 41 10 49 0 0 2 0 0 71896 12556 1828908 0 0 198400 0 1089 156 44 8 49 0 0 2 0 0 71896 12556 1828908 0 0 197120 0 1087 154 45 7 49 0 0 2 0 0 71896 12556 1828908 0 0 198912 12 1100 167 44 7 48 1 0 2 0 0 71896 12556 1828908 0 0 198400 0 1090 159 44 8 49 0 0 2 0 0 71896 12556 1828908 0 0 197632 0 1082 153 43 8 49 0 0 2 0 0 71896 12556 1828908 0 0 198144 0 1090 148 47 5 49 0 0 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 2 0 0 71896 12556 1828908 0 0 200704 0 1100 169 44 7 49 0 0 2 0 0 71896 12556 1828908 0 0 199936 0 1099 167 45 7 49 0 0 2 0 0 71896 12556 1828908 0 0 193792 12 1070 165 44 7 49 0 0 2 0 0 71896 12556 1828908 0 0 201984 0 1103 169 46 5 49 0 0 2 0 0 71896 12556 1828908 0 0 204032 0 1113 150 45 6 49 0 0 2 0 0 71896 12556 1828908 0 0 198144 0 1095 170 47 4 49 0 0 2 0 0 71896 12556 1828908 0 0 198400 0 1091 160 45 6 49 0 0 2 0 0 71896 12556 1828908 0 0 200960 0 1100 160 47 5 48 0 0 2 0 0 71896 12556 1828908 0 0 199936 12 1104 171 47 4 48 1 0 2 0 0 71896 12556 1828908 0 0 198912 0 1104 184 45 6 48 0 0 2 0 0 71896 12556 1828908 0 0 197888 4 1086 148 46 5 49 0 0 2 0 0 71896 12556 1828908 0 0 201476 0 1113 171 45 7 48 0 0 2 0 0 71896 12556 1828908 0 0 195328 0 1079 153 46 6 49 0 0 2 0 0 71896 12556 1828908 0 0 200960 0 1104 156 45 6 49 0 0 2 0 0 71896 12556 1828908 0 0 200192 20 1103 178 45 6 48 0 0 2 0 0 71896 12556 1828908 0 0 198656 12 1098 157 44 8 49 0 0 1 0 0 71896 12556 1828908 0 0 146256 0 2276 161 33 8 59 0 0 1 0 0 71896 12556 1828908 0 0 0 0 15 23 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 0 20 34 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 0 26 39 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 12 21 36 0 0 100 1 0 procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu----- r b swpd free buff cache si so bi bo in cs us sy id wa st 1 0 0 71896 12556 1828908 0 0 0 0 30 33 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 0 23 26 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 0 15 23 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 0 30 47 0 1 100 0 0 1 0 0 71896 12556 1828908 0 0 0 12 30 47 0 0 100 0 0 1 0 0 71896 12556 1828908 0 0 0 0 35 45 0 1 100 0 0 1 0 0 71896 12556 1828908 0 0 76 0 61 70 1 1 99 0 0 1 0 0 71896 12556 1828908 0 0 0 0 18 25 0 0 100 0 0 bashvm@E3-VPS:~$
  • @Not_Oles said:
    What I did this morning was create a 2 core, 4 GB VPS on my E3 machine. Then I ran a test on the E3 VPS. Here are the results. Almost no I/O wait!

    Why is there so much I/O wait on the Ryzen VPS results shown above and practically none on the E3 VPS?

    Because there is contention for resources on the Ryzen VPS (doesn't sound like you are the sole user of that server) while on the E3 machine you alone are using it. I'm not suggesting the Ryzen VPS is oversaturated, any other users are going to slow things down with regard to I/O wait.

  • jsgjsg Member, Resident Benchmarker

    'right answer' € [lots of answers].

    Maybe increase VM memory in 100 MB steps and each time "benchmark" the hell out of it?
    (or spot the answer within the rich set of comments (and "benchmarks")).

    Friendly greetings

  • Seems to be heavily storage/io bounded.
    The e3 vm has much fewer context switches. My guess is that its processing power is too weak to saturate the io, so it does not have to wait for io, and thus the number of context switch is just a few.
    I'd suggest you test on a smaller file (~3G) and load the file into ramdisk for both ryzen and e3 servers to compare the results.

  • Not_OlesNot_Oles Member, Patron Provider

    The kind provider and I finally got around to testing, as @zakkuuno suggested, with increased RAM on the Ryzen VPS.

    Bingo! No I/O wait!

    Why does the Ryzen VPS need more RAM than the E3 VPS needs?

    root@Ryzen-2-vCore-VPS:~# # Retest with RAM increase
    root@Ryzen-2-vCore-VPS:~# free -h
                   total        used        free      shared  buff/cache   available
    Mem:           7.8Gi       360Mi       2.9Gi       524Ki       4.7Gi       7.4Gi
    Swap:             0B          0B          0B
    root@Ryzen-2-vCore-VPS:~# ls -l chronos-20240904.tgz.cpt
    -rw------- 1 root root 4900030457 Sep  4 21:29 chronos-20240904.tgz.cpt
    root@Ryzen-2-vCore-VPS:~# vmstat 1 > vmstat-out 2>&1 &
    [1] 1042
    root@Ryzen-2-vCore-VPS:~# date; dd if=chronos-20240904.tgz.cpt bs=1M | /usr/bin/time -v sha256sum -c chronos-20240904.tgz.cpt.SHA256; date
    Wed Sep 11 07:41:17 PM UTC 2024
    chronos-20240904.tgz.cpt: OK
            Command being timed: "sha256sum -c chronos-20240904.tgz.cpt.SHA256"
            User time (seconds): 9.74
            System time (seconds): 0.23
            Percent of CPU this job got: 99%
            Elapsed (wall clock) time (h:mm:ss or m:ss): 0:09.99
            Average shared text size (kbytes): 0
            Average unshared data size (kbytes): 0
            Average stack size (kbytes): 0
            Average total size (kbytes): 0
            Maximum resident set size (kbytes): 1960
            Average resident set size (kbytes): 0
            Major (requiring I/O) page faults: 0
            Minor (reclaiming a frame) page faults: 101
            Voluntary context switches: 2
            Involuntary context switches: 99
            Swaps: 0
            File system inputs: 8
            File system outputs: 0
            Socket messages sent: 0
            Socket messages received: 0
            Signals delivered: 0
            Page size (bytes): 4096
            Exit status: 0
    Wed Sep 11 07:41:27 PM UTC 2024
    root@Ryzen-2-vCore-VPS:~# fg
    vmstat 1 > vmstat-out 2>&1
    ^C
    root@Ryzen-2-vCore-VPS:~# cat -n vmstat-out 
         1  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
         2   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
         3   1  0      0 3020332   1876 4974188    0    0   646     4  181  150  0  0 100  0  0
         4   1  0      0 3020332   1876 4974188    0    0     0     0  271  153  0  0 100  0  0
         5   1  0      0 3020332   1876 4974188    0    0     0     0  263  138  0  0 100  0  0
         6   1  0      0 3020332   1876 4974188    0    0     0     0  339  163  0  0 100  0  0
         7   2  0      0 3020332   1876 4974188    0    0     4     0  350  179 11  1 89  0  0
         8   2  0      0 3020332   1876 4974188    0    0     0     0  599  159 48  2 50  0  0
         9   2  0      0 3020332   1876 4974188    0    0     0     4  524  137 49  1 50  0  0
        10   2  0      0 3020332   1876 4974188    0    0     0     0  581  144 49  1 50  0  0
        11   2  0      0 3020332   1876 4974188    0    0     0     0  591  146 48  2 50  0  0
        12   2  0      0 3020332   1876 4974188    0    0     0     0  611  143 49  2 49  0  0
        13   2  0      0 3020332   1876 4974188    0    0     0     0  635  168 48  2 50  0  0
        14   2  0      0 3020332   1876 4974188    0    0     0     0  666  149 49  1 50  0  0
        15   2  0      0 3020332   1876 4974188    0    0     0     4  575  140 49  2 50  0  0
        16   2  0      0 3020332   1876 4974188    0    0     0     0  591  140 49  1 50  0  0
        17   1  0      0 3020332   1876 4974188    0    0     0     0  466 1527 38  1 62  0  0
        18   1  0      0 3020332   1876 4974188    0    0     0     0  306  147  0  0 100  0  0
        19   1  0      0 3020332   1876 4974188    0    0     0     0  263  137  0  0 100  0  0
        20   1  0      0 3020332   1876 4974188    0    0     0     0  257  170  0  0 100  0  0
        21   1  0      0 3020332   1876 4974188    0    0     0     4  323  134  0  0 100  0  0
        22   1  0      0 3020332   1876 4974188    0    0     0     0  267  118  0  0 100  0  0
        23   1  0      0 3020332   1876 4974188    0    0     0     0  276  102  0  0 100  0  0
        24  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
        25   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
        26   1  0      0 3020332   1876 4974188    0    0     0     0  342  153  0  0 100  0  0
    root@Ryzen-2-vCore-VPS:~# 
    
  • @Not_Oles said:
    The kind provider and I finally got around to testing, as @zakkuuno suggested, with increased RAM on the Ryzen VPS.

    Bingo! No I/O wait!

    Why does the Ryzen VPS need more RAM than the E3 VPS needs?

    root@Ryzen-2-vCore-VPS:~# # Retest with RAM increase
    root@Ryzen-2-vCore-VPS:~# free -h
                   total        used        free      shared  buff/cache   available
    Mem:           7.8Gi       360Mi       2.9Gi       524Ki       4.7Gi       7.4Gi
    Swap:             0B          0B          0B
    root@Ryzen-2-vCore-VPS:~# ls -l chronos-20240904.tgz.cpt
    -rw------- 1 root root 4900030457 Sep  4 21:29 chronos-20240904.tgz.cpt
    root@Ryzen-2-vCore-VPS:~# vmstat 1 > vmstat-out 2>&1 &
    [1] 1042
    root@Ryzen-2-vCore-VPS:~# date; dd if=chronos-20240904.tgz.cpt bs=1M | /usr/bin/time -v sha256sum -c chronos-20240904.tgz.cpt.SHA256; date
    Wed Sep 11 07:41:17 PM UTC 2024
    chronos-20240904.tgz.cpt: OK
            Command being timed: "sha256sum -c chronos-20240904.tgz.cpt.SHA256"
            User time (seconds): 9.74
            System time (seconds): 0.23
            Percent of CPU this job got: 99%
            Elapsed (wall clock) time (h:mm:ss or m:ss): 0:09.99
            Average shared text size (kbytes): 0
            Average unshared data size (kbytes): 0
            Average stack size (kbytes): 0
            Average total size (kbytes): 0
            Maximum resident set size (kbytes): 1960
            Average resident set size (kbytes): 0
            Major (requiring I/O) page faults: 0
            Minor (reclaiming a frame) page faults: 101
            Voluntary context switches: 2
            Involuntary context switches: 99
            Swaps: 0
            File system inputs: 8
            File system outputs: 0
            Socket messages sent: 0
            Socket messages received: 0
            Signals delivered: 0
            Page size (bytes): 4096
            Exit status: 0
    Wed Sep 11 07:41:27 PM UTC 2024
    root@Ryzen-2-vCore-VPS:~# fg
    vmstat 1 > vmstat-out 2>&1
    ^C
    root@Ryzen-2-vCore-VPS:~# cat -n vmstat-out 
         1  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
         2   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
         3   1  0      0 3020332   1876 4974188    0    0   646     4  181  150  0  0 100  0  0
         4   1  0      0 3020332   1876 4974188    0    0     0     0  271  153  0  0 100  0  0
         5   1  0      0 3020332   1876 4974188    0    0     0     0  263  138  0  0 100  0  0
         6   1  0      0 3020332   1876 4974188    0    0     0     0  339  163  0  0 100  0  0
         7   2  0      0 3020332   1876 4974188    0    0     4     0  350  179 11  1 89  0  0
         8   2  0      0 3020332   1876 4974188    0    0     0     0  599  159 48  2 50  0  0
         9   2  0      0 3020332   1876 4974188    0    0     0     4  524  137 49  1 50  0  0
        10   2  0      0 3020332   1876 4974188    0    0     0     0  581  144 49  1 50  0  0
        11   2  0      0 3020332   1876 4974188    0    0     0     0  591  146 48  2 50  0  0
        12   2  0      0 3020332   1876 4974188    0    0     0     0  611  143 49  2 49  0  0
        13   2  0      0 3020332   1876 4974188    0    0     0     0  635  168 48  2 50  0  0
        14   2  0      0 3020332   1876 4974188    0    0     0     0  666  149 49  1 50  0  0
        15   2  0      0 3020332   1876 4974188    0    0     0     4  575  140 49  2 50  0  0
        16   2  0      0 3020332   1876 4974188    0    0     0     0  591  140 49  1 50  0  0
        17   1  0      0 3020332   1876 4974188    0    0     0     0  466 1527 38  1 62  0  0
        18   1  0      0 3020332   1876 4974188    0    0     0     0  306  147  0  0 100  0  0
        19   1  0      0 3020332   1876 4974188    0    0     0     0  263  137  0  0 100  0  0
        20   1  0      0 3020332   1876 4974188    0    0     0     0  257  170  0  0 100  0  0
        21   1  0      0 3020332   1876 4974188    0    0     0     4  323  134  0  0 100  0  0
        22   1  0      0 3020332   1876 4974188    0    0     0     0  267  118  0  0 100  0  0
        23   1  0      0 3020332   1876 4974188    0    0     0     0  276  102  0  0 100  0  0
        24  procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
        25   r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
        26   1  0      0 3020332   1876 4974188    0    0     0     0  342  153  0  0 100  0  0
    root@Ryzen-2-vCore-VPS:~# 
    

    In this scenario, ram is useful as the storage io is the constraint, because you can cache the file into ram. E3 requires less io because it runs checksum slower than the Ryzen. It's not that Ryzen VPS needs more RAM than the E3 VPS needs, but io is more likely to be a constraint for the faster CPU. Your Ryzen VPS probably runs on a more saturated host whereas the E3 is basically dedicated for you to test, which makes IO more of a problem.

    Thanked by 1Not_Oles
  • Not_OlesNot_Oles Member, Patron Provider

    @Not_Oles said: Why does the Ryzen VPS need more RAM than the E3 VPS needs?

    Possible answer: The Ryzen needs more RAM because it is using NVMe instead of the SSD that is in the E3? So it's not the single threaded sha256sum that makes the difference here? Instead it's the difference in the disk setup?

  • jsgjsg Member, Resident Benchmarker
    edited September 2024

    @Not_Oles said:
    Why does the Ryzen VPS need more RAM than the E3 VPS needs?

    Clearly a case of

    Thanked by 1Not_Oles
  • jsgjsg Member, Resident Benchmarker
    edited September 2024

    @Not_Oles

    After you seemed to have completely ignored my serious comment and I just happened to come across you mentioning "swap" I'll undertake a last serious attempt.

    Remember: the system needs memory for both the data (or at least a significant chunk of it) and the file. Now add the fact that linux caches drives & files very aggressively which means that in a worst case scenario you need a lot more memory than the data you hash (and the result). Also note that when your processor has a large L2 and / or L3 cache - and the Ryzen has - it'll likely read and write larger chunks from memory (which of course needs backfilling from disk).
    And all that on a VM (as opposed to the E3 dedi). Adding swap doesn't help, quite the contrary (same goes for RAM disk).

    What you need is 2 factors, (a) lots of RAM, and (b) nothing but the bare OS running (and of course your SHA program).

  • Not_OlesNot_Oles Member, Patron Provider

    @jsg said: you seemed to have completely ignored my serious comment

    Nope! I appreciate your serious comments! I thanked your serious comment to which you refer. You can look and see. My thanks is there for you and for everyone to see.

    It's clear that you understand these topics about RAM and disk operations very well! I believe you understand more deeply, more thoroughly, and more comprehensively than I understand.

    @jsg said: What you need is 2 factors, (a) lots of RAM, and (b) nothing but the bare OS running (and of course your SHA program).

    It's Low End here. I was trying to see what I could do on an inexpensive VPS compared to my E3 dedicated server. I discovered what could be described as a "limitation" of the VPS. With help from the kind provider and from other LET members, I compared what happened when we increased the VPS cores and RAM. I also made an equivalent spec VPS on the E3 and compared that VPS' performance.

    There's more brewing behind the scenes, because, with even more help from the kind provider, it looks like I might be going to learn a little about certain parameters and how these differ between Debian and Ubuntu default installs. Probably, we're also going to compare with an Intel E5 CPU VPS. I still might post more here if, as, and when I find out more.

    So this has been a great thread for me -- thanks to you, @jsg <3 -- and thanks to other members <3 -- and thanks to the awesome Provider of this VPS. <3 I hope this has been a good thread for all of you guys too! Best wishes @jsg! Best wishes, everyone!

    Thanked by 2jsg emgh
  • edited September 2024

    @dev_vps said:
    sha256sum -c could be more affected by I/O latency or overhead related to virtualization, impacting performance even if disk speeds are theoretically higher.

    This could be the case, or IO resource throttling since often that is the case for VPS, because it's shared VPS resources and the provider would do that because they want to load up the host to fill it for the most profits while trying to keep the host from getting overloaded and causing neighboring effects later. This is assuming it's a new host in reality that is not overloaded at the time.

    This is where dedicated and unthrottled VDS is unmatched (if it's true VDS and not a marketing gimmick shilling customers).

    Thanked by 1Not_Oles
  • dev_vpsdev_vps Member
    edited September 2024

    @CharityHost_org said:

    @dev_vps said:
    sha256sum -c could be more affected by I/O latency or overhead related to virtualization, impacting performance even if disk speeds are theoretically higher.

    This could be the case, or IO resource throttling since often that is the case for VPS, because it's shared VPS resources and the provider would do that because they want to load up the host to fill it for the most profits while trying to keep the host from getting overloaded and causing neighboring effects later. This is assuming it's a new host in reality that is not overloaded at the time.

    This is where dedicated and unthrottled VDS is unmatched (if it's true VDS and not a marketing gimmick shilling customers).

    Disk I/O is still a shared resource for VDS, unless single use exclusive disk storage is attached to the VDS.

    Do you offer such exclusive resource for your VDS? Most likely, not.

    Also, VDS with a single “dedicated core HT” is not a true VDS either, as core HT performance is not independent of its counterparts HT. That is why VDS with physical cpu core (with both its HT) is recommended for true VDS experience and better performance.

    Yes, I do have a VDS with dedicated cpu core from a premium LET provider. @heartbeat_IT

    Thanked by 1Not_Oles
  • edited September 2024

    @dev_vps said:

    @CharityHost_org said:

    @dev_vps said:
    sha256sum -c could be more affected by I/O latency or overhead related to virtualization, impacting performance even if disk speeds are theoretically higher.

    This could be the case, or IO resource throttling since often that is the case for VPS, because it's shared VPS resources and the provider would do that because they want to load up the host to fill it for the most profits while trying to keep the host from getting overloaded and causing neighboring effects later. This is assuming it's a new host in reality that is not overloaded at the time.

    This is where dedicated and unthrottled VDS is unmatched (if it's true VDS and not a marketing gimmick shilling customers).

    Disk I/O is still a shared resource for VDS, unless single use exclusive disk storage is attached to the VDS.

    Do you offer such exclusive resource for your VDS?

    My point is that IO can be rate limited regardless, assume that is the case in VPS often, not always. VDS can use the same disks yes, but they should not be IO capped and if they are it's capped just enough to keep the rest of the VDS on the host from getting Iops depleted performance issues because some long running IO intensive operation on one VDS is running. Balancing act when it happens.

    CharityHost.org VDS are not currently IO capped, but it is something to be careful with VDS for sure.

    Regarding single use disk storage, will be very hard to find any provider that does this in a virtualized environment. If you need that, that's what dedicated servers are for but you lose the benefits that virtualization give you other than costs.

    Thanked by 1Not_Oles
  • dev_vpsdev_vps Member
    edited September 2024

    @CharityHost_org said:

    @dev_vps said:

    @CharityHost_org said:

    @dev_vps said:
    sha256sum -c could be more affected by I/O latency or overhead related to virtualization, impacting performance even if disk speeds are theoretically higher.

    This could be the case, or IO resource throttling since often that is the case for VPS, because it's shared VPS resources and the provider would do that because they want to load up the host to fill it for the most profits while trying to keep the host from getting overloaded and causing neighboring effects later. This is assuming it's a new host in reality that is not overloaded at the time.

    This is where dedicated and unthrottled VDS is unmatched (if it's true VDS and not a marketing gimmick shilling customers).

    Disk I/O is still a shared resource for VDS, unless single use exclusive disk storage is attached to the VDS.

    Do you offer such exclusive resource for your VDS?

    My point is that IO can be rate limited regardless, assume that is the case in VPS often, not always. VDS can use the same disks yes, but they should not be IO capped and if they are it's capped just enough to keep the rest of the VDS on the host from getting Iops depleted performance issues because some long running IO intensive operation on one VDS is running. Balancing act when it happens.

    CharityHost.org VDS are not currently IO capped, but it is something to be careful with VDS for sure.

    Regarding single use disk storage, will be very hard to find any provider that does this in a virtualized environment. If you need that, that's what dedicated servers are for but you lose the benefits that virtualization give you other than costs.

    Should I share performance of my VDS?
    And it is more cost effective as well

    In my opinion, true VDS should have dedicated cpu core. cpu core HT performance is not truly independent of its counterpart HT.

    Thanked by 1Not_Oles
Sign In or Register to comment.