David Yin's Blog https://www.yinfor.com/ Tech geek. Life geek. Wed, 20 Nov 2024 22:54:40 +0000 en-US hourly 1 https://wordpress.org/?v=6.7 https://www.yinfor.com/wp-content/uploads/2016/09/cropped-icon-120x120.png David Yin's Blog https://www.yinfor.com/ 32 32 Erase the HDD with KillDisk https://www.yinfor.com/2024/11/erase-the-hdd.html https://www.yinfor.com/2024/11/erase-the-hdd.html#respond Wed, 20 Nov 2024 22:54:26 +0000 https://www.yinfor.com/?p=10105 I want to introduce a software, KillDisk. I used it to wipe out or erase an HDD. I have an HDD with a Smart Warning. Western Digital WD Caviar Green....

The post Erase the HDD with KillDisk appeared first on David Yin's Blog.

]]>
I want to introduce a software, KillDisk. I used it to wipe out or erase an HDD. I have an HDD with a Smart Warning.

Western Digital WD Caviar Green.

  • WD20EARS, 2.0TB SATA/64MB Cache.
  • Product of Thailand
  • Date: 19, Jul 2010

It is about 14 years old. It’s still working, but the SMART information has a warning. I am not comfortable storing data on my PC or whatever devices.

So, I removed it. Before sending it to the recycle depot, I should wipe it out.

Formatting is not good enough. It is only a rewrite of the FAT table. The data on it can be restored or recovered.

Now, it is time for KillDisk.

I installed KillDisk on the PC, and mounted the HDD on it.

There are three disks on this PC. The middle one is the 2TB WD HDD.

  • Selected the whole disk.
  • Erase Disk.
  • I chose “One Pass Zero”. There are other choices, with higher security standards. I am using the Free version with a limit function.
  • Confirmed and run.

 

It took about 7 hours to complete.

Done.

The whole disk was erased.

The Erase Report pdf

The Free version of KillDisk is good for the Home user. You may have one or two disks that need to secure and clean the data. So it is one of the best choices.

 

The post Erase the HDD with KillDisk appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/11/erase-the-hdd.html/feed/ 0
Performance compared between PHP8.2.28 and PHP8.3.13 https://www.yinfor.com/2024/11/performance-compared-between-php8-2-28-and-php8-3-13.html https://www.yinfor.com/2024/11/performance-compared-between-php8-2-28-and-php8-3-13.html#respond Tue, 19 Nov 2024 06:35:46 +0000 https://www.yinfor.com/?p=10093 I just upgraded one Ubuntu server from 22.04 to 24.04. Then I did a php engine upgrade from 8.2.28 to 8.3.13. Both php are in php-fpm mode. Opcache JIT enabled....

The post Performance compared between PHP8.2.28 and PHP8.3.13 appeared first on David Yin's Blog.

]]>
I just upgraded one Ubuntu server from 22.04 to 24.04. Then I did a php engine upgrade from 8.2.28 to 8.3.13.

Both php are in php-fpm mode. Opcache JIT enabled.

Here are some php performance benchmark tests on the server.

Bench.php test

The average score on php8.2.28 is 0.2391.

The average score on php8.3.13 is 0.0766.

Micro-bench.php test

The average score on php8.2.28 is 1.3868.

The average score on php8.3.13 is 0.7908.

Bubble.php test

The average score on php8.2.28 is 0.066988.

The average score on php8.3.13 is 0.0319294.

 

Based on the above, I conclude that php8.3.13 is about 50% faster.

These speed tests do a lot of math calculations. It does not include the normal php webpage loading, CSS or static image files reading, or php mysql database connection.  So the PHP website loading speed on the computer browser is not that big difference.

I thought 10% is a lot.

After I published the post, I found another php test bench script.

The test results include IO,  Rand, and MySQL tests.

13.0586 Seconds on php8.2.25-FPM

9.5358 Seconds on php8.3.13-FPM.

PHP8.3.13 is 26.98% faster than PHP8.2.25. It is a WOW.

The post Performance compared between PHP8.2.28 and PHP8.3.13 appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/11/performance-compared-between-php8-2-28-and-php8-3-13.html/feed/ 0
Upgrade Gitlab-CE server to Ubuntu 24.04 https://www.yinfor.com/2024/11/upgrade-gitlab-ce-server-to-ubuntu-24-04.html https://www.yinfor.com/2024/11/upgrade-gitlab-ce-server-to-ubuntu-24-04.html#respond Mon, 18 Nov 2024 02:01:19 +0000 https://www.yinfor.com/?p=10086 Today, I upgraded my Gitlab CE install OS from Ubuntu 22.04 to 24.04 using the distro upgrade. Before upgrading, I made a full backup of the VM. When the OS...

The post Upgrade Gitlab-CE server to Ubuntu 24.04 appeared first on David Yin's Blog.

]]>
Today, I upgraded my Gitlab CE install OS from Ubuntu 22.04 to 24.04 using the distro upgrade.

Before upgrading, I made a full backup of the VM.

When the OS upgraded to Ubuntu 24.04, I added the two repositions back to the system.

1) Webmin

Run the following command to add it.

curl -o webmin-setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/webmin-setup-repos.sh
sh webmin-setup-repos.sh

2) Gitlab-CE

curl -LO https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh
sudo bash script.deb.sh

 

Look at the Webmin dashboard.

Later, I did another dist upgrade on my GitLab-runner server. It is on a separate VM. All the runners are tested.

To add gitlab-runner repos.

curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash

Follow the link to add a docker repo back.

The post Upgrade Gitlab-CE server to Ubuntu 24.04 appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/11/upgrade-gitlab-ce-server-to-ubuntu-24-04.html/feed/ 0
Transmission Daemon failed with timeout error https://www.yinfor.com/2024/11/transmission-daemon-failed-with-timeout-error.html https://www.yinfor.com/2024/11/transmission-daemon-failed-with-timeout-error.html#respond Sun, 17 Nov 2024 07:55:04 +0000 https://www.yinfor.com/?p=10080 Here I just upgraded my NAS from Ubuntu 22.04 to 24.04. I check the services running on the NAS. I found Transmission Daemon is not active. I reboot the Ubuntu...

The post Transmission Daemon failed with timeout error appeared first on David Yin's Blog.

]]>
Here I just upgraded my NAS from Ubuntu 22.04 to 24.04. I check the services running on the NAS. I found Transmission Daemon is not active.

I reboot the Ubuntu server. Transmission Web UI is live for a while, then lost the connection. I went to the SSH window. Check the status of the service.

The service has failed.

After I checked Google, I found a workaround. It is not a solution, but works.

Edit /etc/systemd/system/transmission-daemon.service

Change the Type=simple

Then the file looks like below:

Done.

 

Reference:
transmission-daemon times out when launched by systemd

transmission-daemon fails to notify systemd of correct start

The post Transmission Daemon failed with timeout error appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/11/transmission-daemon-failed-with-timeout-error.html/feed/ 0
Btootos Earbuds suck https://www.yinfor.com/2024/11/btootos-earbuds-suck.html https://www.yinfor.com/2024/11/btootos-earbuds-suck.html#respond Thu, 14 Nov 2024 21:53:35 +0000 https://www.yinfor.com/?p=10063 I bought the Btootos Wireless Earbuds in Nov. 2023. Almost one year now. I used it about once a week—not very often. So, when I found it was a problem,...

The post Btootos Earbuds suck appeared first on David Yin's Blog.

]]>
I bought the Btootos Wireless Earbuds in Nov. 2023. Almost one year now.

I used it about once a week—not very often. So, when I found it was a problem, it was June 2024. The problem is that the right earbud is not charging when I put it into the case.  And the right earbud has no sound.

I tried to contact the Btootos support team on Sep 14, 2024. Flora replied to my email and asked for the order number. I gave these to her. She just sent me a guide to solve the problem.

I followed this guide and tried many times. It is not working.

See, two earbuds inside of the case. It should show the left and right batter charging icons when I close the case cover. But now left side only.

I contacted Flora a few times until October. No response.

Today, I opened Amazon.ca and looked at the item. The Btootos Wireless Earbuds are gone. Amazon said they couldn’t fetch the page.  This product has disappeared.  The seller, Outcool has disappeared too.

It is so bad for Btootos. Their earbuds suck. The support team sucks.

There is nothing good about Btootos, from products to services.

There is one comment: Do not buy stuff from Btootos.

 

A90 Pro True Wireless Earbuds are very terrible.

 

The post Btootos Earbuds suck appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/11/btootos-earbuds-suck.html/feed/ 0
Check the folder size on Ubuntu Terminal Window https://www.yinfor.com/2024/11/check-the-folder-size-on-ubuntu-terminal-window.html https://www.yinfor.com/2024/11/check-the-folder-size-on-ubuntu-terminal-window.html#respond Wed, 13 Nov 2024 21:52:58 +0000 https://www.yinfor.com/?p=10059 First, install the program, ncdu, to the Ubuntu VM davidyin@minecraft:~$ sudo apt install ncdu Reading package lists... Done Building dependency tree... Done Reading state information... Done The following NEW packages...

The post Check the folder size on Ubuntu Terminal Window appeared first on David Yin's Blog.

]]>
First, install the program, ncdu, to the Ubuntu VM

davidyin@minecraft:~$ sudo apt install ncdu
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  ncdu
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 50.7 kB of archives.
After this operation, 117 kB of additional disk space will be used.
Get:1 http://ca.archive.ubuntu.com/ubuntu noble/universe amd64 ncdu amd64 1.19-0                                                                                                                                                             .1 [50.7 kB]
Fetched 50.7 kB in 0s (124 kB/s)
Selecting previously unselected package ncdu.
(Reading database ... 128087 files and directories currently installed.)
Preparing to unpack .../ncdu_1.19-0.1_amd64.deb ...
Unpacking ncdu (1.19-0.1) ...
Setting up ncdu (1.19-0.1) ...
Processing triggers for man-db (2.12.0-4build2) ...
Scanning processes...
Scanning candidates...
Scanning linux images...

Pending kernel upgrade!
Running kernel version:
  6.8.0-45-generic
Diagnostics:
  The currently running kernel version is not the expected kernel version 6.8.0-48-generic.

Restarting the system to load the new kernel will not be handled automatically, so you should consider rebooting.

Restarting services...

Service restarts being deferred:
 /etc/needrestart/restart.d/dbus.service
 systemctl restart unattended-upgrades.service

No containers need to be restarted.

No user sessions are running outdated binaries.

No VM guests are running outdated hypervisor (qemu) binaries on this host.

Then, run the command ncdu in the terminal window.

The program will scan the files and folders under the current prompt directory. The old school command window shows the space usage of the folders.

Now, I can use the arrow key to navigate. Press enter to go into the folder.

Press Q to exit.

 

It is very easy to use. I like the simple interface and quick view.

The post Check the folder size on Ubuntu Terminal Window appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/11/check-the-folder-size-on-ubuntu-terminal-window.html/feed/ 0
HP 24f Monitor Vesa Mount – 3D printing https://www.yinfor.com/2024/11/hp-24f-monitor-vesa-mount-3d-printing.html https://www.yinfor.com/2024/11/hp-24f-monitor-vesa-mount-3d-printing.html#respond Mon, 04 Nov 2024 18:44:31 +0000 https://www.yinfor.com/?p=10043 I am using two HP 24f monitors side by side. I bought them three years ago at Costco. Here is the setup look. There is a big foot under the...

The post HP 24f Monitor Vesa Mount – 3D printing appeared first on David Yin's Blog.

]]>
I am using two HP 24f monitors side by side. I bought them three years ago at Costco.

Here is the setup look.

My desktop, montiorsThere is a big foot under the monitor. I want to change it and mount it on the bar or something. Then I can save the desk space.

HP 24f monitor doesn’t have standard VESA mounting screw holes. There is an insert tab on the back of the monitor.

I need to print something to replace the 3 above to catch the insert and hold the monitor.

I found it on a website, but I can not find it now. I forgot the original link. If you know it, or you are the original designer, please let me know. I will add the credit. HP_24es_Vesa_75mm_Mount_v1

Here are four pictures I forgot to upload here.

 

It is a great fit on the back.

Then I found two 2X4 lumber and cut them to the length I wanted, 24cm. The 2X4 is 3.5″ wide, good for the VESA mounting. I pre-drilled four holes on the 2X4. mount the monitor on the 2X4 with 4 screws.

 Also, I got screws from the storage room. These screws are from the Bunk Bed. The real name of these screws is Bolts Nuts Allen Head Screws Barrel Nuts.It is my draft design and the screws. I drilled the holes on the 2X4 and on the desk.

Mount them with the screw.

See, I make a plug as well.

This is the final look. It is clean and clear. Because I use one screw to mount the 2X4 on the desk. So I can turn it.

The key point of drilling the holes in the desk is the distance between the two monitors.

I have two holes here. Because the two monitors are too close. They are fighting each other when I turn them.

 

The post HP 24f Monitor Vesa Mount – 3D printing appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/11/hp-24f-monitor-vesa-mount-3d-printing.html/feed/ 0
Bambu Lab A1 mini 3D Printer https://www.yinfor.com/2024/11/bambu-lab-a1-mini-3d-printer.html https://www.yinfor.com/2024/11/bambu-lab-a1-mini-3d-printer.html#respond Sun, 03 Nov 2024 21:05:08 +0000 https://www.yinfor.com/?p=10014 I bought a 3D printer, a Bambu Lab A1 mini, from the official website. It took three days to arrive at my front door from the warehouse. Here is the...

The post Bambu Lab A1 mini 3D Printer appeared first on David Yin's Blog.

]]>
I bought a 3D printer, a Bambu Lab A1 mini, from the official website. It took three days to arrive at my front door from the warehouse.

Here is the list of the order.

  • A1 mini Printer $249.00
  • Hotend with nozzle $15.99
  • PLA Basic Jade white 1KG $29.99
  • Discount: -14.00
  • Shipping $30.00
  • Tax: $37.32
  • Total: $348.30

I wanted a 3D printer many years ago. My shopping habit is always like this.

  • I am interested in something.
  • Google it, looking for the reviews.
  • Check the alternative products or replacements.
  • Think about the cost to have it, the cost to run it, and the cost to repair it if it breaks.
  • Think about the total cost and how often I will use it.
  • Wait about one week. If I still want it seriously, I will run this list again and find a trusted vendor to purchase it.

Why did I buy Bambu Lab A1 mini?

Bambu Lab 3D printer is plug and play.

Plug and play is so important to me. I want to focus on the 3D design, and printing the prototype.

I don’t want to spend a lot of time to calibrate the machine.

There are a lot of reviews on the Internet. I don’t want to repeat it. I just want to record what I have and experience.

I opened the box and removed the foam. The big box has the Bambu A1 mini 3D printer and a sample filament.

 
I put the 3D printer on the IKEA LACK table. The very first job is to print the small boat. The whole printing process has very strong movement. The table is kind of shaking. So I put the printer on the ground now.

The 1KG Jade White PLA Basic filament arrived separately. I used them all until last week.

Here are some products I printed.

I designed the wire clip. It is used to fasten the cable under the cabinet.

The light cage. The design looks good. The end product is not as good as I expected. I thought it was a support issue or an overhanging issue. I will redesign it.

The good news is that it works.

The thing I printed yesterday is a clock face.

There is a free clock components “Kit-011” that comes with the Bambu Lab A1 mini.   I just need to go to the Maker World, search the name, and find the printing files.

I learned from my daughter, Grace. She told me how to seal the surface and paint on it.

Oh, the clock surface is printed with Elegoo Rapid PLA + filament. I ordered two 1 kg spools. Still white because I can paint it.

Below is the random picture I took for the printing.

The post Bambu Lab A1 mini 3D Printer appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/11/bambu-lab-a1-mini-3d-printer.html/feed/ 0
Problem of Sogou Pinyin IME https://www.yinfor.com/2024/11/problem-of-sogou-pinyin-ime.html https://www.yinfor.com/2024/11/problem-of-sogou-pinyin-ime.html#respond Fri, 01 Nov 2024 21:46:06 +0000 https://www.yinfor.com/?p=10007 I used Sogou Pinyin IME for many years. It is easy to use. Save your time, the conclusion is: Do not use Sogou Pinyin IME. https://shurufa.sogou.com/ Here is the problem...

The post Problem of Sogou Pinyin IME appeared first on David Yin's Blog.

]]>
I used Sogou Pinyin IME for many years. It is easy to use.

Save your time, the conclusion is: Do not use Sogou Pinyin IME.

https://shurufa.sogou.com/

Here is the problem I found last month.

The blue circle with the mouse arrow is always there.  When I boot the PC, it is normal. After a while, I opened a browser or ran some programs, and the circle came.

I tried to check every spot in my Windows installation. Such as system drivers, antivirus programs, open Firefox, or Chrome. But the same results.

I knew something is running behind the screen. It is the reason for the blue circle.

I did not think about Sougo pinyin. I used it for many years, since Google Pinyin is gone.

Until I saw some news on Google News.

Vulnerability in Tencent’s Sogou Chinese Keyboard Can Leak Text Input in Real-Time
Almost Every Chinese Keyboard App Has a Security Flaw That Reveals What Users Type
So, I uninstalled the Sogou Pinyin IME. I re-enabled the Microsoft Pinyin.

The blue circle disappeared immediately. Now, it has been almost one month. I believe that the Sogou Pinyin did something behind me. I don’t like it. I know nobody likes this kind of thing. I have to post it and let everyone know it.

 

 

The post Problem of Sogou Pinyin IME appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/11/problem-of-sogou-pinyin-ime.html/feed/ 0
PCIe to SATA adapter https://www.yinfor.com/2024/10/pcie-to-sata-adapter.html https://www.yinfor.com/2024/10/pcie-to-sata-adapter.html#respond Fri, 25 Oct 2024 21:50:29 +0000 https://www.yinfor.com/?p=9991 I received my order, a PCIe to SATA adapter yesterday. I installed it immediately to add the fifth hard drive to my PC. Here is my PC situation. The motherboard...

The post PCIe to SATA adapter appeared first on David Yin's Blog.

]]>
I received my order, a PCIe to SATA adapter yesterday. I installed it immediately to add the fifth hard drive to my PC.

Here is my PC situation. The motherboard is an ASUS Prime B450M-A II. The storage posts are one M.2 socket 3 and four  SATA 6Gb/s ports provided by the B450 chipset. On the motherboard, there are SATA6G 5/6 ports, but they share bandwidth with the M.2 slot.

So, I installed Samsung 970 EVO Plus on the M.2 slot for the OS and system. Then, I can use only four SATA ports for my Blueray Bunner, two WD HDDs, and one Crucial SDD.

I still have a Crucial SDD I want to install on my PC.

I am looking at the chance of converting PCIe to SATA. I know there are some products that work on it.

I ordered on AliExpress. It took about ten days to my front door.

$10.99.

Oh, I forgot to mention that the motherboard has one PCIe3 x16 and two PCIe2x1. It limited my choice to hunting the SATA adapter. I have to look for the PCIe2.0x1 to SATA adapter.

I open the PC case. Insert it into the PCIe 2.0×1 slot. Connect the SATA data cable. Connect the power cable.

 The next picture includes all the drives in the PC.

I believe that the adapter is powered by the Asmedia ASM1061 chip.

When I power on the PC, I don’t need to install anything.  Windows 11 finds the driver automatically.

The SSD connected to the SATA adapter is Crucial MX100 256GB, which I bought ten years ago. Let me run an AS SSD Benchmark test.

I tested another Crucial SSD which connects to the motherboard directly. Crucial BX200 240GB, which I bought eight years ago.

The score is very close.

I am happy with this eleven-dollar upgrade. It gives me an option to use my old computer parts.

 

 

 

The post PCIe to SATA adapter appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/10/pcie-to-sata-adapter.html/feed/ 0
Coping files Speed https://www.yinfor.com/2024/10/coping-files-speed.html https://www.yinfor.com/2024/10/coping-files-speed.html#respond Wed, 23 Oct 2024 23:22:31 +0000 https://www.yinfor.com/?p=9982 Here is the comparison of coping files from HDD to SSD and from SSD to SSD I have an HDD, which has a lot of game files. I want to...

The post Coping files Speed appeared first on David Yin's Blog.

]]>
Here is the comparison of coping files from HDD to SSD and from SSD to SSD

I have an HDD, which has a lot of game files. I want to move it to an SSD with a SATA connection.

HDD to SSD

Look, it is about 140MB/s. Higher 150MB/s, lower 110MB/s.

Based on the information I collected.

A standard HDD will read and write at typically 80MB/s to 160MB/s,

SATA SSDs typically peak around 500MB/s to 600MB/s. 

So forget what exactly the type or module of the drivers are, the max speed I can get is 160MB/s theoretically.

 

I launched the Xbox app and changed the driver of Fallout 76(PC).

The speed of moving is 2.5Gbps. Converted to MB/s is 312.5MB/s

moving game in Xbox appThis speed is to move a game from SSD A to SSD B.

Then, I copied a folder with mp4 files from SSD A to SSD B.

SSD to SSDBoth SSDs are in SATA format. The speed is acceptable.

 

So in the future. HDD can only be used for the data not read and write often, just like an archive drive. I named it cold-data.

The post Coping files Speed appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/10/coping-files-speed.html/feed/ 0
VPS performance benchmark – DigitalOcean Basic Premium AMD https://www.yinfor.com/2024/10/vps-performance-benchmark-digitalocean-basic-premium-amd.html https://www.yinfor.com/2024/10/vps-performance-benchmark-digitalocean-basic-premium-amd.html#respond Wed, 09 Oct 2024 00:09:41 +0000 https://www.yinfor.com/?p=9973 I created a new VPS on DigitalOcean yesterday. It is a basic shared CPU, premium AMD with NVMe SSD, 1vCPU, 1GB memory, 25GB NVMe storage, and 1TB transfer—data center in...

The post VPS performance benchmark – DigitalOcean Basic Premium AMD appeared first on David Yin's Blog.

]]>
I created a new VPS on DigitalOcean yesterday. It is a basic shared CPU, premium AMD with NVMe SSD, 1vCPU, 1GB memory, 25GB NVMe storage, and 1TB transfer—data center in San Francisco.

The monthly cost of this VPS is $7.

The reason why to made it is to demonstrate how to install a VPS with Ubuntu 24.04 (LTS), Webmin, Nginx, MariaDB, PHP8.3-FPM, and Perl-Fastcgi.

I just changed the TCP Congestion Control Algorithms to BBR.

Yet-Another-Bench-Script (YABS)

It includes three parts.

  1.  Disk Speed tests – fio;
  2. iperf3 Network speed test IPv4 and IPv6;
  3. Geekbench 4 test.
davidyin@walnut:~$ curl -sL yabs.sh | bash -s -- -4
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #
#              Yet-Another-Bench-Script              #
#                     v2024-06-09                    #
# https://github.com/masonr/yet-another-bench-script #
# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #

Tue Oct  8 15:57:42 PDT 2024

Basic System Information:
---------------------------------
Uptime     : 0 days, 0 hours, 14 minutes
Processor  : DO-Premium-AMD
CPU cores  : 1 @ 2299.998 MHz
AES-NI     : ✔ Enabled
VM-x/AMD-V : ✔ Enabled
RAM        : 961.6 MiB
Swap       : 0.0 KiB
Disk       : 24.1 GiB
Distro     : Ubuntu 24.04.1 LTS
Kernel     : 6.8.0-45-generic
VM Type    : KVM
IPv4/IPv6  : ✔ Online / ✔ Online

IPv6 Network Information:
---------------------------------
ISP        : DigitalOcean, LLC
ASN        : AS14061 DigitalOcean, LLC
Host       : Digital Ocean
Location   : Santa Clara, California (CA)
Country    : United States

Running fio random mixed R+W disk test with 4k block size...
fio Disk Speed Tests (Mixed R/W 50/50) (Partition /dev/vda1):
---------------------------------
Block Size | 4k            (IOPS) | 64k           (IOPS)
  ------   | ---            ----  | ----           ----
Read       | 90.53 MB/s   (22.6k) | 376.39 MB/s   (5.8k)
Write      | 90.77 MB/s   (22.6k) | 378.37 MB/s   (5.9k)
Total      | 181.31 MB/s  (45.3k) | 754.77 MB/s  (11.7k)
           |                      |
Block Size | 512k          (IOPS) | 1m            (IOPS)
  ------   | ---            ----  | ----           ----
Read       | 184.09 MB/s    (359) | 384.24 MB/s    (375)
Write      | 193.87 MB/s    (378) | 409.83 MB/s    (400)
Total      | 377.96 MB/s    (737) | 794.07 MB/s    (775)

iperf3 Network Speed Tests (IPv4):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed      | Ping
-----           | -----                     | ----            | ----            | ----
Clouvider       | London, UK (10G)          | 1.12 Gbits/sec  | 1.53 Gbits/sec  | 133 ms
Eranium         | Amsterdam, NL (100G)      | 1.11 Gbits/sec  | 1.64 Gbits/sec  | 144 ms
Uztelecom       | Tashkent, UZ (10G)        | 587 Mbits/sec   | 952 Mbits/sec   | 238 ms
Leaseweb        | Singapore, SG (10G)       | 771 Mbits/sec   | 1.24 Gbits/sec  | --
Clouvider       | Los Angeles, CA, US (10G) | 2.00 Gbits/sec  | 8.31 Gbits/sec  | 11.9 ms
Leaseweb        | NYC, NY, US (10G)         | 1.89 Gbits/sec  | 3.69 Gbits/sec  | 69.3 ms
Edgoo           | Sao Paulo, BR (1G)        | 807 Mbits/sec   | 692 Mbits/sec   | 184 ms

iperf3 Network Speed Tests (IPv6):
---------------------------------
Provider        | Location (Link)           | Send Speed      | Recv Speed      | Ping
-----           | -----                     | ----            | ----            | ----
Clouvider       | London, UK (10G)          | busy            | 1.21 Gbits/sec  | 134 ms
Eranium         | Amsterdam, NL (100G)      | 1.09 Gbits/sec  | 1.65 Gbits/sec  | 144 ms
Uztelecom       | Tashkent, UZ (10G)        | 522 Mbits/sec   | 848 Mbits/sec   | 238 ms
Leaseweb        | Singapore, SG (10G)       | 801 Mbits/sec   | 1.19 Gbits/sec  | 179 ms
Clouvider       | Los Angeles, CA, US (10G) | 2.00 Gbits/sec  | 8.75 Gbits/sec  | 11.9 ms
Leaseweb        | NYC, NY, US (10G)         | busy            | busy            | 69.6 ms
Edgoo           | Sao Paulo, BR (1G)        | 794 Mbits/sec   | 386 Mbits/sec   | 184 ms

Geekbench 4 Benchmark Test:
---------------------------------
Test            | Value
                |
Single Core     | 4439
Multi Core      | 4184
Full Test       | https://browser.geekbench.com/v4/cpu/18134744

YABS completed in 10 min 6 sec
davidyin@walnut:~$

Bench.sh

It has following testing portions.

  1.   I/O test
  2.  Network Speed test
wget -qO- bench.sh | bash
-------------------- A Bench.sh Script By Teddysun -------------------
 Version            : v2023-10-15
 Usage              : wget -qO- bench.sh | bash
----------------------------------------------------------------------
 CPU Model          : DO-Premium-AMD
 CPU Cores          : 1 @ 2299.998 MHz
 CPU Cache          : 512 KB
 AES-NI             : ✓ Enabled
 VM-x/AMD-V         : ✓ Enabled
 Total Disk         : 24.1 GB (2.6 GB Used)
 Total Mem          : 961.6 MB (478.4 MB Used)
 System uptime      : 0 days, 0 hour 25 min
 Load average       : 0.12, 0.32, 0.30
 OS                 : Ubuntu 24.04.1 LTS
 Arch               : x86_64 (64 Bit)
 Kernel             : 6.8.0-45-generic
 TCP CC             : bbr
 Virtualization     : Dedicated
 IPv4/IPv6          : ✓ Online / ✓ Online
 Organization       : AS14061 DigitalOcean, LLC
 Location           : Santa Clara / US
 Region             : California
----------------------------------------------------------------------
 I/O Speed(1st run) : 538 MB/s
 I/O Speed(2nd run) : 501 MB/s
 I/O Speed(3rd run) : 617 MB/s
 I/O Speed(average) : 552.0 MB/s
----------------------------------------------------------------------
 Node Name        Upload Speed      Download Speed      Latency
 Speedtest.net    1998.97 Mbps      15605.72 Mbps       0.36 ms
 Los Angeles, US  1995.83 Mbps      8625.92 Mbps        10.93 ms
 Dallas, US       1994.46 Mbps      2191.95 Mbps        38.91 ms
 Montreal, CA     595.80 Mbps       919.63 Mbps         66.60 ms
 Amsterdam, NL    278.79 Mbps       5216.23 Mbps        141.40 ms
 Shanghai, CN     484.71 Mbps       2797.90 Mbps        170.55 ms
 Hongkong, CN     3.00 Mbps         0.81 Mbps           156.12 ms
 Mumbai, IN       342.95 Mbps       3947.60 Mbps        246.15 ms
 Singapore, SG    196.00 Mbps       723.00 Mbps         176.27 ms
----------------------------------------------------------------------
 Finished in        : 4 min 25 sec
 Timestamp          : 2024-10-08 16:13:41 PDT
----------------------------------------------------------------------


 

UnixBench

First I need to clone the project, then install the build-essential
software, build the software. At last run the test.

 

davidyin@walnut:~$ git clone https://github.com/kdlucas/byte-unixbench
Cloning into 'byte-unixbench'...
remote: Enumerating objects: 258, done.
remote: Counting objects: 100% (97/97), done.
remote: Compressing objects: 100% (38/38), done.
remote: Total 258 (delta 76), reused 59 (delta 59), pack-reused 161 (from 1)
Receiving objects: 100% (258/258), 209.78 KiB | 3.62 MiB/s, done.
Resolving deltas: 100% (146/146), done.
davidyin@walnut:~$ sudo apt install build-essential
davidyin@walnut:~$ cd byte-unixbench/UnixBench
davidyin@walnut:~/byte-unixbench/UnixBench$ make all
davidyin@walnut:~/byte-unixbench/UnixBench$ ./Run

  #    #  #    #  #  #    #          #####   ######  #    #   ####   #    #
   #    #  ##   #  #   #  #           #    #  #       ##   #  #    #  #    #
   #    #  # #  #  #    ##            #####   #####   # #  #  #       ######
   #    #  #  # #  #    ##            #    #  #       #  # #  #       #    #
   #    #  #   ##  #   #  #           #    #  #       #   ##  #    #  #    #
    ####   #    #  #  #    #          #####   ######  #    #   ####   #    #

   Version 5.1.3                      Based on the Byte Magazine Unix Benchmark

   Multi-CPU version                  Version 5 revisions by Ian Smith,
                                      Sunnyvale, CA, USA
   January 13, 2011                   johantheghost at yahoo period com

------------------------------------------------------------------------------
   Use directories for:
      * File I/O tests (named fs***) = /home/davidyin/byte-unixbench/UnixBench/tmp
      * Results                      = /home/davidyin/byte-unixbench/UnixBench/results
------------------------------------------------------------------------------


1 x Dhrystone 2 using register variables  1 2 3
 4 5 6 7 8 9 10

1 x Double-Precision Whetstone  1 2 3 4 5 6 7 8 9 10

1 x Execl Throughput  1 2 3

1 x File Copy 1024 bufsize 2000 maxblocks  1 2 3

1 x File Copy 256 bufsize 500 maxblocks  1 2 3

1 x File Copy 4096 bufsize 8000 maxblocks  1 2 3

1 x Pipe Throughput  1 2 3 4 5 6 7 8 9 10

1 x Pipe-based Context Switching  1 2 3 4 5 6 7 8 9 10

1 x Process Creation  1 2 3

1 x System Call Overhead  1 2 3 4 5 6 7 8 9 10

1 x Shell Scripts (1 concurrent)  1 2 3

1 x Shell Scripts (8 concurrent)  1 2 3

========================================================================
   BYTE UNIX Benchmarks (Version 5.1.3)

   System: walnut: GNU/Linux
   OS: GNU/Linux -- 6.8.0-45-generic -- #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 30 12:02:04 UTC 2024
   Machine: x86_64 (x86_64)
   Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
   CPU 0: DO-Premium-AMD (4600.0 bogomips)
          x86-64, MMX, AMD MMX, Physical Address Ext, SYSENTER/SYSEXIT, AMD virtualization, SYSCALL/SYSRET
   16:20:25 up 36 min,  1 user,  load average: 0.04, 0.45, 0.58; runlevel 2024-10-08

------------------------------------------------------------------------
Benchmark Run: Tue Oct 08 2024 16:20:25 - 16:48:30
1 CPU in system; running 1 parallel copy of tests

Dhrystone 2 using register variables       40609711.9 lps   (10.0 s, 7 samples)
Double-Precision Whetstone                     7595.2 MWIPS (10.2 s, 7 samples)
Execl Throughput                               1697.8 lps   (30.0 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks        396478.9 KBps  (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks          104575.1 KBps  (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks       1253226.3 KBps  (30.0 s, 2 samples)
Pipe Throughput                              660432.3 lps   (10.0 s, 7 samples)
Pipe-based Context Switching                  88938.9 lps   (10.0 s, 7 samples)
Process Creation                               4874.2 lps   (30.0 s, 2 samples)
Shell Scripts (1 concurrent)                   4795.6 lpm   (60.0 s, 2 samples)
Shell Scripts (8 concurrent)                    632.5 lpm   (60.0 s, 2 samples)
System Call Overhead                         659235.0 lps   (10.0 s, 7 samples)

System Benchmarks Index Values               BASELINE       RESULT    INDEX
Dhrystone 2 using register variables         116700.0   40609711.9   3479.8
Double-Precision Whetstone                       55.0       7595.2   1380.9
Execl Throughput                                 43.0       1697.8    394.8
File Copy 1024 bufsize 2000 maxblocks          3960.0     396478.9   1001.2
File Copy 256 bufsize 500 maxblocks            1655.0     104575.1    631.9
File Copy 4096 bufsize 8000 maxblocks          5800.0    1253226.3   2160.7
Pipe Throughput                               12440.0     660432.3    530.9
Pipe-based Context Switching                   4000.0      88938.9    222.3
Process Creation                                126.0       4874.2    386.8
Shell Scripts (1 concurrent)                     42.4       4795.6   1131.0
Shell Scripts (8 concurrent)                      6.0        632.5   1054.1
System Call Overhead                          15000.0     659235.0    439.5
                                                                   ========
System Benchmarks Index Score                                         793.2

Compare with the DigitalOcean Intel CPU VPS, which one will you use?

The post VPS performance benchmark – DigitalOcean Basic Premium AMD appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/10/vps-performance-benchmark-digitalocean-basic-premium-amd.html/feed/ 0
AMD Ryzen 5 5600G Benchmark https://www.yinfor.com/2024/10/amd-ryzen-5-5600g-benchmark.html https://www.yinfor.com/2024/10/amd-ryzen-5-5600g-benchmark.html#respond Mon, 07 Oct 2024 18:16:48 +0000 https://www.yinfor.com/?p=9966 It is the CPU on my desktop, AMD Ryzen 5 5600G. I got this CPU in December 2021, almost three years ago. I am still using it as my main...

The post AMD Ryzen 5 5600G Benchmark appeared first on David Yin's Blog.

]]>
It is the CPU on my desktop, AMD Ryzen 5 5600G. I got this CPU in December 2021, almost three years ago. I am still using it as my main PC.

Recently, I watched a video about Scrapyard Wars on the Linus Tech Tips YouTube channel. They spend less than 800 bucks to get a complete PC setup, even including a desk and chair. At last, they did some Cinebench benchmark tests. I would like to have a look at my old PC. See what kind of ranking it is.

The basic information of my PC:

Summary

Operating System
Windows 11 Pro 64-bit
CPU
AMD Ryzen 5 5600G 51 °C
Cezanne 7nm Technology
RAM
44.0GB Dual-Channel DDR4 @ 1330MHz (20-19-19-43)
Motherboard
ASUSTeK COMPUTER INC. PRIME B450M-A II (AM4) 32 °C
Graphics
HP 24f (1920×1080@60Hz)
HP 24f (1920×1080@75Hz)
1024MB ATI AMD Radeon Graphics (ASUStek Computer Inc)
Storage
931GB Western Digital WDC WD10EZEX-00BN5A0 (SATA ) 32 °C
223GB Crucial CT240BX200SSD1 (SATA (SSD)) 36 °C
1863GB Western Digital WDC WD20EARS-00J2GB0 (SATA ) 41 °C
931GB Samsung SSD 970 EVO Plus 1TB (Unknown (SSD))
Optical Drives
HL-DT-ST BD-RE WH16NS40
Audio
Realtek High Definition Audio

I run the latest CineBench 2024.

Single Core: 81

Multi-Core: 532

No GPU score, because I don’t have a video card.

For the record, in the CineBench R23, the Single core 1174pts, and the Multi core 7577pts.

The post AMD Ryzen 5 5600G Benchmark appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/10/amd-ryzen-5-5600g-benchmark.html/feed/ 0
Upgrade TP-Link Deco X90 https://www.yinfor.com/2024/09/upgrade-tp-link-deco-x90.html https://www.yinfor.com/2024/09/upgrade-tp-link-deco-x90.html#respond Thu, 26 Sep 2024 06:06:39 +0000 https://www.yinfor.com/?p=9952 I have two Deco X90 routers.  I used them for more than two years. Normally I will check it to see if it has new firmware. I sign in to...

The post Upgrade TP-Link Deco X90 appeared first on David Yin's Blog.

]]>
I have two Deco X90 routers.  I used them for more than two years. Normally I will check it to see if it has new firmware.

I sign in to the router interface first. Go to the Advanced > System > Firmware Upgrade, Click the button “Check for Upgrades” to do the online checking.

I saw that there is a new firmware, v1.2.7.  I am not going to do the online upgrade. I prefer to do it with the local firmware file.

Then, I went to the official website. Here is the very important step. Make sure the hardware version and which county you purchase the device. Different hardware version has different firmware. Different countries need different firmware.

  • My Deco X90’s hardware version is 1.0.
  • I got it from the USA.

So go to the USA website, and find the Deco X90 support page. Select hardware version v1.0

Download the firmware file of v1.2.7. Uncompressed the file.

There is a important firmware file with the extension name .bin.

X90_X5700v1--up-ver1-2-7-P1[20240719-rel66567]-US_EU_JP_2024-07-20_15.37.15.bin

Go back to the Deco Admin Firmware page. Browse the bin file and click Upgrade button.

It took a few minutes to upgrade.

After it, the routers will reboot.

After rebooting, the system will be back online.

Sign in to the Admin page and check the firmware again to ensure it is v1.2.7.

I forgot to mention some details of my setting:

  • My Deco X90 routers are working as AP. Both connect to the local network with Cat5E cable. Office one is in the basement. Gloria’s room one is in the second floor.
  • Two routers are upgraded together in one step.
  • My PC is also connected to the LAN with the ethernet cable.

 

The post Upgrade TP-Link Deco X90 appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/09/upgrade-tp-link-deco-x90.html/feed/ 0
Program ESP32 CAM with YP-05 FTDI https://www.yinfor.com/2024/09/program-esp32-cam-with-yp-05-ftdi.html https://www.yinfor.com/2024/09/program-esp32-cam-with-yp-05-ftdi.html#respond Mon, 16 Sep 2024 00:54:10 +0000 https://www.yinfor.com/?p=9927 I bought an ESP32-CAM board and an FTDI (YP-05) board in July.  It was hard to find time to play them until yesterday. Here is what I got. ESP32-CAM board...

The post Program ESP32 CAM with YP-05 FTDI appeared first on David Yin's Blog.

]]>
I bought an ESP32-CAM board and an FTDI (YP-05) board in July.  It was hard to find time to play them until yesterday.

Here is what I got.

ESP32-CAM board

$5.53 for the ESP32-CAM WiFi Module and OV2640 Camera Module.

The Specification:

Working voltage 4.75-5.25V
SPIFlash default 32Mbit
RAM internal 520KB + external 8MB PSRAM
Wi-Fi 802.11b/g/n/e/i
Bluetooth Bluetooth 4.2BR/EDR and BLE standard
Support interface (2Mbps) UART, SPI, I2C, PWM
Support TF card, maximum support 4G
IO port 9
Serial port rate default 115200bps
Spectrum range 2400 ~2483.5MHz
Antenna form Onboard PCB antenna, gain 2dBi
Image output format: JPEG (only OV2640 support), BMP, GRAYSCALE
Packaging method DIP-16
Transmit power 802.11b: 17±2dBm (@11Mbps)
802.11g: 14±2dBm (@54Mbps)
802.11n: 13±2dBm (@MCS7)
Receiving sensitivity CCK, 1Mbps: -90dBm
CCK, 11Mbps: -85dBm
6Mbps(1/2BPSK): -88dBm
54Mbps (3/464-QAM): -70dBm
MCS7 (65Mbps, 72.2Mbps): -67dBm
Power consumption Turn off the flash: 180mA@5V
Turn on the flash and adjust the brightness to the maximum: 310mA@5V
Deep-sleep: The lowest power consumption can reach 6mA@5V
Moderm-sleep: the lowest can reach 20mA@5V
Light-sleep: the lowest can reach 6.7mA@5V
Security WPA/WPA2/WPA2-Enterprise/WPS
Working temperature -20 ℃~ 70 ℃
Storage environment -40 ℃~ 125 ℃, <90%RH

The ESP32 board has an ov2640 camera. This board has no USB port. So I need an FTDI device to connect to the computer.

$2 for FT232 Red Module. YP-05 is labeled on the back of the board.

Specification:

· Using FT232RL chip of FTDI;

· Lead out all signal ports of FT232RL chip, TTL/CMOS level;

·RXD/TXD transceiver communication indicator light;

·USB power supply, optional 5V or 3.3V interface level (if other levels are required, the target voltage can be supplied directly on the VCC and GND pins).

And last, I need a female-to-female Jumper Wire Dupont Cable.

I got the 40-pin female-to-female jumper wire on Temu. $2.48

I followed the instructions on Random Nerd Tutorials.

The first step is to connect them for programming.

How to Program / Upload Code to ESP32-CAM AI-Thinker (Arduino IDE)

It is not that hard to do it. Just make sure all the pins are the same as the article.

My stuff is as follows. The FTDI board is USB Type-C. I used a UGreen USB Type A to Type C cable to connect it. I also have a SanDisk Ultra 16GB MicroSD card plugged in for storage.

I do use Arduino IDE to program and upload it.

The first trial is to make it a camera.

ESP32-CAM take photo and save to MicroSD card.

It works. But the photo is kind of tinted or blue/green. With Flash, but no help.

The second trial is to make it a streaming web server.

ESP32-CAM Video Streaming Web Server (works with Home Assistant)

The color of the picture is OK. But the Web server is kind of slow. I have to wait for the picture to load. Just like twenty-five years ago. I dialed up to get an Internet connection with a 14.4kbps modem.

After a while, I feel the board is hot when I unplug it.

The last one I tried yesterday was a photo web server.

ESP32-CAM take photo and display in Web Server.

The slow-loading picture is still the problem.  The board is also hot.

 

I thought the problems above are related as below:

  • WiFi connection with internal antenna. (Maybe the external antenna can solve the problem)
  • Processor is not strong enough?
  • OV2640 camera module is hot?
  • Code issue?

I have no idea. Someone said to add a heatsink. Someone said the code/program is too heavy for the ESP32.

If you know why, please leave your comment.

 

 

The post Program ESP32 CAM with YP-05 FTDI appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2024/09/program-esp32-cam-with-yp-05-ftdi.html/feed/ 0