Howdy, Stranger!

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


Why does E3 SSD dedi seem faster than Ryzen 7950X NVMe 2 vCore VPS at `sha256sum -c`?
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`?

Not_OlesNot_Oles Moderator, Patron Provider

Yesterday I uploaded a 4.6 GB Chromebook backup to storage. I uploaded the same file to both an E3 dedicated server and to a 2 vCore Ryzen 7950X VPS.

When I checked the integrity of the uploaded files, I was surprised that running sha256sum -c seemed to take longer on the Ryzen 7950X VPS than on the E3 dedi. For the E3 dedi the wall clock "real" time was 22.655 seconds, and, for the Ryzen, 30.658 seconds.

The E3 dedi has SSD Raid 10, and the Ryzen 7950X 2 vCore VPS has NVMe Raid 10.

The E3 is running Ubuntu 22.04.4 LTS. The Ryzen is running Debian 12.7.

Geekbench and fio scores from Yabs on both machines are shown below along with both machines' time results.

Note that both fio and Geekbench scores are significantly higher on the Ryzen 2 vCore VPS than on the E3 Dedi.

I guess the sha256sum -c execution time might depend on how many threads are being used by sha256sum. From both machines' top results, also shown below, it seems like sha256sum might be single threaded.

I haven't seen any steal on the Ryzen VPS, and I was told that it was on a new node.

In the time results shown below, please note that "real", "user", and "sys" each differ.

I decided to try time sha256sum -c also with another, bigger 17 GB file. For the 17 GB file, the wall clock "real" time was 1m18.146s on the E3 dedi and 2m16.960s on the Ryzen. So, again, the E3 Dedi seemed to beat the 2 vCore Ryzen 7950X.

It really seems like I must be missing something basic here! It doesn't seem sensible that the E3 would be faster than the Ryzen for sha256sum -c. But, what explains the time differences? Why does the E3 seem faster?

Both processors have integrated graphics. The E3 graphics are enabled on the bare metal, and the Ryzen graphics are passed through into and are enabled on the Ryzen VPS. But, are the graphics processors involved with sha256sum?

Assuming these results are not from way out in left field, and assuming the lack of some easy explanation that I am missing, does anybody here have experience checking the time expended on the various operations performed by the sha256sum program and also the detailed E3 and Ryzen architectural specifications? Why does E3 seem faster than Ryzen on sha256sum -c?

E3 Dedi

OS: Ubuntu 22.04.4 LTS

fio Disk Speed Tests (Mixed R/W 50/50) (Partition /dev/mapper/vg0-root):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 199.08 MB/s  (49.7k) | 180.73 MB/s   (2.8k)
Write      | 199.61 MB/s  (49.9k) | 181.68 MB/s   (2.8k)
Total      | 398.69 MB/s  (99.6k) | 362.42 MB/s   (5.6k)
           |                      |                     
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 301.57 MB/s    (589) | 323.23 MB/s    (315)
Write      | 317.60 MB/s    (620) | 344.75 MB/s    (336)
Total      | 619.17 MB/s   (1.2k) | 667.98 MB/s    (651)
Geekbench 6 Benchmark Test:
---------------------------------
Test            | Value                         
                |                               
Single Core     | 1344                          
Multi Core      | 4430                          
Full Test       | https://browser.geekbench.com/v6/cpu/6406219
top - 23:16:48 up 1 day,  5:59,  2 users,  load average: 1.21, 0.93, 0.90
Tasks: 216 total,   2 running, 214 sleeping,   0 stopped,   0 zombie
%Cpu0  :  4.7 us,  0.3 sy,  0.0 ni, 94.3 id,  0.3 wa,  0.0 hi,  0.3 si,  0.0 st
%Cpu1  :  1.3 us,  2.3 sy,  0.0 ni, 96.3 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu2  : 10.6 us,  1.7 sy,  0.0 ni, 87.1 id,  0.0 wa,  0.0 hi,  0.7 si,  0.0 st
%Cpu3  : 93.0 us,  1.7 sy,  0.0 ni,  5.3 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
%Cpu4  :  2.0 us,  2.3 sy,  0.0 ni, 95.4 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st
%Cpu5  :  4.0 us,  1.0 sy,  0.0 ni, 94.4 id,  0.3 wa,  0.0 hi,  0.3 si,  0.0 st
%Cpu6  :  1.0 us,  1.0 sy,  0.0 ni, 97.3 id,  0.0 wa,  0.0 hi,  0.7 si,  0.0 st
%Cpu7  :  6.9 us,  2.3 sy,  0.0 ni, 90.5 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st
MiB Mem :  64084.4 total,  27018.1 free,   7788.8 used,  29277.5 buff/cache
MiB Swap:   4096.0 total,   4096.0 free,      0.0 used.  55571.9 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND       
  58585 root      20   0    5792   1056    968 R 100.0   0.0   0:24.90 sha256sum     
root@E3-Dedi:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256 
chronos-20240904.tgz.cpt: OK

real    0m22.655s
user    0m22.090s
sys     0m0.564s
root@E3-Dedi:~#
root@E3-Dedi:~# time sha256sum -c Documents.tgz.cpt.SHA256 
Documents.tgz.cpt: OK

real    1m18.146s
user    1m16.245s
sys     0m1.892s
root@E3-Dedi:~# 

Ryzen 7950X 2 vCore VPS

OS: Debian 12.7

fio Disk Speed Tests (Mixed R/W 50/50) (Partition /dev/sda1):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 331.18 MB/s  (82.7k) | 1.68 GB/s    (26.3k)
Write      | 332.05 MB/s  (83.0k) | 1.69 GB/s    (26.5k)
Total      | 663.23 MB/s (165.8k) | 3.38 GB/s    (52.8k)
           |                      |                     
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ---- 
Read       | 4.98 GB/s     (9.7k) | 4.53 GB/s     (4.4k)
Write      | 5.24 GB/s    (10.2k) | 4.83 GB/s     (4.7k)
Total      | 10.23 GB/s   (19.9k) | 9.36 GB/s     (9.1k)
Geekbench 6 Benchmark Test:
---------------------------------
Test            | Value                         
                |                               
Single Core     | 2534                          
Multi Core      | 4414                          
Full Test       | https://browser.geekbench.com/v6/cpu/7541417
top - 23:15:06 up 4 days,  2:11,  2 users,  load average: 0.44, 0.21, 0.09
Tasks:  91 total,   2 running,  89 sleeping,   0 stopped,   0 zombie
%Cpu0  :  0.0 us,  0.7 sy,  0.0 ni, 98.7 id,  0.0 wa,  0.0 hi,  0.7 si,  0.0 st 
%Cpu1  : 94.6 us,  4.4 sy,  0.0 ni,  0.0 id,  1.0 wa,  0.0 hi,  0.0 si,  0.0 st 
MiB Mem :   3915.5 total,    191.6 free,    329.2 used,   3616.6 buff/cache     
MiB Swap:      0.0 total,      0.0 free,      0.0 used.   3586.3 avail Mem 

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND       
  23848 root      20   0    5484    904    812 R  99.0   0.0   0:25.57 sha256sum   
root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256 
chronos-20240904.tgz.cpt: OK

real    0m30.658s
user    0m9.694s
sys     0m0.668s
root@Ryzen-2-vCore-VPS:~# 
root@Ryzen-2-vCore-VPS:~# time sha256sum -c Documents.tgz.cpt.SHA256
Documents.tgz.cpt: OK

real    2m16.960s
user    0m34.364s
sys     0m1.840s
root@Ryzen-2-vCore-VPS:~# 
Thanked by 1host_c
«13

Comments

  • I know close to nothing when it comes to CPUs, but I wonder if sha256sum is able to use the SHA256 extensions in the E3 CPU, and for some reason the hypervisor of the VPS does not pass them to the VPS?! Hopefully someone who actually knows something will help you!

  • bobertbobert Member
    edited September 5

    My guess is that you have the entire files cached in memory on your dedicated.

    real includes time spent waiting on IO. If you look at user+sys, it is lower on the vps.

    Thanked by 2Not_Oles fatchan
  • @fredo1664 said:
    I know close to nothing when it comes to CPUs, but I wonder if sha256sum is able to use the SHA256 extensions in the E3 CPU, and for some reason the hypervisor of the VPS does not pass them to the VPS?! Hopefully someone who actually knows something will help you!

    I have no idea either but this was my hunch.

    In addition:

    • thermal throttling could be coming into play, how long does the Ryzen maintain its high single core perf?
    • Xeon vs Ryzen, server grade vs consumer CPU maybe more time is spent ensuring the CPU is optimised for tasks a server is more likely to run into?
    Thanked by 1Not_Oles
  • dev_vpsdev_vps Member
    edited September 5

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

  • You stated the E3 is a dedicated server and the Ryzen is a VPS...

    Thanked by 1Not_Oles
  • edited September 5

    File is probably cached in RAM. Maybe also check sha_ni in /proc/cpuinfo.

    You might also be interested in other faster hashing algorithms if you just wanted to check integrity.

    @techdragon said:
    You stated the E3 is a dedicated server and the Ryzen is a VPS...

    So what does that imply? The GB6 score of the VPS is clearly larger than the dedi, and since the sha256sum only runs for 2 minutes (shorter) than GB6, throttling isn't really a concern.

    Thanked by 2Not_Oles homelabber
  • Not_OlesNot_Oles Moderator, Patron Provider

    Thanks to everyone who has commented. <3

    Just now remembering that the E3 is running ext4 with LVM, whereas the Ryzen is running xfs.

    I haven't yet studied up on the effect of these filesystem differences. Ideas, please?

  • I don't think the file system matters much. I'm 99% sure the speed difference is because you have the files cached in ram on your dedicated.

    MiB Mem : 64084.4 total, 27018.1 free, 7788.8 used, 29277.5 buff/cache

    This means you have 29 gb of files cached in ram.

    User + sys is much lower on your ryzen, but "Real" is higher because it includes time spent waiting on IO.

    Thanked by 2Not_Oles homelabber
  • Not_OlesNot_Oles Moderator, Patron Provider

    Here is some additional data about caching, including a single run where the Ryzen was really fast.

    @yoursunny said:
    The time difference may be caused by I/O caching.
    To isolate them:

    1. Reboot the machine.
    2. Run the command twice, recording their times.

    First run timing reflects uncached I/O plus compute.
    Second run timing reflects cached I/O plus compute.

    Reboot plus two successive runs.

    root@Ryzen-2-vCore-VPS:~# uptime
     23:29:49 up 3 min,  1 user,  load average: 0.01, 0.03, 0.01
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m11.104s
    user    0m9.832s
    sys     0m0.557s
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m27.489s
    user    0m9.836s
    sys     0m0.518s
    root@Ryzen-2-vCore-VPS:~# 
    

    Another reboot plus another two successive runs.

    root@Ryzen-2-vCore-VPS:~# date -u
    Thu Sep  5 11:36:00 PM UTC 2024
    root@Ryzen-2-vCore-VPS:~# uptime
     23:36:04 up 0 min,  1 user,  load average: 0.07, 0.03, 0.01
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m34.166s
    user    0m9.814s
    sys     0m0.666s
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m34.701s
    user    0m9.942s
    sys     0m0.501s
    root@Ryzen-2-vCore-VPS:~#
    

    Yet another reboot plus yet another two successive runs.

    root@Ryzen-2-vCore-VPS:~# date -u
    Thu Sep  5 11:41:50 PM UTC 2024
    root@Ryzen-2-vCore-VPS:~# uptime
     23:41:55 up 3 min,  1 user,  load average: 0.01, 0.03, 0.00
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m31.797s
    user    0m9.926s
    sys     0m0.604s
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m35.962s
    user    0m9.780s
    sys     0m0.549s
    root@Ryzen-2-vCore-VPS:~#
    

    One more double try.

    root@Ryzen-2-vCore-VPS:~# date -u
    Thu Sep  5 11:48:17 PM UTC 2024
    root@Ryzen-2-vCore-VPS:~# uptime
     23:48:24 up 1 min,  1 user,  load average: 0.02, 0.01, 0.00
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m32.923s
    user    0m9.913s
    sys     0m0.547s
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m35.545s
    user    0m9.917s
    sys     0m0.456s
    root@Ryzen-2-vCore-VPS:~# 
    
    • Why are the times on the first set of reruns here so different? The wall clock "real" time was 0m11.104s for the first run of the first set and 0m27.489s for the second run of the first set.

    • We might expect the second run of each set (the cached run) to be faster if caching is a significant factor. That's not what happened.

    • Indeed, the first run of the first set of reruns here, the Ryzen VPS at 11.104s was the fastest of all the runs, including the original E3 and Ryzen runs, 22.655s and 30.658s, respectively.

    • Having Ryzen take 11 seconds for something an E3 does in 22 seconds seems reasonable. But, here, Ryzen doesn't consistently run that fast in these tests.

    More ideas, please?

  • Not_OlesNot_Oles Moderator, Patron Provider

    @CyberneticTitan said: Maybe also check sha_ni in /proc/cpuinfo.

    Yes, excellent idea, and sha_ni shows up in the /proc/cpuinfo flags for both CPU 0 and CPU 1.

  • Not_OlesNot_Oles Moderator, Patron Provider

    @bgerard said: how long does the Ryzen maintain its high single core perf?

    Hi! Thanks! Haven't done any long term testing as yet. For what it's worth, the Geekbench Single Core scores seem reasonably consistent.

    chronos@penguin:~/servers/Ryzen-2-vCore-VPS$ grep Single yabs*
    yabs-20240817:Single Core     | 2567                          
    yabs-20240819:Single Core     | 2567                          
    yabs-20240822:Single Core     | 2557                          
    yabs-20240828:Single Core     | 2565                          
    yabs-20240829:Single Core     | 2534                          
    yabs-20240905:Single Core     | 2536                          
    chronos@penguin:~/servers/Ryzen-2-vCore-VPS$ 
    
    Thanked by 1bgerard
  • Not_OlesNot_Oles Moderator, Patron Provider

    @fredo1664 said:
    I know close to nothing when it comes to CPUs, but I wonder if sha256sum is able to use the SHA256 extensions in the E3 CPU, and for some reason the hypervisor of the VPS does not pass them to the VPS?! Hopefully someone who actually knows something will help you!

    @Not_Oles said:

    @CyberneticTitan said: Maybe also check sha_ni in /proc/cpuinfo.

    Yes, excellent idea, and sha_ni shows up in the /proc/cpuinfo flags for both CPU 0 and CPU 1.

    @fredo1664 Yeah, good idea, the sha_ni seems to be available inside the VPS. Thanks very much! <3

  • @Not_Oles said:
    Here is some additional data about caching, including a single run where the Ryzen was really fast.

    @yoursunny said:
    The time difference may be caused by I/O caching.
    To isolate them:

    1. Reboot the machine.
    2. Run the command twice, recording their times.

    First run timing reflects uncached I/O plus compute.
    Second run timing reflects cached I/O plus compute.

    Reboot plus two successive runs.

    root@Ryzen-2-vCore-VPS:~# uptime
     23:29:49 up 3 min,  1 user,  load average: 0.01, 0.03, 0.01
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m11.104s
    user    0m9.832s
    sys     0m0.557s
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m27.489s
    user    0m9.836s
    sys     0m0.518s
    root@Ryzen-2-vCore-VPS:~# 
    

    Another reboot plus another two successive runs.

    root@Ryzen-2-vCore-VPS:~# date -u
    Thu Sep  5 11:36:00 PM UTC 2024
    root@Ryzen-2-vCore-VPS:~# uptime
     23:36:04 up 0 min,  1 user,  load average: 0.07, 0.03, 0.01
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m34.166s
    user    0m9.814s
    sys     0m0.666s
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m34.701s
    user    0m9.942s
    sys     0m0.501s
    root@Ryzen-2-vCore-VPS:~#
    

    Yet another reboot plus yet another two successive runs.

    root@Ryzen-2-vCore-VPS:~# date -u
    Thu Sep  5 11:41:50 PM UTC 2024
    root@Ryzen-2-vCore-VPS:~# uptime
     23:41:55 up 3 min,  1 user,  load average: 0.01, 0.03, 0.00
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m31.797s
    user    0m9.926s
    sys     0m0.604s
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m35.962s
    user    0m9.780s
    sys     0m0.549s
    root@Ryzen-2-vCore-VPS:~#
    

    One more double try.

    root@Ryzen-2-vCore-VPS:~# date -u
    Thu Sep  5 11:48:17 PM UTC 2024
    root@Ryzen-2-vCore-VPS:~# uptime
     23:48:24 up 1 min,  1 user,  load average: 0.02, 0.01, 0.00
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m32.923s
    user    0m9.913s
    sys     0m0.547s
    root@Ryzen-2-vCore-VPS:~# time sha256sum -c chronos-20240904.tgz.cpt.SHA256
    chronos-20240904.tgz.cpt: OK
    
    real    0m35.545s
    user    0m9.917s
    sys     0m0.456s
    root@Ryzen-2-vCore-VPS:~# 
    
    • Why are the times on the first set of reruns here so different? The wall clock "real" time was 0m11.104s for the first run of the first set and 0m27.489s for the second run of the first set.

    • We might expect the second run of each set (the cached run) to be faster if caching is a significant factor. That's not what happened.

    • Indeed, the first run of the first set of reruns here, the Ryzen VPS at 11.104s was the fastest of all the runs, including the original E3 and Ryzen runs, 22.655s and 30.658s, respectively.

    • Having Ryzen take 11 seconds for something an E3 does in 22 seconds seems reasonable. But, here, Ryzen doesn't consistently run that fast in these tests.

    More ideas, please?

    Virtualized environments often utilize CPU frequency scaling to balance load and power consumption. Depending on how the virtual machine’s CPU cores are allocated and the overall load on the host system, performance scaling could result in inconsistent performance between runs. This could explain why the Ryzen core took 11 seconds in one run but 35 seconds in another.

    First Run Performance Spike, well, it could be that the system briefly clocked the CPU cores to a higher performance state due to recent activity (like your first checksum run), but later, due to idle or less-demanding tasks, the cores scaled down in frequency.

    This explains why subsequent runs, though cached, might have slower execution times.

  • You're not getting much caching on the vps if any. The file you are processing is much larger than 4 gb.

    Thanked by 1Not_Oles
  • Not_OlesNot_Oles Moderator, Patron Provider

    @dev_vps said: CPU frequency scaling

    It seems to me that CPU frequency probably could be measured inside a VPS. But I've never looked into it.

    Based on the frequency reports in the Yabs tests I have run, the frequency seems precisely consistent.

    chronos@penguin:~/servers/Ryzen-2-vCore-VPS$ grep MHz yabs*
    yabs-20240817:CPU cores  : 2 @ 4499.980 MHz
    yabs-20240819:CPU cores  : 2 @ 4499.980 MHz
    yabs-20240822:CPU cores  : 2 @ 4499.980 MHz
    yabs-20240828:CPU cores  : 2 @ 4499.980 MHz
    yabs-20240829:CPU cores  : 2 @ 4499.980 MHz
    yabs-20240905:CPU cores  : 2 @ 4499.980 MHz
    chronos@penguin:~/servers/Ryzen-2-vCore-VPS$ 
    

    Beginning at line 225 of yabs.sh

    if [[ $ARCH = *aarch64* || $ARCH = *arm* ]] && [[ ! -z $LOCAL_LSCPU ]]; then
        CPU_CORES=$(lscpu | grep "^[[:blank:]]*CPU(s):" | sed 's/CPU(s): *//g')
        CPU_FREQ=$(lscpu | grep "CPU max MHz" | sed 's/CPU max MHz: *//g')
        [[ -z "$CPU_FREQ" ]] && CPU_FREQ="???"
        CPU_FREQ="${CPU_FREQ} MHz"
    else
        CPU_CORES=$(awk -F: '/model name/ {core++} END {print core}' /proc/cpuinfo)
        CPU_FREQ=$(awk -F: ' /cpu MHz/ {freq=$2} END {print freq " MHz"}' /proc/cpuinfo | sed 's/^[ \t]*//;s/[ \t]*$//')
    fi
    

    I'd have to look some more to see how the frequency in /proc/cpuinfo is determined. I'm guessing the frequency is not actually tested, because, as shown above, the frequency reports of multiple Yabs runs are precisely identical.

    Do you have experience with measuring CPU frequency scaling inside a VPS?

    Thanks!

  • Not_OlesNot_Oles Moderator, Patron Provider

    @bobert said:
    You're not getting much caching on the vps if any. The file you are processing is much larger than 4 gb.

    Yes. You're right.

    Note that there are two files in the original post, 4.6 GB, and 17 GB. Even the smaller file is bigger than the entire memory allocated to the VPS.

    Thanks!

  • @Not_Oles said:

    @dev_vps said: CPU frequency scaling

    It seems to me that CPU frequency probably could be measured inside a VPS. But I've never looked into it.

    my understanding is that only base frequency is reported from inside the vps.

    Thanked by 2Not_Oles emgh
  • 2 cores (if ht then technically just 1) vs full cpu
    i don't see what is so hard to understand

    Thanked by 1Not_Oles
  • Not_OlesNot_Oles Moderator, Patron Provider

    @duckeeyuck said:
    2 cores (if ht then technically just 1) vs full cpu
    i don't see what is so hard to understand

    From the results of top in the OP, it seems like sha256sum is only single core and not multicore in this context. Thus, only one core is used, no matter how many cores there are.

    What is hard to understand is why the single, old E3 core is usually, but not always faster on this task than the single, new, fast Ryzen core.

    Does that help?

  • hiphiphip0hiphiphip0 Member
    edited September 6

    Interesting.
    Maybe install WordPress site with Elementor, WooCommerce, bunch of elementor addons on both, then compare the doc timing.

    Thanked by 1Not_Oles
  • @duckeeyuck said:
    2 cores (if ht then technically just 1) vs full cpu
    i don't see what is so hard to understand

    sha256sum uses a single logical core, and only one hyper-thread (if HT is enabled) will be used for the computation.

    Thanked by 1Not_Oles
  • E31270v6 single core isn't too bad? What's the e3?

    Thanked by 1Not_Oles
  • Not_OlesNot_Oles Moderator, Patron Provider

    @akaemu said:
    E31270v6 single core isn't too bad?

    Hi @akaemu!

    In this case the E3 seems to beat Ryzen in some jobs. Not too bad for an older processor. :)

    What's the e3?

    This one is Intel(R) Xeon(R) CPU E3-1245 v5 @ 3.50GHz.

    Does that answer your question?

  • PixelsPixels Member
    edited September 6

    My guess is that a virtualized environment might have some overhead penalty, even if the node is relatively quiet.

    I think a more fair comparison in my opinion would be to create a qemu VM on your dedicated server and try and see how it compares to the Ryzen VPS. This way you can also "limit" caching by setting a max of 4GB RAM to the VM.

    You haven't mentioned if the VPS is KVM or LXC/OVZ (if you have, please disregard this part) but the latter will probably be closer to baremetal than a full fledged VM.

    Thanked by 1Not_Oles
  • dev_vpsdev_vps Member
    edited September 6

    @Pixels said:
    My guess is that a virtualized environment might have some overhead penalty, even if the node is relatively quiet.

    I think a more fair comparison in my opinion would be to create a qemu VM on your dedicated server and try and see how it compares to the Ryzen VPS. This way you can also "limit" caching by setting a max of 4GB RAM to the VM.

    Anything that is disk i/o related activity on VPS (and on VDS) is dependent on activity level of other VMs as disk is a shared resource and unless, a dedicated disk assigned to a VM, it can not compete with dedicated server, even with older cpu running on dedicated server.

    Assign a dedicated space to that 2 vCore Ryzen and one will see marked improved in any task that is disk i/o dependent

    True VDS will have disk space exclusively single-vm-use dedicated as well.

  • AndreiPerjuAndreiPerju Member, Host Rep

    E3 Xeon CPUs, while older, are optimized for strong single-threaded performance like checksum...

    Also, that 2vcore AMD are you sure you get 200% from that CPU?

    Thanked by 1Not_Oles
  • Not_OlesNot_Oles Moderator, Patron Provider

    Hi @Pixels!

    @Pixels said:
    My guess is that a virtualized environment might have some overhead penalty, even if the node is relatively quiet.

    Yes, for sure!

    I think a more fair comparison in my opinion would be to create a qemu VM on your dedicated server and try and see how it compares to the Ryzen VPS. This way you can also "limit" caching by setting a max of 4GB RAM to the VM.

    Yes. Of course, all this didn't start with the idea of doing a virtualization overhead comparison. Instead, I just did the same thing on VPS and dedi and was surprised that the VPS was actually slower in a case when I assumed wrongly that the VPS would be much faster.

    You haven't mentioned if the VPS is KVM or LXC/OVZ (if you have, please disregard this part) but the latter will probably be closer to baremetal than a full fledged VM.

    The VPS is KVM.

  • emghemgh Member
    edited September 6

    @Pixels said: My guess is that a virtualized environment might have some overhead penalty, even if the node is relatively quiet.

    Sure, but that overhead is tiny.

    I can't see that being the difference between minutes.

    Thanked by 1Not_Oles
  • Not_OlesNot_Oles Moderator, Patron Provider

    Hello @AndreiPerju!

    Nice to meet you!

    @AndreiPerju said:
    E3 Xeon CPUs, while older, are optimized for strong single-threaded performance like checksum...

    Of course!

    Also, that 2vcore AMD are you sure you get 200% from that CPU?

    No, not sure. Unable to compare node and VM CPU performance because, on this machine, I don't have access to the node.

    What I do have is Geekbench scores from inside the VM, e.g.,

    Geekbench 6 Benchmark Test:
    ---------------------------------
    Test            | Value                         
                    |                               
    Single Core     | 2536                          
    Multi Core      | 4531                          
    Full Test       | https://browser.geekbench.com/v6/cpu/7645849
    

    Not too bad!

    Thanks and best wishes!

    Thanked by 1AndreiPerju
  • Not_OlesNot_Oles Moderator, Patron Provider

    At the kind suggestion of @cmeerw, I ran sha256sum -c in the KVM Ryzen VPS together with vmstat and GNU time.

    The results below show numbers in the twenties in the second to last column on the right, which is I/O wait (wa).

    The VM is running xfs and RAID 10.

    Now the question becomes, "Why so much I/O wait time?" Maybe I am going to investigate by running fio together with vmstat to see whether the wait time generalizes to other applications or is somehow limited to sha256sum.

    Thanks again to everyone who has posted! More ideas on the I/O wait time?

    root@Ryzen-2-vCore-VPS:~# who am i
    root     pts/2        2024-09-06 05:32 (187.189.238.2)
    root@Ryzen-2-vCore-VPS:~# date
    Fri Sep  6 05:38:32 AM UTC 2024
    root@Ryzen-2-vCore-VPS:~# /usr/bin/time -v sha256sum -c chronos-20240904.tgz.cpt.SHA256 
    chronos-20240904.tgz.cpt: OK
            Command being timed: "sha256sum -c chronos-20240904.tgz.cpt.SHA256"
            User time (seconds): 9.87
            System time (seconds): 0.51
            Percent of CPU this job got: 52%
            Elapsed (wall clock) time (h:mm:ss or m:ss): 0:19.97
            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): 2008
            Average resident set size (kbytes): 0
            Major (requiring I/O) page faults: 1
            Minor (reclaiming a frame) page faults: 103
            Voluntary context switches: 5322
            Involuntary context switches: 450
            Swaps: 0
            File system inputs: 8005456
            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:~# 
    
    root@Ryzen-2-vCore-VPS:~# who am i
    root     pts/0        2024-09-06 05:19 (187.189.238.2)
    root@Ryzen-2-vCore-VPS:~# date
    Fri Sep  6 05:38:05 AM UTC 2024
    root@Ryzen-2-vCore-VPS:~# uptime
     05:38:08 up  5:51,  3 users,  load average: 0.00, 0.00, 0.00
    root@Ryzen-2-vCore-VPS:~# vmstat 1
    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 2003564   1876 1879832    0    0   489   273  234  120  1  0 99  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  310  172  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  285  149  0  1 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  244  139  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  247  150  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  287  158  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  283  160  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  305  164  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  305  164  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  305  146  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  316  188  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  341  206  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  305  177  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  318  170  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  361  171  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  316  157  0  0 100  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 2003564   1876 1879832    0    0     0     0  289  184  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  271  144  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  333  186  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  235  123  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  266  134  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  351  135  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  308  149  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  341  139  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  418  183  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  455  190  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  415  179  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  390  158  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  390  174  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  373  180  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     2  320  194  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  280  170  0  0 100  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 2003564   1876 1879832    0    0     0     0  299  177  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  270  169  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  257  161  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  275  156  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  303  149  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  327  136  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  333  170  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  337  146  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  339  172  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  329  175  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  250  112  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  284  156  0  0 100  0  0
     2  0      0 2003564   1876 1879832    0    0 126204     0  753  620 14  2 57 27  0
     1  1      0 2003564   1876 1879832    0    0 175872     0  885  749 17  2 50 31  0
     1  1      0 2003564   1876 1879832    0    0 165120     0  851  704 16  2 51 32  0
     1  1      0 2003564   1876 1879832    0    0 205824     0 1102  771 22  1 50 28  0
    procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
     r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
     3  0      0 2003564   1876 1879832    0    0 213504     0 1131  744 23  2 49 25  0
     2  0      0 2003564   1876 1879832    0    0 210176     0 1065  742 19  2 52 28  0
     1  1      0 2003564   1876 1879832    0    0 212480     0 1140  789 21  2 50 27  0
     2  0      0 2003564   1876 1879832    0    0 221952     0 1213  718 24  1 50 25  0
     2  0      0 2003564   1876 1879832    0    0 223744     0 1188  718 25  1 49 25  0
     2  0      0 2003564   1876 1879832    0    0 213760     0 1197  930 22  2 50 27  0
     2  0      0 2003564   1876 1879832    0    0 221184     0 1332 1113 23  2 49 26  0
     1  1      0 2003564   1876 1879832    0    0 238848     0 1428 1201 24  3 50 24  0
     1  1      0 2003564   1876 1879832    0    0 229632     0 1366 1185 24  2 49 25  0
     1  1      0 2003564   1876 1879832    0    0 233984     0 1376 1215 24  2 49 25  0
     1  1      0 2003564   1876 1879832    0    0 243200     0 1493 1158 26  2 49 23  0
     2  0      0 2003564   1876 1879832    0    0 241920     0 1525 1198 26  3 49 22  0
     2  0      0 2003564   1876 1879832    0    0 240384     1 1477 1283 24  2 50 23  0
     2  0      0 2003564   1876 1879832    0    0 264448     0 1539 1333 27  2 49 21  0
     2  0      0 2003564   1876 1879832    0    0 120876     0 1025  774 37  3 49 11  0
     2  0      0 2003564   1876 1879832    0    0     0     0  472  174 49  1 50  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 2003564   1876 1879832    0    0  1032     0  405  371  7  1 92  1  0
     1  0      0 2003564   1876 1879832    0    0     0     0  280  147  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  274  133  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  352  194  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  340  174  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  409  182  0  0 100  0  0
     1  0      0 2003564   1876 1879832    0    0     0     0  396  196  0  0 100  0  0
    ^C
    root@Ryzen-2-vCore-VPS:~# date
    Fri Sep  6 05:39:28 AM UTC 2024
    root@Ryzen-2-vCore-VPS:~# 
    
Sign In or Register to comment.