Go to advanced search

by Kendek
Sat Oct 03, 2020 7:34 am
Forum: Troubleshooting
Topic: hdd spin even after shutdown
Replies: 3
Views: 139

Re: hdd spin even after shutdown

now the problem is thaht the isk keeps spinning even after the shutdown i don't know where to search about someone could give me a hand? Two things: 1. The bootloader EEPROM configuration , power off the USB ports: WAKE_ON_GPIO=0 POWER_OFF_ON_HALT=1 2. UDEV rule to set the ' manage_start_stop '; wi...
by Kendek
Sun Sep 27, 2020 5:46 pm
Forum: General discussion
Topic: Veracrypt performance benchmark: Pi4 VS 8-year-old Intel
Replies: 22
Views: 1337

Re: Veracrypt performance benchmark: Pi4 VS 8-year-old Intel

In my case, xchacha12,aes-adiantum got 138.7 and 165.9. Aes-xts got 62.7 and 56.3. Was your Pi overclocked? Mine is not overclocked, and there is no fan. Idle temperature is almost 70, and when I ran the benchmark, the temperature did not pass 80, but close to it, so it is possible that made it slo...
by Kendek
Sat Sep 12, 2020 2:43 pm
Forum: Troubleshooting
Topic: Raspberry 4 - NAS, slow copying over the network
Replies: 9
Views: 433

Re: Raspberry 4 - NAS, slow copying over the network

Rsync, SSH (encryption) and ethernet (interrupts) consumes a lot of CPU. Try to move eth0 to another processor core, away from USB. for i in $(grep eth0 /proc/interrupts | cut -d : -f 1) ; do echo 8 >/proc/irq/$i/smp_affinity ; done If you just want to transfer files within your local network, then ...
by Kendek
Tue Sep 08, 2020 7:50 am
Forum: General discussion
Topic: Veracrypt performance benchmark: Pi4 VS 8-year-old Intel
Replies: 22
Views: 1337

Re: Veracrypt performance benchmark: Pi4 VS 8-year-old Intel

What operating system are you running on the 4B that has all these ciphers enabled? The reason I ask is because in https://www.raspberrypi.org/forums/viewtopic.php?p=1679772#p1679772 I wanted to use twofish for cryptsetup but it didn't seem to be enabled in the default kernels included with either ...
by Kendek
Sun Sep 06, 2020 4:22 pm
Forum: General discussion
Topic: Thought 64 bit. Why only 32?
Replies: 14
Views: 1142

Re: Thought 64 bit. Why only 32?

Study some code produced by the compiler using these options: gcc program.c -S -fverbose-asm -Os -march=armv8-a -mcpu=cortex-a72 -mtune=cortex-a72 -o program.s -march=armv8-a +crc Do you have an example when those crc instructions are generated while building a standards-compliant C or C++ code? AR...
by Kendek
Sun Sep 06, 2020 3:03 pm
Forum: General discussion
Topic: Thought 64 bit. Why only 32?
Replies: 14
Views: 1142

Re: Thought 64 bit. Why only 32?

jahboater wrote:
Sun Sep 06, 2020 2:46 pm
Study some code produced by the compiler using these options:

Code: Select all

gcc program.c -S -fverbose-asm -Os -march=armv8-a -mcpu=cortex-a72 -mtune=cortex-a72 -o program.s
-march=armv8-a+crc
by Kendek
Sun Sep 06, 2020 8:05 am
Forum: General discussion
Topic: Veracrypt performance benchmark: Pi4 VS 8-year-old Intel
Replies: 22
Views: 1337

Re: Veracrypt performance benchmark: Pi4 VS 8-year-old Intel

Cryptsetup benchmark results in 64-bit and NEON (where possible) mode: # Algorithm | Key | Encryption | Decryption xchacha12,aes-adiantum 256b 216,2 MiB/s 216,7 MiB/s xchacha20,aes-adiantum 256b 176,0 MiB/s 177,0 MiB/s aes-cbc 128b 25,3 MiB/s 82,4 MiB/s serpent-cbc 128b 38,2 MiB/s 39,0 MiB/s twofish...
by Kendek
Mon Aug 31, 2020 1:32 pm
Forum: Advanced users
Topic: Possible SD transfert speed up on Pi 4 ?
Replies: 9
Views: 912

Re: Possible SD transfert speed up on Pi 4 ?

This is the patch, right? diff --git a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts index 222d7825e1ab..8b61e258e906 100644 --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts @@ -191,6 +191,8 @@ &emmc2 { vqmmc-supply = <&sd_io_1v8...
by Kendek
Mon Aug 31, 2020 11:43 am
Forum: Advanced users
Topic: Encrypt external SSD
Replies: 8
Views: 493

Re: Encrypt external SSD

The Debian repository contains an outdated version of fscrypt, so you need to compile and install/replace the files first: sudo -i apt install fscrypt libpam-fscrypt cd / wget https://github.com/google/fscrypt/archive/v0.2.9.tar.gz tar xzf v0.2.9.tar.gz wget https://golang.org/dl/go1.15.linux-armv6l...
by Kendek
Sun Aug 30, 2020 9:29 am
Forum: General discussion
Topic: Serious Problem in Bootloader EEPROM
Replies: 23
Views: 1652

Re: Serious Problem in Bootloader EEPROM

Yeah, with ENABLE_SELF_UPDATE=1, the bootloader will updates itself when the pieeprom.upd (and .sig) is present and differ from the contents of the EEPROM. You have now caused a logical cyclicality with the ever-changing boot order.
by Kendek
Wed Aug 26, 2020 9:50 am
Forum: Troubleshooting
Topic: Raspberry 4 - NAS, slow copying over the network
Replies: 9
Views: 433

Re: Raspberry 4 - NAS, slow copying over the network

janekpolak wrote:
Wed Aug 26, 2020 9:00 am
Where is the problem? Why is it so slow? How debug my case where is bottleneck?
You can do a network test with iperf3. These results are mine; Pi4-wire-router-wire-notebook and Pi4-wire-router-WiFi-notebook.
by Kendek
Tue Aug 25, 2020 2:15 pm
Forum: Troubleshooting
Topic: Raspberry 4 - NAS, slow copying over the network
Replies: 9
Views: 433

Re: Raspberry 4 - NAS, slow copying over the network

rsync over SSH; 100% one core CPU usage @ sshd + 40-60% @ rsync --server : > rsync -ah --progress root@192.168.1.2:/data/testfile . root@192.168.1.2's password: receiving incremental file list testfile 4.25G 100% 59.26MB/s 0:01:08 (xfr#1, to-chk=0/1) rsync daemon; 70-100% one core CPU usage @ rsync ...
by Kendek
Tue Aug 25, 2020 12:10 pm
Forum: Troubleshooting
Topic: Raspberry 4 - NAS, slow copying over the network
Replies: 9
Views: 433

Re: Raspberry 4 - NAS, slow copying over the network

Pi4 doesn't have hardware AES accelerator (the best option is chacha20-poly1305), so the rsync over SSH will be slower. If you don't need encryption, use the rsync daemon:

Code: Select all

> rsync -avh --progress 500M raspberry::mnt/hdd1
by Kendek
Thu Aug 20, 2020 2:13 pm
Forum: Advanced users
Topic: Encrypt external SSD
Replies: 8
Views: 493

Re: Encrypt external SSD

Can I encrypt my home folder using fscrypt or LUKS? Yes, of course, fscrypt is the best option here. See the ArchWiki , including the preparations (install libpam-fscrypt ). Just make sure that the fscrypt.conf is configured to use policy_version 2, and recompile the kernel with Adiantum support.
by Kendek
Thu Aug 20, 2020 12:00 pm
Forum: Advanced users
Topic: Encrypt external SSD
Replies: 8
Views: 493

Re: Encrypt external SSD

Is there any benefit to keep my SD card for booting and then just run the Raspbian from the SSD? I don't think so. Will the /boot partition be vulnerable is I choose to use my NOOBS SD card for booting and encrypt the whole SSD drive using LUKS? Yes, it doesn't matter if the /boot unencrypted files...
by Kendek
Wed Aug 19, 2020 4:42 pm
Forum: Advanced users
Topic: Encrypt external SSD
Replies: 8
Views: 493

Re: Encrypt external SSD

It's possible, with LUKS (Adiantum is preferred for performance reasons) and initramfs. But the RPi4 bootloader (in the EEPROM) doesn't support LUKS (like GRUB), so the /boot FAT32 partition will be vulnerable.
If you only want to encrypt a few directories, fscrypt is also a viable option.
by Kendek
Tue Aug 18, 2020 2:39 pm
Forum: Advanced users
Topic: RSYNC and symlinks
Replies: 6
Views: 370

Re: RSYNC and symlinks

Yes, or use rsync over SSH, but not CIFS or any other similar protocol. Rsyncd is the best choice inside local network for compatibility and performance reasons. SSH may be a bit slower due to encryption.

Code: Select all

> rsync -aAXxh --progress --delete / root@192.168.1.x:/Backups
by Kendek
Mon Aug 17, 2020 2:41 pm
Forum: Advanced users
Topic: RSYNC and symlinks
Replies: 6
Views: 370

Re: RSYNC and symlinks

/etc/rsyncd.conf : uid = root gid = root read only = false use chroot = no dont compress = * [backups] path = /Backups > rsync -aAXxh --progress --delete / 192.168.1.x::backups or reverse: uid = root gid = root read only = false use chroot = no dont compress = * [system] path = / > rsync -aAXxh --p...
by Kendek
Sun Aug 09, 2020 8:11 am
Forum: General discussion
Topic: STICKY: Raspberry Pi OS (64 bit) beta test version feedback
Replies: 442
Views: 85395

Re: STICKY: Raspberry Pi OS (64 bit) beta test version feedback

Why would you want to mix ARMHF and ARM64 packages ? ? The best solution if install the arm64 version of the Zilf. But if it's not possible for some reason (I don't know), the compatible armhf libstdc++6 is available. There are a lot of closed source armhf binaries that don't have arm64 version. An...
by Kendek
Sun Aug 09, 2020 6:40 am
Forum: General discussion
Topic: STICKY: Raspberry Pi OS (64 bit) beta test version feedback
Replies: 442
Views: 85395

Re: STICKY: Raspberry Pi OS (64 bit) beta test version feedback

It is Zilf 0.9. It runs as expected on standard Raspbian OS but not on the 64 beta. Zilf complains that the libstdc++.so.6 is not available. If Zilf is 32-bit, then change it to arm64. Or install the armhf variant of the libstdc++6. sudo dpkg --add-architecture armhf sudo apt update sudo apt instal...
by Kendek
Sat Aug 08, 2020 8:20 pm
Forum: Troubleshooting
Topic: Raspi OS x64 SSD boot load problem
Replies: 2
Views: 127

Re: Raspi OS x64 SSD boot load problem

You probably need to disable UAS with usb-storage.quirks=aaaa:bbbb:u kernel command line option. See this Sticky topic, first and second steps.
by Kendek
Tue Aug 04, 2020 9:59 am
Forum: General discussion
Topic: USB 2 and USB 3
Replies: 1
Views: 155

Re: USB 2 and USB 3

You probably need to disable UAS with usb-storage.quirks=aaaa:bbbb:u kernel command line option. See this Sticky topic, first and second steps.
by Kendek
Sun Aug 02, 2020 12:18 pm
Forum: Troubleshooting
Topic: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking
Replies: 25
Views: 1104

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

IOI wrote:
Sun Aug 02, 2020 11:59 am
After the recent SMR scandal Seagate confirmed that Ironwolf drives are not SMR.
Maybe, but my 2.5" WD20SPZX HDD (used on Pi4) is SMR and requires TRIM.
by Kendek
Sun Aug 02, 2020 7:49 am
Forum: Troubleshooting
Topic: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking
Replies: 25
Views: 1104

Re: SATA to USB 3.0 on Raspberry Pi 4 - HDD clicking

LTolledo wrote:
Sun Aug 02, 2020 2:41 am
HawaiianPi wrote:
Sat Aug 01, 2020 10:21 pm
I haven't needed any "tricks" to get the Eluteng adapter working,.....
is that even needed for HDD?
If UNMAP, then yes, some of newer SMR HDDs require TRIM for better performance.

Go to advanced search