2022年4月18日 星期一

2022 Network Cards and Switches 10G Solarflare Hardware Timestamping

Cards

SFN6322F10Gb $220

https://www.bhphotovideo.com/c/product/1017856-REG/solarflare_sfn6322f_solarflare_srvr_adptr_crd.html

PCIe x8 Precision Time Stamping (Port 0)

SO_TIMESTAMPING PTPv2 daemon


SFN5122F $500

SFN8522 $1000

SNF7322 $600


SO_TIMESTAMPING

https://docs.kernel.org/networking/timestamping.html

err = setsockopt(fd, SOL_SOCKET, SO_TIMESTAMPING, &val, sizeof(val));


MSI B450M Mortar Max Onboard NIC

Realtek RTL8111/8168/8400 PCIE GBE
enp34s0
sudo ethtool -T enp34s0

Time stamping parameters for enp34s0:
Capabilities:
software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none

MSI B450M Mortar Max PCIE_3 NIC
Intel 8260NGW
wlo1
sudo ethtool -T wlo1
Time stamping parameters for wlo1:
Capabilities:
software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
PTP Hardware Clock: none
Hardware Transmit Timestamp Modes: none
Hardware Receive Filter Modes: none

Online some one NIC
https://networkengineering.stackexchange.com/questions/23369/how-to-check-if-a-nic-supports-hardware-timestamps
Time stamping parameters for eth0:
Capabilities:
    hardware-transmit     (SOF_TIMESTAMPING_TX_HARDWARE)
    software-transmit     (SOF_TIMESTAMPING_TX_SOFTWARE)
    hardware-receive      (SOF_TIMESTAMPING_RX_HARDWARE)
    software-receive      (SOF_TIMESTAMPING_RX_SOFTWARE)
    software-system-clock (SOF_TIMESTAMPING_SOFTWARE)
    hardware-raw-clock    (SOF_TIMESTAMPING_RAW_HARDWARE)
PTP Hardware Clock: 0
Hardware Transmit Timestamp Modes:
    off                   (HWTSTAMP_TX_OFF)
    on                    (HWTSTAMP_TX_ON)
Hardware Receive Filter Modes:
    none                  (HWTSTAMP_FILTER_NONE)
    all                   (HWTSTAMP_FILTER_ALL)
    ptpv1-l4-sync         (HWTSTAMP_FILTER_PTP_V1_L4_SYNC)
    ptpv1-l4-delay-req    (HWTSTAMP_FILTER_PTP_V1_L4_DELAY_REQ)
    ptpv2-l4-sync         (HWTSTAMP_FILTER_PTP_V2_L4_SYNC)
    ptpv2-l4-delay-req    (HWTSTAMP_FILTER_PTP_V2_L4_DELAY_REQ)
    ptpv2-l2-sync         (HWTSTAMP_FILTER_PTP_V2_L2_SYNC)
    ptpv2-l2-delay-req    (HWTSTAMP_FILTER_PTP_V2_L2_DELAY_REQ)
    ptpv2-event           (HWTSTAMP_FILTER_PTP_V2_EVENT)
    ptpv2-sync            (HWTSTAMP_FILTER_PTP_V2_SYNC)
    ptpv2-delay-req       (HWTSTAMP_FILTER_PTP_V2_DELAY_REQ)

SIOCSHWTSTAMP

https://elixir.bootlin.com/linux/v4.2/source/Documentation/networking/timestamping/timestamping.c
https://gitlab.com/etoricky/linuxsocket/-/blob/master/28timestamp/28timestamp.cpp
./28timestamp wlo1 SOF_TIMESTAMPING_RX_HARDWARE
SIOCSHWTSTAMP: Operation not permitted


Switches

N3K-C3548P-XL $43000 2022-04 TB Price
N3K-C3524P-XL $36000 
N3K-C3132Q-V $14000 2022-04 XY Price





End


Netgear R6400 v1 to Merlin for AiMesh

 Netgear R6400 v1 to Merlin for AiMesh


CPU
R6400V1 Broadcom BCM4708A0 800MHz 2C KFEBG 256MB RAM 128MB Flash
R6400V2 Broadcom BCM4708C0 1GHz 2C 256MB RAM 128MB Flash

BCM4708A0 800MHz
AC68U

BCM4708C0 1GHz
AC66U B1

Merlin

R6400_380.63_2_X7.2.1.trx
R6400_380.63_2_X7.2.1.chk
https://upsangel.com/security/home-security/shadowsocks-vpn-server-on-merlin-r6400-guide/
Koolshare_Merlin_New_Gen_384
R6400的改版386固件,也就是利用沧海遗珠的R6300 V2(与R6400的硬件参数一直)刷改CFE,实现386固件的刷入,具备梅林386的一些特性,如AiMesh

Status

Too difficult to find old .chk file. Failed



End

2022年4月17日 星期日

2022 Intel J4125 NUC

 High

7700K 9662 95W 4C8T 2016Q4
6700K 8960 95W 4C8T 2015Q2

Low
8260U 7854 15W 4C8T 2020Q2
8250U 5942 15W 4C8T 2017Q2
N6005 4513 10W 4C4T 2021Q4
N5105 4161 10W 4C4T 2021Q2
N5095 4087 15W 4C4T 2021Q2
8145U 3842 15W 2C4T 2018Q4
7300U 3745 15W 2C4T 2017Q1
8130U 3647 15W 2C4T 2018Q2
N5040 3518 10W 4C4T 2020Q1
7200U 3413 15W 2C4T 2016Q4
6500U 3280 15W 2C4T 2015Q2
J5005 3039 10W 4C4T 2017Q4
J4125 3002 10W 4C4T 2020Q1
J4105 2911 10W 4C4T 2018Q1
N6000 2869 6W 4C4T 2021Q1
N5030 2692 6W 4C4T 2020Q1
N5000 2596 6W 4C4T 2018Q1
5250U 2504 15W 2C4T 2015Q1
N4120 2493 6W 4C4T 2020Q1
N4100 2453 6W 4C4T 2018Q2
2540M 2293 35W 2C4T 2010Q4
j3455 2235 10W 4C4T 2016Q4
4200u 2209 15W 2C4T 2013Q1
N3450 1931 6W 4C4T 2016Q4
N4000 1398 6W 2C2T 2018Q2
J3160 1216 6W 4C4T 2016Q2
J3355 1195 10W 2C2T 2017Q1
N3150 1193 6W 4C4T 2015Q2
N3160 1154 6W 4C4T 2016Q2
J1900 1135 10W 4C4T 2014Q1
3215U 1144 15W 2C2T 2016Q1
N3350 1128 6W 2C2T 2016Q4
2980U 1056 15W 2C2T 2014Q2
1037U 969 17W 2C2T 2013Q2
Z8350 910 4W 4C4T 2016Q2
P8600 851 25W 2C2T 2008Q4
P8400 827 25W 2C2T 2008Q4
1007U 798 17W 2C2T 2013Q1
N3000 604 4W 2C2T 2015Q2
N3050 591 6W 2C2T 2015Q2
N2840 581 7W 2C2T 2014Q4
J1800 583 10W 2C2T 2014Q1 huge stocks
N450 177 5.5W 1C2T 2010Q1

Bought

$680 NingMei MoFang M1T J4125 8GB 128G mSATA 2242 12V2A
BIOS TPM or Linux will brick this device!

Price

2022 XY Prices

$730=$580+150 Kodlix GD41 0+0 n4100 lan2, if 8GB +$150

$850 Ningmei 8+512 (rejected)
$759 Ningmei 8+256



$1000 Teclast 24inch J4125 8+256
$880 4lan j4125 8+60  

$800 2lan J4125 8G+1TB

More

N5105 expensive
N5095 Fan
$688 0+0 
N6000 expensive
J5005 Fanless
$750 nuc7pjyh

J4125
$780 Beelink GKMini J4125 8+128 SATA Fan Beautiful
$760 Minisforum J4125 8+256 nvme Fan
$766 Minisforum J4125 8+0 Fan
$750 Beelink GK55 8+128 SATA Fan 
$660 ITX 17x17 Fanless

J4105
$700 Beelink X45 J4105 6+128

N4100
$610 Kodlix GD41 4+0
$600 Kodlix GD41 0+0
$580 Kodlix GN41 8+64 SATA
$550 Kodlix GN41 8+64 SATA Fanless
$550 N41-H 8+0 NVME

J3455
$600 NUC6CAYH 4+60
$560 NUC6CAYH 0+0
$350 DIY 4+0 WIFI HDMI

Beelink = Lingke



2022年4月11日 星期一

clang-format-14 on Ubuntu 20.04 2022

Better

clang-format-14 --version
# Command 'clang-format-14' not found
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main" | sudo tee -a /etc/apt/sources.list
echo "deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main" | sudo tee -a /etc/apt/sources.list
apt search clang-format
# clang-format-14/unknown 1:14.0.1~++20220426083040+0e27d08cdeb3
sudo apt install clang-format-14
clang-format-14 --version
# Ubuntu clang-format version 14.0.1-++20220426083040+0e27d08cdeb3


clang-format-14 to clang-format-15 (successful 2023)

clang-format-15 --version
# Command 'clang-format-15' not found, did you mean:
https://askubuntu.com/questions/1409031/how-to-use-a-more-recent-clang-format-or-clang-tidy-version-on-ubuntu-18-04
$ clang-format-15 --version
Ubuntu clang-format version 15.0.7

upgrade clang-10 to to clang-15 on 2023 (successful 2023)

sudo apt-get install clang-15
cd /usr/bin
sudo ln -sfn ../lib/llvm-15/bin/clang++ clang++
sudo ln -sfn ../lib/llvm-15/bin/clang clang


Reference

 https://stackoverflow.com/questions/20756924/how-can-i-install-clang-format-in-ubuntu


wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -

sudo nano /etc/apt/sources.list

append below

# 14
deb http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main
deb-src http://apt.llvm.org/focal/ llvm-toolchain-focal-14 main

sudo apt update

$ apt search clang-format
Sorting... Done
Full Text Search... Done
arcanist-clang-format-linter/focal,focal 0.git20161021-2 all
  clang-format linter for Arcanist

clang-format/focal 1:10.0-50~exp1 amd64
  Tool to format C/C++/Obj-C code

clang-format-10/focal 1:10.0.0-4ubuntu1 amd64
  Tool to format C/C++/Obj-C code

clang-format-11/focal-updates 1:11.0.0-2~ubuntu20.04.1 amd64
  Tool to format C/C++/Obj-C code

clang-format-12/focal-updates,focal-security 1:12.0.0-3ubuntu1~20.04.5 amd64
  Tool to format C/C++/Obj-C code

clang-format-14/unknown 1:14.0.1~++20220407063120+ec13fed5867f-1~exp1~20220407063130.115 amd64
  Tool to format C/C++/Obj-C code

clang-format-6.0/focal 1:6.0.1-14 amd64
  Tool to format C/C++/Obj-C code

clang-format-7/focal 1:7.0.1-12 amd64
  Tool to format C/C++/Obj-C code

clang-format-8/focal 1:8.0.1-9 amd64
  Tool to format C/C++/Obj-C code

clang-format-9/focal 1:9.0.1-12 amd64
  Tool to format C/C++/Obj-C code

sudo apt install clang-format-14

$ clang-format-14 --version
Ubuntu clang-format version 14.0.1-++20220407063120+ec13fed5867f-1~exp1~20220407063130.115
done!

2022年4月2日 星期六

AMD Ryzen 3900x CPU Frequency from 2.2GHz to 3.6GHz Ubuntu 20 cpupower

  https://www.linkedin.com/pulse/how-use-max-cpu-frequency-linux-javad-rajabzade-

 

 AMD Ryzen 3900x CPU Frequency Ubuntu 20 cpupower


sudo apt install linux-tools-common
sudo apt install linux-tools-5.13.0-39-generic
sudo apt install linux-cloud-tools-5.13.0-39-generic

check

$ cpupower frequency-info
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 2.20 GHz - 4.67 GHz
  available frequency steps:  3.80 GHz, 2.80 GHz, 2.20 GHz
  available cpufreq governors: conservative ondemand userspace powersave performance schedutil
  current policy: frequency should be within 2.20 GHz and 3.80 GHz.
                  The governor "ondemand" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 2.20 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: no

performance

sudo cpupower frequency-set -g performance

performance after

sudo cpupower frequency-set -g performance
Setting cpu: 0
Setting cpu: 1
...
Setting cpu: 23

$ cpupower frequency-info
analyzing CPU 0:
  driver: acpi-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 2.20 GHz - 4.67 GHz
  available frequency steps:  3.80 GHz, 2.80 GHz, 2.20 GHz
  available cpufreq governors: conservative ondemand userspace powersave performance schedutil
  current policy: frequency should be within 2.20 GHz and 3.80 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency: Unable to call hardware
  current CPU frequency: 3.60 GHz (asserted by call to kernel)
  boost state support:
    Supported: yes
    Active: no

ondemand

sudo cpupower frequency-set -g ondemand

 


2023 Promox on Morefine N6000 16GB 512GB

2023 Promox on Morefine N6000 16GB 512GB Software Etcher 100MB (not but can be rufus-4.3.exe 1.4MB) Proxmox VE 7.4 ISO Installer (1st ISO re...