#linux #прыщинг #log #btop #htop @rf @ru
Ушёл с htop на btop, поскольку последний жрёт на порядок меньше cpu (батарейки) при том же refresh rate.
https://tinystash.undef.im/il/4LabCU16mLvN1xsHMiXQp6ytXkyyx619NQzdwYyYqYmYCD8U17C5wPn2A3DKPbVqZ73zDvPHneH8abVsSWbR7wZ9.png
Теперь мой статус-воркспейс выглядит как-то так; осталось найти как расширить говнокошко с процессами и убрать лишние рамки.
#log #linux #btop #прыщинг #htop
#log #прыщинг #linux #ext4 #xfs @rf
Переехал с ext4 на xfs.
Было:
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/hdluks 479567560 454220268 20448100 96% /mnt/oldgentoo
Стало:
/dev/mapper/nvluks 488042696 460869012 27173684 95% /mnt/gentoo
После прокатывания duperemove освободилось ещё 15ГБ.
#xfs #log #прыщинг #linux #ext4
#прыщинг #log #coreutils #говно #linux @rf
‰ cat /etc/portage/patches/sys-apps/coreutils/coreutils-reflink-auto.patch
--- a/src/install.c.orig 2021-04-10 15:13:14.698039128 +0300
+++ a/src/install.c 2021-04-10 15:13:24.114292838 +0300
@@ -264,7 +264,7 @@
{
cp_options_default (x);
x->copy_as_regular = true;
- x->reflink_mode = REFLINK_NEVER;
+ x->reflink_mode = REFLINK_AUTO;
x->dereference = DEREF_ALWAYS;
x->unlink_dest_before_opening = true;
x->unlink_dest_after_failed_open = false;
--- a/src/cp.c.orig 2021-04-10 15:12:03.591111323 +0300
+++ a/src/cp.c 2021-04-10 15:12:40.576190820 +0300
@@ -793,7 +793,7 @@
x->move_mode = false;
x->install_mode = false;
x->one_file_system = false;
- x->reflink_mode = REFLINK_NEVER;
+ x->reflink_mode = REFLINK_AUTO;
x->preserve_ownership = false;
x->preserve_links = false;
#говно #linux #прыщинг #log #coreutils
#stm32 #hardware #прыщинг #log @rf
01:56:07]<gordon1> it has integrated bootloader iirc
01:56:18]<gordon1> dfu thing that triggers by BOOT0 pin
01:58:19]<L29Ah> 407? is this the only difference?
01:58:55]<gordon1> i think all of stm32f4 with usb
01:59:29]<L29Ah> oh wow
01:59:39]<L29Ah> DS tells they do
02:00:33]<L29Ah> but apparently it doesn't work
02:00:56]<L29Ah> i'm holding BOOT0 and plug my shit in - get some whining about failure to establish the usb link in my dmesg
02:01:22]<L29Ah> while it works with firmware DFU
02:01:40]<gordon1> crystal most likely the reason
02:02:01]<gordon1> firmware configures PLL in the way to produce 48MHz clock required for USB
02:02:11]<gordon1> but integrated DFU bootloader is stupid
02:02:29]<gordon1> it just expects to have 8Mhz
02:04:32]<L29Ah> indeed, mine has a 25MHz crystal
02:07:51]<gordon1> Due to HSI deviation and since HSI is used to detect HSE value, the user must use low
02:07:53]<gordon1> frequency rather than high frequency HSE crystal values (low frequency values are better
02:07:56]<gordon1> detected due to larger error margin). For example, it is better to use 8 MHz instead of
02:08:01]<gordon1> 25 MHz.
02:08:27]<gordon1> page 121
02:12:07]<gordon1> basically plug and pray
...
20:22:01]<gordon1> it is a PITA yes
20:22:13]<gordon1> but ever worse with crystalless usb
20:22:21]<gordon1> i have my usb password thingy
20:22:33]<gordon1> and made a jig to program it
20:22:58]<gordon1> it depends on the position of your finger on the pcb if you're going to have it working or not
20:23:19]<gordon1> after its flashed - usb works perfectly fine 100% of the time
20:23:24]<gordon1> *it's
20:24:16]<gordon1> so yeah
20:24:22]<gordon1> try pushing on the crystal
20:24:28]<gordon1> or waving your arm around
20:24:47]<gordon1> you'll be surprised how often that does work
20:29:17]<L29Ah> OH FUCKING WOW
20:29:19]<L29Ah> gordon1: :*
20:29:31]<gordon1> lol did it work?
20:29:31]<L29Ah> i tried to be really careful when presing those boot and reset buttons
20:29:40]<L29Ah> and usb works!
20:29:45]<gordon1> yea yeah
20:29:52]<gordon1> welcome to stm32 dfu bootloader
#stm32 #hardware #прыщинг #log