本帖最後由 MSI_R9_280_Gami 於 2026-2-10 14:05 編輯

裝左alpine,好多useful links,不過費事paste 大量links驚ban a/c

總體感覺良好,雖然有d bugs。安裝同使用同void musl有少少似,又有些不同

原先以為好慳ram,裝完xfce4,fx開d tabs,都有10幾20gb ram occupied allocated

bugs包括,fdisk /dev/sda 然後d,無法delete a partition , fdisk /dev/sda6再d都唔得,以為自己出錯,最後confirmed est ein bug

ibus-rime完全無法使用,on void musl用到alpine唔得

主流softwares packages套件庫有,in official repository,唔駛亦唔識自己compile,同時剷左mageia 9 on reiserfs,及russo-distro alt

alpine應該都support root partition as reiserfs,而且support b tree fs confirmed,仲可以用grub v2.12 boot into a full-disk-encryption LUKS2 argon2id partition,連swap partition都加密埋(for hibernation)

packages manager叫apk,alpine / android packager,apk add telegram-desktop成91個關聯既包,remove用 #apk del

普通上下网Firefox chromium thorium,bt電影,聽歌打字,冇乜問題,傳聞可以用flatpak,不過我冇試,appimage唔清楚。alpine大陸仔話做容器container裝虛擬機dockers之類多,所以果d封裝好dependencies運作環境運行庫既包估計run到

amd radeon gtx rtx應該都得,radeon drivers開源,gtx rtx quadro有開源版驅動nouveau

鬼佬的回覆

1. GRUB 2.12 supports Argon2id natively upstream.
It is not an Alpine patch. The official GRUB 2.12 release (Dec 2023) added support for LUKS2 with Argon2id. Note that if the memory cost is too high, GRUB may still be slow to unlock, but the defaults usually work.

2. Fdisk "No partition defined" Error:
This error confirms you targeted the wrong device or the table was unreadable.
- Running "fdisk /dev/sda6" is invalid because a partition does not contain a partition table.
- GParted worked because it likely repaired a corrupted GPT header that was preventing fdisk from seeing the partitions on /dev/sda.

3. Input Method:
Switch to Fcitx5. IBus is known to be unstable on Alpine/Musl.
Install: apk add fcitx5 fcitx5-rime fcitx5-gtk fcitx5-qt
Add to /etc/profile:
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx

follow the guide,安裝過程

username root pw zeropw

#setup-alpine

apk add e2fsprogs

blkid

mount /dev/xxx /mnt this is the partition which your alpine will go into

mkdir /mnt/boot

mkdir /mnt/boot/efi

mount /dev/yyy /mnt/boot/efi this is your 512MB ESP efi system partition

setup-disk -m sys /mnt

https://github.com/wizetek/alpine

or simply use sys / cryptsys argument, this will erase your whole hdd。一共有7種,冇manual:sys crypt cryptsys data lvm lvmsys lvmdata。sys係普通安裝,cryptsys係加密,會提供埋a encrypted swap space partition



apk add efibootmgr

grub-install --root-directory=/mnt

umount /mnt/boot/efi

umount /mnt

reboot

setup-xorg-base

setup-desktop

rc-update add dbus
rc-update add udev
rc-update add lightdm

apk add font-noto-cjk cryptsetup btrfs-progs xrandr mousepad;apk update;apk upgrade

mount /dev/xxx /xx failed,要指定type係btrfs:
mount /dev/xxx /xx -t btrfs

試左,發覺喺void musl下compiled的package pi喺alpine係用到

~/Downloads $ ./pi-voidMUSL-5ᵗʰbroadwell 1000000000
Calculation of PI using FFT and AGM, ver. LG1.1.2-MP1.5.2a.memsave
initializing...
nfft= 268435456
radix= 1000
error_margin= 0.0882149
calculating 805306368 digits of PI...
AGM iteration
precision= 36: 142.96 sec
precision= 84: 143.95 sec
precision= 168: 144.68 sec
precision= 348: 142.77 sec
precision= 696: 143.15 sec
precision= 1392: 142.13 sec
precision= 2784: 142.32 sec
precision= 5580: 142.24 sec
precision= 11160: 142.50 sec
precision= 22344: 141.77 sec
precision= 44688: 142.59 sec
precision= 89400: 142.38 sec
precision= 178812: 138.11 sec
precision= 357648: 135.83 sec
precision= 715308: 140.43 sec
precision= 1430628: 140.41 sec
precision= 2861280: 138.63 sec
precision= 5722584: 136.70 sec
precision= 11445192: 140.48 sec
precision= 22890408: 139.82 sec
precision= 45780852: 136.13 sec
precision= 91561716: 136.87 sec
precision= 183123468: 137.27 sec
precision= 366246960: 140.51 sec
precision= 732493944: 139.30 sec
precision= 1464987924: 138.33 sec
writing pi805306368.txt...
4035.13 sec. (real time)

[void@void void]$ cat /mnt/etc/fstab
/dev/vg0/lv_root        /        ext4        rw,relatime 0 1
UUID=628B-A41D        /boot        vfat        rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro 0 2
/dev/vg0/lv_swap        none        swap        defaults        0 0
/dev/cdrom        /media/cdrom        iso9660        noauto,ro 0 0
/dev/usbdisk        /media/usb        vfat        noauto        0 0
tmpfs        /tmp        tmpfs        nosuid,nodev        0        0
[void@void void]$ cat /mnt/etc/crypttab
cat: /mnt/etc/crypttab: No such file or directory


└─sda2              8:2    0 148.8G  0 part  
  └─a             254:0    0 148.7G  0 crypt
    ├─vg0-lv_swap 254:1    0     4G  0 lvm   
    └─vg0-lv_root 254:2    0 144.7G  0 lvm   /mnt


apk add cryptsetup lvm2 e2fsprogs

cryptsetup luksFormat --type=luks2 --pbkdf=argon2id /dev/ada2
pvcreate /dev/mapper/a
pvscan
vgcreate -s 4M / 32M vg0 /dev/mapper/a
vgscan
vgdisplay
lvcreate -L ?G 4096M -n lv_swap vg0
lvcreate -L?G 102380M -n lv_root vg0
mkswap /dev/mapper/vg0-lv_swap
mkfs -t ext4 /dev/mappee/vg0-lv_root
mkfs.ext4 /dev/mappee/vg0-lv_root
more /etc/fstab
mount -o compress=zstd

gparted cancelled an operation,that shrinked or expanded then moved a b tree fs,reversed返,竟然冇data corruption,真係服

搞左成晚唔掂,睇返alpine wiki原來好簡單

lvm2 cryptsetup nano lsblk e2fsprogs btrfs-progs efibootmgr

vgscan lvscan vgdisplay lvs lvmdiskscan vgchange -ay

grub-mkconfig -o /mnt/boot/grub/grub.cfg

grub-install --root-directory=/mnt --boot-directory=/mnt/boot --efi-directory=/mnt/boot

mageia@localhost ~/M/SuperPI-main> ~/Music/pi-libc6-5ᵗʰbroadwell 1000000000
Calculation of PI using FFT and AGM, ver. LG1.1.2-MP1.5.2a.memsave
initializing...
nfft= 268435456
radix= 1000
error_margin= 0.0929832
calculating 805306368 digits of PI...
AGM iteration
precision= 36: 122.50 sec
precision= 84: 123.50 sec
precision= 168: 124.48 sec
precision= 348: 125.29 sec
precision= 696: 130.35 sec
precision= 1392: 131.42 sec
precision= 2784: 123.58 sec
precision= 5580: 123.01 sec
precision= 11160: 123.44 sec
precision= 22344: 121.99 sec
precision= 44688: 124.00 sec
precision= 89400: 122.55 sec
precision= 178812: 121.19 sec
precision= 357648: 121.17 sec
precision= 715308: 121.46 sec
precision= 1430628: 121.20 sec
precision= 2861280: 121.26 sec
precision= 5722584: 121.40 sec
precision= 11445192: 121.28 sec
precision= 22890408: 121.40 sec
precision= 45780852: 121.88 sec
precision= 91561716: 123.66 sec
precision= 183123468: 127.46 sec
precision= 366246960: 126.27 sec
precision= 732493944: 123.73 sec
precision= 1464987924: 124.19 sec
writing pi805306368.txt...
fish: Job 1, '~/Music/pi-libc6-5ᵗʰbroadwell 1…' terminated by signal SIGSEGV (Address boundary error)
mageia@localhost ~/M/SuperPI-main [SIGSEGV]>


mageia@localhost ~/Music> ./pi-libc6-5ᵗʰbroadwell 1000000000
Calculation of PI using FFT and AGM, ver. LG1.1.2-MP1.5.2a.memsave
initializing...
nfft= 268435456
radix= 1000
error_margin= 0.0929832
calculating 805306368 digits of PI...
AGM iteration
precision= 36: 121.56 sec
precision= 84: 120.28 sec
precision= 168: 118.09 sec
precision= 348: 118.10 sec
precision= 696: 117.90 sec
precision= 1392: 117.89 sec
precision= 2784: 118.12 sec
precision= 5580: 120.30 sec
precision= 11160: 118.00 sec
precision= 22344: 118.56 sec
precision= 44688: 118.27 sec
precision= 89400: 118.17 sec
precision= 178812: 118.09 sec
precision= 357648: 118.01 sec
precision= 715308: 118.26 sec
precision= 1430628: 118.13 sec
precision= 2861280: 118.14 sec
precision= 5722584: 119.16 sec
precision= 11445192: 120.09 sec
precision= 22890408: 120.36 sec
precision= 45780852: 118.04 sec
precision= 91561716: 118.17 sec
precision= 183123468: 117.96 sec
precision= 366246960: 118.22 sec
precision= 732493944: 118.15 sec
precision= 1464987924: 121.24 sec
writing pi805306368.txt...
3421.38 sec. (real time)

TOP

本帖最後由 MSI_R9_280_Gami 於 2026-3-18 16:36 編輯

之前report過 mageia 用唔到ImageMagick bash / fish conversion的issue,轉左用 ./magick.appimage mogrity to replace $mogrity,不過非常慢。ubuntu snap版Firefox又係極慢,container冇乜用

由于mageia Μμαγεία(the succeeder of mandrake mandriva)既ImageMagick mogrify用唔到一開始諗住自己compile發覺太複雜,用appimage算 (mandrake mandrive另一個succeeder係russo-distro alt)

mageia@localhost ~/Downloads> date;fish fish;date
Wednesday, February 11, 2026 AM06:52:42 HKT
mogrify: no decode delegate for this image format `HEIC' @ error/constitute.c/ReadImage/746.
Wednesday, February 11, 2026 AM06:52:42 HKT


239s/8p 32GB 2ch 2000mt/s CL11-11-11-28 Z97 1285L v4 mageia appimage x profile
mageia@localhost ~/Downloads> date;fish fish;date
Wednesday, February 11, 2026 AM06:36:38 HKT
Wednesday, February 11, 2026 AM06:40:37 HKT

轉7張相要216s,非常慢

mageia@localhost ~/Downloads> date;fish fish;date
Wednesday, February 11, 2026 PM12:26:22 HKT
Wednesday, February 11, 2026 PM12:29:58 HKT




對比一下之前

42s/12p 32GB 2ch 2000mt/s CL11 Z97 1285L v4 alt  x profile
epyc9965@alt ~/Documents> date;fish fish;date
Mon Dec 22 11:31:38 AM HKT 2025
Mon Dec 22 11:32:20 AM HKT 2025

131s/32p 2697 v2 alt 1866 4ch CL10 64GB Sab X79
wery245@alt ~/Documents> date;fish fish;date
Sat Jan 17 12:04:29 AM HKT 2026
Sat Jan 17 12:06:40 AM HKT 2026

30 37s/6 8p E5-2697 v2 1866 4ch CL10 64GB Sab X79 debian
debian@debian:~/Videos$ date;bash bash;date
Mon Jan 26 01:09:43 AM HKT 2026
Mon Jan 26 01:10:13 AM HKT 2026
debian@debian:~/Videos$ date;bash bash;date
Mon Jan 26 01:36:41 AM HKT 2026
Mon Jan 26 01:37:18 AM HKT 2026


31 52s/6 10p als über obige
debian@debian:~/Videos$ date;bash bash;date
Mon Jan 26 09:34:27 PM HKT 2026
Mon Jan 26 09:34:58 PM HKT 2026
debian@debian:~/Videos$ date;bash bash;date
Tue Jan 27 06:23:08 PM HKT 2026
Tue Jan 27 06:24:00 PM HKT 2026

google docs G文件 blocked左firefox access,一paste contents就出error,所以用

mageia@localhost ~/Downloads> ../Music/Thorium_Browser_138.0.7204.300_AVX2.AppImage


on mageia using rpm to enquiry rpm infos

[root@localhost ~]# rpm -qa --last|grep 'February 12'
lib64canberra-gtk3_0-0.30-18.1.mga9.x86_64    Thursday, February 12, 2026 PM08:33:10
lib64canberra-gtk0-0.30-18.1.mga9.x86_64        Thursday, February 12, 2026 PM08:33:10
gnome-disk-utility-44.0-1.mga9.x86_64               Thursday, February 12, 2026 PM08:33:10
canberra-gtk-0.30-18.1.mga9.x86_64                  Thursday, February 12, 2026 PM08:33:10

TOP

ZFS zpool & aes-256-gcm encryption

本帖最後由 MSI_R9_280_Gami 於 2026-3-17 18:20 編輯

https://ivonblog.com/posts/install-freebsd/
sysrc dbus_enable="YES";sysrc lightdm_enable="YES"
#pkg install fish xorg xfce lightdm lightdm-gtk-greeter lightdm-gtk-greeter-settings nano radeontop gmrun lsblk freecolor libstatgrab wget progsreiserfs kate kf6-threadweaver qtkeychain-qt6 fastfetch yyjson ufetch neofetch cpu-x libcpuid libstatgrab gimp aalib babl cups-filters gegl gexiv2 ghostscript10 gimp-app gimp-gutenprint graphviz gutenprint jasper jbig2dec libidn libmng libmypaint libnsgif libspiro libwmf mypaint-brushes poppler-glib poppler-utils qpdf sdl2 urw-base35-fonts transmission-qt dht libb64 libnatpmp libutp miniupnpc
#pkg install sddm konsole plasma6-plasma;cat /etc/rc.conf
wget要另外裝,本身係用fetch(freeBSD預載)。套件庫冇free,要另外裝freecolor或用shell script free
https://www.cyberciti.biz/faq/freebsd-command-to-get-ram-information/
https://github.com/ocochard/myscripts/blob/master/FreeBSD/freebsd-memory.sh
mv ./freebsd-memory.sh /usr/local/bin/free


https://blog.wu-boy.com/2011/01/freebsd-利用-fsck-指令修復不正常斷電關機/
fsck.reiserfs /dev/ada0p3;fsck -y /dev/ada0p5
root@frei ~# swapon /dev/sda2
swapon: /dev/sda2: No such file or directory
root@frei ~# swapon /dev/ada0p2

since #shutdown -h now doesn't contain poweroff i might #shutdown -p now

freebsd裝左xfce,但run唔到gui(未裝radeon driver,未加videogroup,boot時/etc/rc.conf未autoload radeon driver)。而且用唔到dm-crypt/LUKS cryptsetup,要用geli


https://forums.freebsd.org/threads/drivers-for-amd.92493/
pkg install gpu-firmware-amd-kmod-sienna-cichlid drm-515-kmod xf86-video-amdgpu ❌

https://book.bsdcn.org/di-6-zhang-zhuo-mian-huan-jing/di-6.1-jie-an-zhuang-xian-ka-qu-dong-ji-xorg-bi-kan
pw groupmod video -m 你的用户名
pw groupmod wheel -m 你的用户名,否則無法使用su
drm-66-kmod(基于 Linux 6.6 DRM)
sysrc -f /etc/rc.conf kld_list+=amdgpu
sysrc kld_list+=amdgpu
nano / vim /etc/rc.conf add a line & uncomment it kld_list+=amdgpu

#pkg ins noto-hk noto-sc noto-tc
pkg remove = pkg delete = pkg del / rem
freeBSD lightdm sddm有衝突
發覺xrandr較唔到亮度,原來login as wayland session

cd ./;cc pi_fftcs.c -o pi-libc5;clang pi_fftcs.c -o pi-libc5 ❌
$cc -Wall -pedantic -O -fomit-frame-pointer -funroll-loops -march=native -malign-double -c pi_fftcs.c -o ../pi-libc5 ❌
-march=broadwell ❌

root@frei ~# sysctl hw.acpi.supported_sleep_state
hw.acpi.supported_sleep_state: S3 S4 S5

4代5代 southbridge lynx point有bug,freebsd唔係用acpi反而冇事。開始懷疑m$ windows都同樣唔係用acpi

alpine + xfce4 no audio,freebsd裝完kde6就有聲。freeBSD啱推出version 15 gen 15,好多人仲用緊v. 14我一裝就係v15 + kde plasma 6

magick.appimage ( ImageMagick ) can't be  run on libc5 freeBSD 15

總結conclusion :UFS unix filesystem aka FFS fast filesystem同ZFS都幾特異下。freebsd幾易裝,只係注意mountpoint同filesystem果度揀UFS,同埋radeon driver麻煩少少,如果driver load唔到,入唔到display manager同desktop environment亦無法startx

忘記左有kfreebsd,有kde同顯卡驅動

freebsd luks linux unified key setups ❌ audio(由kde packages provide it) ✅
alpine luks ✅ audio(xfce4唔知點set,裝咩packages) ❌
mageia alpine S3 suspend-to-ram之後recover,网絡要reload,freebsd唔駛,亦冇lynx point acpi bug

bsd冇 /proc/ processes based filesystem

$ cat /proc/acpi/wakeup

root@frei ~# pkg update;pkg upgrade
#systat

root@localhost ~[1]# mount -r -t ufs -o ufstype=ufs2 /dev/sda5 /mnt
optional -w, --rw, --read-write

#acpiconf -s 3
#zzz
#/etc/rc.suspend acpi suspend ❌
#/etc/rc.suspend acpi 3 ❌
#/etc/rc.suspend apm suspend ✅
#/etc/rc.suspend apm 3 ✅
openBSD聲稱:apm, zzz, ZZZ — Advanced Power Management control program
apm communicates with the Advanced Power Management daemon
https://man.openbsd.org/OpenBSD-5.9/man8/i386/zzz.8
zzz(8) - OpenBSD manual pages

frei@frei ~> ls
Desktop/   Documents/ Downloads/ Music/     Pictures/  Public/    Templates/ Videos/

based on those articles
https://forums.freebsd.org/threads/howto-quick-geli-encryption-guide.29652/
HOWTO: Quick GELI encryption guide | The FreeBSD Forums
https://forums.freebsd.org/threads/unlock-geli-on-boot-with-usb-stick.76196/
Unlock GELI on boot with USB stick | The FreeBSD Forums
https://www.reddit.com/r/freebsd/comments/a6du6r/geli_passphrase_keyfile/
Geli Passphrase / Keyfile : r/freebsd
https://security.stackexchange.com/questions/180158/limit-of-256-bit-drive-encryption-512-needed-for-large-drives
aes - Limit of 256 bit drive encryption? 512 needed for large drives? - Information Security Stack Exchange

dd if=/dev/zero of=/mpt bs=512 count=10000000

geli init -b -s 4096 -l 512 /mpt
geli attach /mpt
newfs /mpt
mkdir /mbt
mount /mpt.eli /mbt
geli detach /mpt

root@frei ~[1]# dd if=/dev/zero of=/mpt0 bs=512 count=10000000
10000000+0 records in
10000000+0 records out
5120000000 bytes transferred in 95.103533 secs (53836065 bytes/sec)
root@frei ~# geli init -b -s 4096 -l 512 /mpt0
geli: Invalid key length.
root@frei ~[1]# geli init -b -s 4096 -l 256 /mpt0
geli: Cannot get information about /mpt0: Inappropriate file type or format.
geli: There was an error with at least one provider.
root@frei ~[1]# geli init -b -s4096 -l256 /mpt0
geli: Cannot get information about /mpt0: Inappropriate file type or format.
geli: There was an error with at least one provider.
root@frei ~[1]# geli init -b -s4096 -l512 /mpt0
geli: Invalid key length.
root@frei ~[1]# geli init -b -s4096 -l128 /mpt0
geli: Cannot get information about /mpt0: Inappropriate file type or format.
geli: There was an error with at least one provider.
root@frei ~[1]# zzz

chatgpt:
/ask freebsd geli能否用于加密檔案
GELI 用於磁碟級加密,而對於檔案級的加密,建議使用其他專門的加密工具。


according to these articles
https://docs.oracle.com/cd/E26502_01/html/E29007/gkkih.html
Encrypting ZFS File Systems - Oracle Solaris 11.1 Administration: ZFS File Systems
The following encryption algorithms are available:
    aes-128-ccm, aes-192-ccm, aes-256-ccm
    aes-128-gcm, aes-192-gcm, aes-256-gcm

https://docs.oracle.com/cd/E26926_01/html/E25826/gkkih.html
加密 ZFS 文件系统 - Oracle Solaris 管理:ZFS 文件系统
有以下加密算法可用:
    aes-128-ccm、aes-192-ccm、aes-256-ccm
    aes-128-gcm、aes-192-gcm、aes-256-gcm
https://www.reddit.com/r/zfs/comments/t9cexx/a_simple_real_world_zfs_compression_speed_an/
A simple (real world) ZFS compression speed an compression ratio benchmark - Part 3 - deduplication : r/zfs
https://docs.oracle.com/cd/E19253-01/819-7065/gaynr/index.html
https://docs.oracle.com/cd/E19253-01/819-7065/6n91mt188/index.html
https://docs.freebsd.org/zh-tw/books/handbook/zfs/
章 19. Z 檔案系統 (ZFS) | FreeBSD Documentation Portal

搞左一個鐘然後發現係oracle篇文老點緊我,zfs was founded by oracle but freebsd modified its some arguments
oracle篇文話個argument叫keysource ❌


zpool create (-f) mpt /mpt0
gcm好過ccm
zfs create -o encryption=aes-256-gcm -o keyformat=passphrase -o compression=zstd mpt/mpt
zfs umount (-f) mpt/mpt
zfs mount -o compression=zstd mpt/mpt


zfs destroy mpt/mpt
zfs destroy (-r) mpt
zpool destroy mpt
zpool status ✅
zpool scrub mpt ✅


zpool offline (-f) mpt /mpt0
zpool clear mpt ✅
zpool online mpt /mpt0


zpool export (-f) mpt
zpool import -d /
zpool import mpt -d /
zfs get encryptionroot,keystatus mpt
由于export左,可以理解為logout左或unmount左,等同于Gparted的close encryption,重新encrypted,要重新輸入passphrase。argument -a等于 mount -a,all既意思
https://unix.stackexchange.com/questions/780053/unable-to-mount-encrypted-zfs-filesystem-after-reboot
ubuntu - Unable to mount encrypted ZFS filesystem after reboot - Unix & Linux Stack Exchange
zfs load-key -a

root@frei ~# zfs mount -o compression=zstd mpt/mpt
cannot mount 'mpt/mpt': encryption key not loaded
root@frei ~ [1]# zfs load-key mpt/mpt


frei@frei ~> ls
Desktop@   Documents@ Downloads@ Music@     Pictures@  Public@    Templates@ Videos@


/mpt0 5.12GB既加密兼壓縮file,the actual existing file
/mpt logical virtual mountpoint,zfs datapool名字叫mpt
/mpt/mpt datapool下面一個資料集, logical virtual sub-mountpoint,聚類子庫集合,表述係 mpt/mpt,冇slash起頭

似乎logical virtual mountpoint一定係 / 下邊,方便for root on zfs同S4 hibernation,喺kernel運行,唔知可否用 -o mountpoint= 指定mountpoint。如果actual file mpt0放喺/mpt下邊 /mpt/mpt0,唔知kernel認唔認到,還是會被virtual filesystem覆蓋甚至被deleted?kernel似乎係德語的core > kern

additionally,debian current stable trixie有zfs-fuse zfsutils-linux;Mageia 9共Cauldron(即mageia 10)只有zfs-fuse,mageia應該只能mount / umount zfs,不能創建zpool等,不能使用高階功能,debian對zfs的support估計比較完整

apt install zfsutils-linux > 安装zfs
# zpool create zpool /dev/vdb1 > 创建存储池
# zpool create <pool-name> <device-name>
apt-get purge dkms libnvpair3linux libuutil3linux libzfs6linux libzpool6linux zfs-dkms zfs-zed zfsutils-linux linux-headers-amd64 linux-headers-6.12.73+deb13-amd64 linux-headers-6.12.73+deb13-common linux-kbuild-6.12.73+deb13 pahole
感想:geli基于block devices,由于我用a file based encryption,唔係a partition,所以用zfs zpool引入加解密同壓縮功能,仲要用ln -s source-file target-destination軟連結將home dir下面8個dirs指向dm-crypt,非常麻煩且煩瑣,但基于data safety,仍然係值得既

TOP

本帖最後由 MSI_R9_280_Gami 於 2026-4-5 13:05 編輯




發覺FreeBSD 15對Sabertooth X79 support不好,裝左成日都話冇网絡失敗,原來冇网卡driver

installer冇network interface lan card em0 Intel(R) 82579V driver

https://forums.freebsd.org/threads/intel-82579v-gigabit-ethernet-controller-issue.50871/page-2
https://www.reddit.com/r/freebsd/comments/1dqzlm9/dhcp_lease_acquisition_failed_on_installation/

用full disk image裝完run bsdconfig network set DHCP Enabled(installer冇onboard网卡driver,裝完之後就有)或者用bootonly image ( network installer ) 用usb綫連and phone,用USB tethering

front panel得1個USB2.0 1個USB3.0,X79同埋E5 v2唔support USB 3.0,前面得一個USB2.0口連Android手機,usb flash drive要插屎忽

裝完usb mouse唔work。网上查到話devd 會觸發 moused

https://forums.freebsd.org/threads/enable-usb-mouse.33010/

/etc/rc.conf
sysrc kld_list="ext2fs" ❌
sysrc moused_enable="YES" ❌
touch /boot/loader.conf;echo ums_load="YES" > /boot/loader.conf ❌
#kldload ext2fs ❌
comment #moused_nondefault_enable="NO" ❌


https://forums.freebsd.org/threads/how-do-you-mount-an-ext4-partition.86270/
mount唔到ext4 partition,用fuse-ext2 ext2fs
mount -t ext2fs ✅

vi /etc/pkg/FreeBSD.conf改repository server:quarterly <> latest ✅
https://forums.freebsd.org/threads/how-to-change-mirror-in-pkg.79991/
i insert mode
Escape mode switch
Escape :q! exit quit
Escape :wq write & quit
o create a new line
Shift + o / O create a new line above the current line,類似上
backspace move backward 1 character
backspace ? times + Esc clear ? characters
e jump to the end of the next word
w Move to the beginning of the next word
b jump to the beginning of the previous word
[ move to first line
] move to end line
{ / Shift + [ jump back to previous empty line
} / Shift + ] jump to next empty line
d delete 1 character ❌
x delete 1 character
dd delete entire line
№dd delete № lines
yy / shft + y cp entire line ❌
c change 類似i?
cc clear a line
cj = dd clear & delete current line , move to next
ck = dd clear & delete current line , move to upper line
a append,類似i,右移一位
u undo <> redo
h l left / right move a character
j k down / up move a line
https://www.zhihu.com/question/547708456/answer/1959694252138271566


https://code.yidas.com/linux-vi-vim-command/
[Linux] vi 與 vim 指令一覽表整理 (Cheat Sheet) – YIDAS Code


shutdown -p now ❌ 會shutdown 再freezing @ bios screen
poweroff ❌ 同上
用apm:
#/etc/rc.suspend apm 5 indicating led light for power was blinking
#acpiconf -s 5 選項不可用:acpiconf: invalid sleep type (5)
#acpiconf -s 4 OK S4 hibernate2disk
#chmod +x /etc/rc.shutdown;/etc/rc.shutdown 無效,xfce4 & services were closes but not power off

https://openzfs.github.io/openzfs-docs/Getting Started/Debian/index.html

debian zfs zpool package唔係內核態運行,係fuse in userspace,似乎係license問題,GNU/Linux LUKS LUKS2 LVM2係GPL license,zfs係BSD license
tier1:dkms libnvpair3linux libuutil3linux libzfs6linux libzpool6linux zfs-dkms zfs-zed zfsutils-linux
tier2:linux-headers-amd64 linux-headers-6.12.73+deb13-amd64 linux-headers-6.12.73+deb13-common linux-kbuild-6.12.73+deb13 pahole

https://www.reddit.com/r/freebsd/comments/1acg4wl/mouse_wont_move_in_freebsd_13_in_virtual_machine/
https://forums.freebsd.org/threads/qemu-kvm-freebsd-guest-running-x-and-a-working-mouse.82460/
ps -ax | grep moused
pkg ins utouch-kmod xf86-input-evdev webcamd
echo utouch_load="YES">/boot/loader.conf then reboot ❌
https://forums.freebsd.org/threads/user-management.89920/
https://www.reddit.com/r/freebsd/comments/ppdsiu/remove_user_and_groups_freebsd_13_using_tcsh/
==> You should manually remove the "webcamd" user.
==> You should manually remove the "webcamd" group
pw userdel -r webcamd
rmuser webcamd
pw groupdel webcamd or pw groupdel <gid>

https://docs.freebsd.org/en/books/handbook/desktop/
conclusion總結:USB mouse無法使用,及唔知點安裝audio output的packages,建議用kde pkg ins sddm plasma6-plasma konsole,Z97 + 5代U sddm kde Xorg X11同wayland 都用到USB mouse,X79 + Xeon E5 v2 sddm kde 得wayland用到USB mouse Xorg X11唔得,同一款网購USB mouse。but wayland下用唔到gimp截圖

recover logged-in sessions from freezed screen after S3-suspend-to-ram : service dbus restart;service sddm restart

S3恢復電源狀態之後logout曬all sessions
附件: 您需要登錄才可以下載或查看附件。沒有帳號?註冊

TOP

本帖最後由 pipikeung 於 2026-2-21 07:43 編輯

回覆 11# MSI_R9_280_Gami
「Alpine」的「setup-alpine」安裝與「ArchLinux」的「Archinstall」差不多,都是「選擇題」,小心選擇都可以輕鬆完成安裝。

今次都是用「VirtualBox」來試試安裝,下載ISO檔放在「VirtualBox」中,起動後以「root」登入

01 setup-alpine
起動安裝程序

02 選擇鍵盤佈局
選用US  便可

03 Hostname
預設是localhost,但用了「Alpine」

04 網絡介面 Interface selection
選預設「eth0」及「dhcp」

05 Root Password
預設是沒有,若有需要自行設定

06 Timezone setting
當然昰「Asia/Hong_Kong」

07 Proxy setting
因無使用,直接按「Enter」略過

08 NTP Client
選預設便可

09 Mirror Selection
選了(f) Find and use fastest mirrot

10 Set up a new user
自行加入及設定「password」

11 Some SSH Setting
按需要自行決定

12 分割硬盤
按指示選擇,因安裝在virtualbox中,所以該4項選擇分別是1.none 2.sda 3. sys 4.y

便完成安裝﹗


安裝完成後續設定﹕
重啟系統以「root」登入
13 加添使用者前先安裝「nano」作文字處理器
apk add nano

groups  <your-username>
adduser <your-username> wheel

在 /etc/doas.d/doas.conf中加入內容
permit persist :wheel

14 Enable community repositories
nano /etc/apk/repositories中內的URLs前的「#」刪去,存檔登出

15 安裝「xfce4桌面及LightDM」
setup-xorg-base
apk add xfce4 xfce4-terminal xfce4-screensaver lihgtdm-gtk-greeter dbus

rc-service dbus start

rc-update add dbus

16 Enable udev service
setup-devd udev

17 啟動Lightdm
rc-service lightdm start

以「root 」登入後鍵入
rc-update add lightdm

準許「Users」可以關機及重後啟動
apk add elogind polkit-elogind
reboot

大功告成﹗

再加上所需的軟件,便可作「桌面電腦」使用。


正是「太極分兩儀」,「好壞相生」,好處亦是壞處。好處是「個頭細、耗源小、效率高」,壞處正是「個頭細,對系統及軟件支援不足」更堪者是「她」「另闢蹊徑」與「主流Linux」的操作及構建有所不同,或多或小對使用者不便。不太推介使用﹗

TOP

我唔識alpine裝audio output packages,例如pipewire alsa,void musl compile出黎既binary同alpine通用,開箱即用,desktop environments audio,全部齊

void musl唔係純正musl,好似都係glibc2黎

TOP

本帖最後由 MSI_R9_280_Gami 於 2026-3-1 22:52 編輯

由于FreeBSD KDE xorg x11用唔到usb wired mouse,轉用wayland,發覺又幾好用,轉返debian KDE wayland用到fcitx4打字同較亮度。gnome on wayland fcitx4打到字

以前wayland較亮度失敗,仲要打唔到字(唔記得scim定ibus,應該係scim)

X79冇聲,Z97板載聲卡壞左,另外加左張USB聲卡,本身d聲好拆,有少少奇怪係家陣d聲好左好多,同onboard sound card差唔多,懷疑係kernel upgrade左driver,原來以為USB sound card d 聲係咁劣

https://www.reddit.com/r/kde/comments/1re82kv/this_w_icon_for_some_apps/

不過wayland套件icons變左黃底白字W,冇icons rollback to w

用mousepad果陣menu bar閃退 i set to hidden

TOP

本帖最後由 MSI_R9_280_Gami 於 2026-3-2 17:41 編輯

https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2024-2/march.html


vi ./Makefile
cc=gcc改為cc=cc
加句-march=ivybridge
root@frei ~# cd /home/frei/Public/SuperPI-main
root@frei /h/f/P/SuperPI-main# make install clean
mkdir -p /usr/local/bin
cp pi_css5 /usr/local/bin
rm -f pi_fftcs.o fftsg_h.o pi_css5


等于cc / clang -Wall -pedantic -O -fomit-frame-pointer -funroll-loops -march=ivybridge -malign-double -c pi_fftcs.c -o pi-libc5-3ʳᵈivybridge

compares to the result in P1#5,FreeBSD libc5 glibc1同debian libc6 glibc2差唔多,不過呢個test閂左 HTT E5-2697 v2 12c24t 變12c12t

唔知點解用普通user permission run $make install clean或者cc clang compile會失敗,一定要root #make install clean

frei@frei ~> pi_css5 1000000000
Calculation of PI using FFT and AGM, ver. LG1.1.2-MP1.5.2a.memsave
initializing...
nfft= 268435456
radix= 1000
error_margin= 0.0929832
calculating 805306368 digits of PI...
AGM iteration
precision= 36: 193.60 sec
precision= 84: 192.70 sec
precision= 168: 192.67 sec
precision= 348: 192.98 sec
precision= 696: 192.84 sec
precision= 1392: 192.78 sec
precision= 2784: 192.38 sec
precision= 5580: 192.38 sec
precision= 11160: 192.95 sec
precision= 22344: 192.73 sec
precision= 44688: 192.81 sec
precision= 89400: 192.95 sec
precision= 178812: 192.30 sec
precision= 357648: 192.40 sec
precision= 715308: 193.02 sec
precision= 1430628: 192.74 sec
precision= 2861280: 192.86 sec
precision= 5722584: 193.08 sec
precision= 11445192: 193.23 sec
precision= 22890408: 192.41 sec
precision= 45780852: 192.79 sec
precision= 91561716: 192.97 sec
precision= 183123468: 192.62 sec
precision= 366246960: 192.74 sec
precision= 732493944: 192.29 sec
precision= 1464987924: 191.79 sec
writing pi805306368.txt...
5538.08 sec. (real time)
frei@frei ~>




vi ./Makefile
cc=gcc改為cc=clang
加句-march=broadwell
終于明點解compilation failed,原來係分開三句,唔係一句
root@frei /h/f/D/SuperPI-main# make install clean
clang -Wall -pedantic -O -fomit-frame-pointer -funroll-loops -march=broadwell -malign-double -c pi_fftcs.c -o pi_fftcs.o
clang -Wall -pedantic -O -fomit-frame-pointer -funroll-loops -march=broadwell -malign-double -c fftsg_h.c -o fftsg_h.o
clang -Wall -pedantic -O -fomit-frame-pointer -funroll-loops -march=broadwell -malign-double pi_fftcs.o fftsg_h.o -lm -static -o pi_css5
mkdir -p /usr/local/bin
cp pi_css5 /usr/local/bin
rm -f pi_fftcs.o fftsg_h.o pi_css5

frei@frei ~/Downloads> pi_css5 1000000000
Calculation of PI using FFT and AGM, ver. LG1.1.2-MP1.5.2a.memsave
initializing...
nfft= 268435456
radix= 1000
error_margin= 0.0923872
calculating 805306368 digits of PI...
AGM iteration
precision= 36: 146.55 sec
precision= 84: 143.56 sec
precision= 168: 145.39 sec
precision= 348: 146.45 sec
precision= 696: 143.79 sec
precision= 1392: 142.20 sec
precision= 2784: 142.21 sec
precision= 5580: 142.21 sec
precision= 11160: 143.32 sec
precision= 22344: 142.30 sec
precision= 44688: 143.66 sec
precision= 89400: 143.22 sec
precision= 178812: 142.02 sec
precision= 357648: 140.20 sec
precision= 715308: 145.98 sec
precision= 1430628: 153.16 sec
precision= 2861280: 153.23 sec
precision= 5722584: 154.82 sec
precision= 11445192: 160.91 sec
precision= 22890408: 154.02 sec
precision= 45780852: 153.78 sec
precision= 91561716: 155.31 sec
precision= 183123468: 149.80 sec
precision= 366246960: 153.25 sec
precision= 732493944: 152.38 sec
precision= 1464987924: 154.88 sec
writing pi805306368.txt...
4262.70 sec. (real time)


but我發覺compiled出黎size非常大
debian@debian:~/Downloads/64Gram Desktop$ ls -al pi-*
-rw-rw-r-- 1 debian debian 4727208 Mar  2 14:21 pi-libc5-3ʳᵈivybridge
-rw-rw-r-- 1 debian debian 4729816 Mar  2 14:21 pi-libc5-5ᵗʰbroadwell
-rw-rw-r-- 1 debian debian 4733704 Mar  2 14:21 pi-libc5-x86-64
-rw-rw-r-- 1 debian debian   89976 Mar  2 14:21 pi-libc6-3ʳᵈivybridge
-rw-rw-r-- 1 debian debian   99848 Mar  2 14:21 pi-libc6-4ᵗʰhaswell
-rw-rw-r-- 1 debian debian   89816 Mar  2 14:21 pi-libc6-5ᵗʰbroadwell
-rw-rw-r-- 1 debian debian   89976 Mar  2 14:21 pi-libc6-x86-64
-rw-rw-r-- 1 debian debian   92136 Mar  2 14:21 pi-voidMUSL-3ʳᵈivybridge
-rw-rw-r-- 1 debian debian   92136 Mar  2 14:21 pi-voidMUSL-4ᵗʰhaswell
-rw-rw-r-- 1 debian debian   92136 Mar  2 14:21 pi-voidMUSL-5ᵗʰbroadwell


# unzip screenfetch-c-master.zip
# cd screenfetch-c-master
# make install clean
make: /mpt/mpt/Public/screenfetch-c-master/Makefile:25: Invalid line "ifeq ($(COLORS),0)", expanded to "ifeq "
make: /mpt/mpt/Public/screenfetch-c-master/Makefile:27: Invalid line "endif"
make: /mpt/mpt/Public/screenfetch-c-master/Makefile:28: warning: Invalid character " " in variable name "shell gcc -dumpmachine"
make: /mpt/mpt/Public/screenfetch-c-master/Makefile:28: warning: Invalid character " " in variable name "findstring mingw,"
make: /mpt/mpt/Public/screenfetch-c-master/Makefile:28: Invalid line "ifneq (,$(findstring mingw,$(shell $(CC) -dumpmachine)))", expanded to "ifneq "
make: /mpt/mpt/Public/screenfetch-c-master/Makefile:30: Invalid line "endif"
make: /mpt/mpt/Public/screenfetch-c-master/Makefile:31: Invalid line "ifeq ($(OS),Windows_NT)", expanded to "ifeq "
make: /mpt/mpt/Public/screenfetch-c-master/Makefile:32: warning: duplicate script for target "ifeq" ignored
make: Makefile:26: warning: using previous script for "ifeq" defined here
make: /mpt/mpt/Public/screenfetch-c-master/Makefile:33: warning: duplicate script for target "ifeq" ignored
make: Makefile:26: warning: using previous script for "ifeq" defined here
make: /mpt/mpt/Public/screenfetch-c-master/Makefile:34: warning: duplicate script for target "ifeq" ignored
make: Makefile:26: warning: using previous script for "ifeq" defined here
make: /mpt/mpt/Public/screenfetch-c-master/Makefile:35: warning: duplicate script for target "ifeq" ignored
make: Makefile:26: warning: using previous script for "ifeq" defined here
make: /mpt/mpt/Public/screenfetch-c-master/Makefile:36: Invalid line "else"
make: /mpt/mpt/Public/screenfetch-c-master/Makefile:66: Invalid line "endif"
make: /mpt/mpt/Public/screenfetch-c-master/Makefile:68: warning: Invalid character " " in variable name "wildcard ./src/*.c"
make: Fatal errors encountered -- cannot continue
make: stopped making "install clean" in /mpt/mpt/Public/screenfetch-c-master

TOP

本帖最後由 MSI_R9_280_Gami 於 2026-4-9 21:55 編輯

debian bookworm冇fetch freecolor slingshot fatrat,要自己compile就算9數

fatrat被移除,似乎係maintainer已棄project潛逃

https://github.com/ryanakca/slingshot
https://community.linuxmint.com/software/view/slingshot
https://flathub.org/zh-Hant/apps/com.github.ryanakca.slingshot

https://github.com/LubosD/fatrat
https://manpages.ubuntu.com/manpages/trusty/man1/fatrat.1.html
https://askubuntu.com/questions/699568/how-to-install-fatrat
http://ftp.ubuntu.com/ubuntu/ubuntu/pool/universe/f/fatrat/

on software turned off CPU cores:echo 0 > /sys/devices/system/cpu/cpu11/online ( linux kernel only doesn't work on freebsd)

warning: Path '/sys' does not exist

check ip
$curl ifconfig.me
$curl icanhazip.com
$curl api.ipify.org


root@frei ~# tty
/dev/pts/1


dd if=/dev/random of=/tmp/a bs=4 count=1;cat /tmp/a
dd if=/dev/urandom of=/tmp/a bs=4 count=1;cat /tmp/a
cat /dev/urandom

https://www.reddit.com/r/linux4noobs/comments/1sfbjrj/any_solution_for_data_recovery_using_linux_mint/
lsblk -f
ls -alh


TOP

本帖最後由 MSI_R9_280_Gami 於 2026-3-17 18:04 編輯

比較glibc2 libc6 linux同freebsd(libc5 glibc1),linux順手好多,支援硬件多,drivers多,軟件豐富,少bugs

alpine同void musl比,void musl唔係真正musl,只係glibc2外面加層wrapper,void musl xfce有聲,out-of-the-box experience,alpine點舞掂佢有聲,唔清楚

最大路係debian apt dpkg glibc2 libc6

尋日拆風冷出黎清洗,順路將E5-2697 v2 12C24T換2667 v2 8C16T,發現仍然只可以DDR3-1866 max,唔可以OC zu 2133mt/s,XEON E5 E7 uncore共compute cores鎖左TDP功率für rack servers im 機房 24-7-365,為左控制功耗power CPU 同DDR freq都冇得超頻,得xeon E3共i core系列可以超

E5-2667 v2同E3-1285L v4比較run super pi,唔知點,gen 5ᵗʰ broadwell有128MB L4 cache,又可以OC。X99 X299同X79好似都冇乜差別,X99 + E5-2667 v4只比X79 + E5 v2遲兩代,又冇得超頻,分分鐘同Z97 + E3-1285L v4拉唔開差距。X299不如threadripper,底板同U又零舍貴

同樣DDR3 socket 2011 X79 sandybridge,i7-3820(Gen 2ʳᵈ sandybridge)應該有得超頻CPU同DDR3,E5-2630 suffix0唔得。i7-3820類似 -x 或 -xe suffix,跑分介乎i7-3770至i7-4770,但功耗相當不美麗,優點係北橋uncore iodie 勁d(more PCIE DDR channels)

well,原來gamemax遊戏帝国公司係大陸野

https://www.clearesult.com/80plus/sites/80plus/files/manufacturer-certificate/gamemax-gp500-8465.pdf

GUANGDONG SOHOO TECHNOLOGY CO., LTD.=广东迅扬电脑科技股份有限公司,同1ST PLAYER TECHNOLOGY(GUANGZHOU) CO.,LTD應該唔係同一間公司

==updated==
比起E5-4650 4657L 2697 v2,換左2667 v2之後,明顯感覺快好多,冇原先咁嘈同熱,睇黎知乎大陸仔確實講得冇錯:少核高頻率好過多核低頻。雖然係3代ivybridge,感覺同i7-3770 4770 E3-1271 v3比冇乜差距。不過普通icore可以超頻,應該強好多。E3-1285L v4 + Z97可以上到DDR3-2200mt/s,xeon限制耗電量,只得1866mt/s,run sysbench 4通道1866mt/s bandwidth仲不及2200mt/s 2通道

sandybridge E5-2630 i7-3820算9數

debian@debian:~/Music$ ./pi-libc6-3ʳᵈivybridge 1000000000
Calculation of PI using FFT and AGM, ver. LG1.1.2-MP1.5.2a.memsave
initializing...
nfft= 268435456
radix= 1000
error_margin= 0.0882149
calculating 805306368 digits of PI...
AGM iteration
precision= 36: 163.27 sec
precision= 84: 162.57 sec
precision= 168: 163.14 sec
precision= 348: 163.16 sec
precision= 696: 162.37 sec
precision= 1392: 162.68 sec
precision= 2784: 162.24 sec
precision= 5580: 162.98 sec
precision= 11160: 162.23 sec
precision= 22344: 161.64 sec
precision= 44688: 161.70 sec
precision= 89400: 161.86 sec
precision= 178812: 161.81 sec
precision= 357648: 161.85 sec
precision= 715308: 161.82 sec
precision= 1430628: 161.77 sec
precision= 2861280: 162.53 sec
precision= 5722584: 163.72 sec
precision= 11445192: 162.50 sec
precision= 22890408: 161.90 sec
precision= 45780852: 161.70 sec
precision= 91561716: 161.96 sec
precision= 183123468: 162.00 sec
precision= 366246960: 161.94 sec
precision= 732493944: 161.96 sec
precision= 1464987924: 162.02 sec
writing pi805306368.txt...
4661.21 sec. (real time)

XEON E5-2667 v2對比返#5 用2697 v2係5407 seconds,用ImageMagick morify轉相都快左。super pi好似話剩係食單核,但mogrify單核性能,多核性能兩樣都食,最主要少核高頻率好過多核低頻

debian@debian:~/Music$ sysbench cpu --cpu-max-prime=5000000 --threads=16 --events=1 run
sysbench 1.0.20 (using system LuaJIT 2.1.1700206165)

Running the test with following options:
Number of threads: 16
Initializing random number generator from current time


Prime numbers limit: 5000000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:     0.16

General statistics:
    total time:                          6.1348s
    total number of events:              1

Latency (ms):
         min:                                 6134.72
         avg:                                 6134.72
         max:                                 6134.72
         95th percentile:                     6135.91
         sum:                                 6134.72

Threads fairness:
    events (avg/stddev):           0.0625/0.24
    execution time (avg/stddev):   0.3834/1.48

debian@debian:~/Music$ sysbench cpu --cpu-max-prime=50000000 --threads=16 --events=1 run
sysbench 1.0.20 (using system LuaJIT 2.1.1700206165)

Running the test with following options:
Number of threads: 16
Initializing random number generator from current time


Prime numbers limit: 50000000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:     0.01

General statistics:
    total time:                          161.8984s
    total number of events:              1

Latency (ms):
         min:                               161898.30
         avg:                               161898.30
         max:                               161898.30
         95th percentile:                   100000.00
         sum:                               161898.30

Threads fairness:
    events (avg/stddev):           0.0625/0.24
    execution time (avg/stddev):   10.1186/39.19


debian@debian:~/Music$ sysbench memory --memory-block-size=2GB --memory-total-size=200GB run
sysbench 1.0.20 (using system LuaJIT 2.1.1700206165)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Running memory speed test with the following options:
  block size: 2097152KiB
  total size: 204800MiB
  operation: write
  scope: global

Initializing worker threads...

Threads started!

Total operations: 49 (    4.84 per second)

100352.00 MiB transferred (9908.17 MiB/sec)


General statistics:
    total time:                          10.1265s
    total number of events:              49

Latency (ms):
         min:                                  205.79
         avg:                                  206.65
         max:                                  214.62
         95th percentile:                      207.82
         sum:                                10125.74

Threads fairness:
    events (avg/stddev):           49.0000/0.00
    execution time (avg/stddev):   10.1257/0.00

#2 Pic 5 set錯parameter,E3-1285L v4係4c8t,難怪咁快原來set左 --threads=24,所以要test下呢個 --threads=N係咪指處理器硬件綫程

debian@debian:~$ sysbench cpu --cpu-max-prime=50000000 --threads=64 --events=1 run
sysbench 1.0.20 (using system LuaJIT 2.1.1700206165)

Running the test with following options:
Number of threads: 64
Initializing random number generator from current time


Prime numbers limit: 50000000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:     0.01

General statistics:
    total time:                          161.7907s
    total number of events:              1

Latency (ms):
         min:                               161790.69
         avg:                               161790.69
         max:                               161790.69
         95th percentile:                   100000.00
         sum:                               161790.69

Threads fairness:
    events (avg/stddev):           0.0156/0.12
    execution time (avg/stddev):   2.5280/20.07
debian@debian:~$ sysbench cpu --cpu-max-prime=50000000 --threads=256 --events=1 run
sysbench 1.0.20 (using system LuaJIT 2.1.1700206165)

Running the test with following options:
Number of threads: 256
Initializing random number generator from current time


Prime numbers limit: 50000000

Initializing worker threads...

Threads started!

CPU speed:
    events per second:     0.01

General statistics:
    total time:                          162.2814s
    total number of events:              1

Latency (ms):
         min:                               162281.30
         avg:                               162281.30
         max:                               162281.30
         95th percentile:                   100000.00
         sum:                               162281.30

Threads fairness:
    events (avg/stddev):           0.0039/0.06
    execution time (avg/stddev):   0.6339/10.12



依然非常慢,E3-1285L v4好似快過E5-2667 2697 v2,128MB L4 cache等于amd x3d,E5-2697A v4 16c32t 40MB L3 cache,2696 2699 v4 55MB,難怪話5代U可以越級打8代9代甚至10代(4核U 2核U)

https://www.techbang.com/posts/127766-ryzen-9950x3d2-208mb-cache-exposed
208MB 快取容量怪獸!AMD Ryzen 9 9950X3D2 處理器意外曝光 | T客邦
9950X3D2:L2 cache 16MB、L3 cache 96MB x2 共208MB;;E3-1285L v4 E3-1285 v4 i7-5775C i7-5675C都有128MB L4 cache,亦多過5500X3D,感覺上super pi食memory同 CPU L? caches多。同埋二通道未必差過4通道,DDR5 dual channels 應該好過DDR3 quad-chs

https://www.hkepc.com/25235/AM4_入門打機之王_...__AMD_Ryzen_5_5500X3D_評測



https://zhuanlan.zhihu.com/p/376478658
从架构层面上看,Broadwell属于Tick-Tock中Tick的一环,亦即它的架构相比Haswell并未有显著的修改。CPU层面的提升大约5%的IPC提升、浮点指令集延迟更低、扩大的二层TLB缓存,基本无伤大雅,但GPU层面就有很大的长进

https://www.cpubenchmark.net/compare/2154vs2830vs2743vs3444vs3593/Intel-Xeon-E5-2667-v2-vs-Intel-Xeon-E5-2667-v4-vs-Intel-Xeon-E3-1285L-v4-vs-Intel-i5-9500-vs-Intel-i9-9900KS

sabertooth X79 + E5-2667 v2 + freebsd + 64GB DDR3-1866mt/s,之前results係E5-2697 v2
frei@frei ~/Downloads> ./pi-libc5-3ʳᵈivybridge 1000000000
Calculation of PI using FFT and AGM, ver. LG1.1.2-MP1.5.2a.memsave
initializing...
nfft= 268435456
radix= 1000
error_margin= 0.0929832
calculating 805306368 digits of PI...
AGM iteration
precision= 36: 173.86 sec
precision= 84: 173.20 sec
precision= 168: 172.92 sec
precision= 348: 172.73 sec
precision= 696: 172.41 sec
precision= 1392: 172.40 sec
precision= 2784: 172.45 sec
precision= 5580: 172.32 sec
precision= 11160: 173.15 sec
precision= 22344: 172.40 sec
precision= 44688: 172.45 sec
precision= 89400: 172.68 sec
precision= 178812: 172.45 sec
precision= 357648: 172.20 sec
precision= 715308: 172.30 sec
precision= 1430628: 172.20 sec
precision= 2861280: 172.45 sec
precision= 5722584: 172.56 sec
precision= 11445192: 173.58 sec
precision= 22890408: 172.83 sec
precision= 45780852: 172.61 sec
precision= 91561716: 173.23 sec
precision= 183123468: 173.49 sec
precision= 366246960: 174.84 sec
precision= 732493944: 172.90 sec
precision= 1464987924: 173.47 sec
writing pi805306368.txt...
4965.51 sec. (real time)

TOP