LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-16-2022, 03:25 PM   #46
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512

Quote:
Originally Posted by the3dfxdude View Post
Do you have a 32-bit kernel as well?

I might try to unzip the kernel-firmware some, but I'm afraid that the disk caching might change the result.
the3dfxdude --

The official kernel-firmware.SlackBuild is non-destructive in that it simply does a `git clone` into a temp directory and then sets up /tmp/package-kernel-firmware for `/sbin/makepkg`

All I did to set up my own kernel-firmware.SlackBuild is copy the entire ~/source/a/kernel-firmware/ directory into my local SlackBuild Directory ; cd into kernel-firmware/ under my directory and run kernel-firmware.SlackBuild.

The kernel-firmware.SlackBuild automatically downloads 'the latest' kernel firmware and makes a date-stamped kernel-firmware Package as /tmp/kernel-firmware-YYYYMMDD-xxxxxxx-noarch.1.txz where xxxxxxx is a unique id.

The Delays that I see are when makepkg executes tar from within /tmp/package-kernel-firmware/

I suspected that my NVMe Drives needed tuning but then again, maybe there is an issue with my generic .config or even in ext4 for my use-case ???

-- kjh

Last edited by kjhambrick; 12-16-2022 at 03:38 PM. Reason: directory
 
Old 12-16-2022, 05:21 PM   #47
twy
Member
 
Registered: Jun 2004
Distribution: Slackware64
Posts: 99

Rep: Reputation: Disabled
My test case for poor disk performance on 5.15.x was extracting the linux kernel source code with the tar command:

tar xvf linux-x.y.z.tar.xz

This ran abnormal and very slow on 5.15.x; the disks (HDDs) would grind with very high disk activity but little progress on writing the decompressed files (only kB/s write speed). The grinding and slowdown was really bad, and I would press ctrl-c (or killall tar) to kill it after testing for a few seconds - letting it grind too long could damage hard drives or maybe even the disk controller by over heating. On 5.10.x, the tar command is normal/fast; the files decompress rapidly into cache ram and then a few seconds later they are flushed to disk quickly and smoothly in the background. I do not have NVMe/SSDs, but I guess that it is harder to notice the slowdown on SSDs because they are much faster than HDDs and they are quiet (you won't hear grinding like on HDDs).
 
1 members found this post helpful.
Old 12-16-2022, 05:21 PM   #48
twy
Member
 
Registered: Jun 2004
Distribution: Slackware64
Posts: 99

Rep: Reputation: Disabled
My test case for poor disk performance on 5.15.x was extracting the linux kernel source code with the tar command:

tar xvf linux-x.y.z.tar.xz

This ran abnormal and very slow on 5.15.x; the disks (HDDs) would grind with very high disk activity but little progress on writing the decompressed files (only kB/s write speed). The grinding and slowdown was really bad, and I would press ctrl-c (or killall tar) to kill it after testing for a few seconds - letting it grind too long could damage hard drives or maybe even the disk controller by over heating. On 5.10.x, the tar command is normal/fast; the files decompress rapidly into cache ram and then a few seconds later they are flushed to disk quickly and smoothly in the background. I do not have NVMe/SSDs, but I guess that it is harder to notice the slowdown on SSDs because they are much faster than HDDs and they are quiet (you won't hear grinding like on HDDs).
 
1 members found this post helpful.
Old 12-17-2022, 12:54 AM   #49
yanyan
LQ Newbie
 
Registered: May 2008
Distribution: Slackware 15.0
Posts: 27

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by twy View Post
My test case for poor disk performance on 5.15.x was extracting the linux kernel source code with the tar command:

tar xvf linux-x.y.z.tar.xz

This ran abnormal and very slow on 5.15.x; the disks (HDDs) would grind with very high disk activity but little progress on writing the decompressed files (only kB/s write speed). The grinding and slowdown was really bad, and I would press ctrl-c (or killall tar) to kill it after testing for a few seconds - letting it grind too long could damage hard drives or maybe even the disk controller by over heating. On 5.10.x, the tar command is normal/fast; the files decompress rapidly into cache ram and then a few seconds later they are flushed to disk quickly and smoothly in the background. I do not have NVMe/SSDs, but I guess that it is harder to notice the slowdown on SSDs because they are much faster than HDDs and they are quiet (you won't hear grinding like on HDDs).

I'm now testing 5.10 per your suggestion (specifically 5.10.159, the latest). I still need to do some serious benchmarking but i've done the following:

Code:
$ dd if=/dev/sda of=/tmp/footest bs=1M count=400
400+0 records in
400+0 records out
419430400 bytes (419 MB, 400 MiB) copied, 24.7656 s, 16.9 MB/s

$ dd if=/dev/sda2 of=/disk/adrian/footest bs=1M count=400
400+0 records in
400+0 records out
419430400 bytes (419 MB, 400 MiB) copied, 20.4501 s, 20.5 MB/s
/disk is an external USB hard drive.

Unfortunately i don't have numbers from my previous Slack setup.

I also built a 4.19.269 and i'm now looking for the latest 3.x kernel to test.

Last edited by yanyan; 12-17-2022 at 12:56 AM.
 
Old 12-17-2022, 03:06 AM   #50
slalik
Member
 
Registered: Nov 2014
Location: Moscow
Distribution: Slackware
Posts: 233

Rep: Reputation: 203Reputation: 203Reputation: 203
I understand that we discuss rotational disks, not ssd. If true, does the kernel know that they are rotational, that is
Code:
cat /sys/block/sd?/queue/rotational
are "1"s? Then, which scheduler the kernel uses
Code:
cat /sys/block/sd?/queue/scheduler
For a rotational disk the bfq scheduler can be better than the default mq-deadline (which can be better for ssd).

It is possible to set the rotational property and the bfq scheduler with a udev rule:
Code:
$ cat /etc/udev/rules.d/60-ioschedulers.rules
# set bfq scheduler for rotational disks
ACTION=="add|change", KERNEL=="sd[a-z]*", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"
 
4 members found this post helpful.
Old 12-17-2022, 04:49 AM   #51
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Thanks for the info, slalik

The Scheduler seems correct for my NVMe drives on Slackware64 15.0 ( see below my sig )...

But I was considering messing with the scheduler too

In the meantime, this ArchLinux EXT4 Article is informative and interesting.

The last topic is 4.3 Enabling fast_commit in existing filesystems which was discussed in depth in Jan 2021 on LWN Fast commits for ext4

From scanning the info, fast_commit was introduced in 5.10, and it is an optional feature for EXT4 FileSystems via mke2fs but it can be retro-enabled in EXT4 File Systems via tune2fs.

In addition fast_commit and fast_commit_size are mentioned in `man tune2fs` for e2fsprogs-1.46.5-x86_64-1 on Slackware64 15.0 so it should be available for me and mine.

I am not sure about availability on 32-bit Systems but fast_commit is only available on Journaled EXT4 FileSystems.

Recalling all the hubub about fsync() on Linux several years ago, fast_commit might be the answer to my issues ...

More to read before I change anything but I'll follow up when I know more.

Thanks again !

-- kjh

P.S. I meant to ask. does anybody know offhand the meaning of the two fields ?

And the difference between [none] mq-deadline -vs- [mq-deadline] none ?


Note: sda references an NVMe Drive in an external USB3.2 Enclosure connected via a Thunderbolt 4 Dock. sdb is a thumb-drive

Code:
# for i in $(find /sys/block/*/queue/ -type f -name scheduler); do echo "$i:  `cat $i`"; done
/sys/block/loop0/queue/scheduler:  [none] mq-deadline 
/sys/block/loop1/queue/scheduler:  [none] mq-deadline 
/sys/block/loop2/queue/scheduler:  [none] mq-deadline 
/sys/block/loop3/queue/scheduler:  [none] mq-deadline 
/sys/block/loop4/queue/scheduler:  [none] mq-deadline 
/sys/block/loop5/queue/scheduler:  [none] mq-deadline 
/sys/block/loop6/queue/scheduler:  [none] mq-deadline 
/sys/block/loop7/queue/scheduler:  [none] mq-deadline 
/sys/block/nvme0n1/queue/scheduler:  [none] mq-deadline 
/sys/block/nvme1n1/queue/scheduler:  [none] mq-deadline 
/sys/block/nvme2n1/queue/scheduler:  [none] mq-deadline 
/sys/block/nvme3n1/queue/scheduler:  [none] mq-deadline 
/sys/block/ram0/queue/scheduler:  none
/sys/block/ram1/queue/scheduler:  none
/sys/block/ram10/queue/scheduler:  none
/sys/block/ram11/queue/scheduler:  none
/sys/block/ram12/queue/scheduler:  none
/sys/block/ram13/queue/scheduler:  none
/sys/block/ram14/queue/scheduler:  none
/sys/block/ram15/queue/scheduler:  none
/sys/block/ram2/queue/scheduler:  none
/sys/block/ram3/queue/scheduler:  none
/sys/block/ram4/queue/scheduler:  none
/sys/block/ram5/queue/scheduler:  none
/sys/block/ram6/queue/scheduler:  none
/sys/block/ram7/queue/scheduler:  none
/sys/block/ram8/queue/scheduler:  none
/sys/block/ram9/queue/scheduler:  none
/sys/block/sda/queue/scheduler:  [mq-deadline] none
/sys/block/sdb/queue/scheduler:  [mq-deadline] none

Last edited by kjhambrick; 12-17-2022 at 04:58 AM. Reason: p.s. I meant to ask ...
 
1 members found this post helpful.
Old 12-17-2022, 06:10 AM   #52
slalik
Member
 
Registered: Nov 2014
Location: Moscow
Distribution: Slackware
Posts: 233

Rep: Reputation: 203Reputation: 203Reputation: 203
I think that when fast_commit becomes stable enough, distributions will enable it by default.
 
Old 12-17-2022, 07:16 AM   #53
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by slalik View Post
I think that when fast_commit becomes stable enough, distributions will enable it by default.
Probably so.

A little fast_commit history from phoronix

The fast_commit Journaling Option was introduced to 5.10: EXT4 Changes Land In Linux 5.10 With Fast Commits, Big Boost For Parallel Writes.

Then it was apparently improved in 5.18: EXT4's Fast Commit Feature Faster & More Scalable With Linux 5.18.

And again in 6.1: EXT4 Rolls Up Some Fixes & Performance Optimizations For Linux 6.1

The bug fixes in 6.1 sound a tad intimidating, especially since I am still on 5.15

Thanks for the input slalik !

-- kjh
 
Old 12-17-2022, 07:27 AM   #54
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 983

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Quote:
Originally Posted by slalik View Post

It is possible to set the rotational property and the bfq scheduler with a udev rule:
Code:
$ cat /etc/udev/rules.d/60-ioschedulers.rules
# set bfq scheduler for rotational disks
ACTION=="add|change", KERNEL=="sd[a-z]*", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="bfq"
Thanks for this tip!

Just to double check that I understand this right:

Do you want to force the rotational property to 1 for bfq to perform best or does the udev rule above select the bfq scheduler only for rotational disks? I am no wizard when it comes to writing udev rules, but my guess would be the latter with the above udev rule.

regards Henrik
 
1 members found this post helpful.
Old 12-17-2022, 07:52 AM   #55
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Quote:
Originally Posted by henca View Post
I am no wizard when it comes to writing udev rules, but my guess would be the latter with the above udev rule.
regards Henrik
See the '==' test vs the '=' assignment instruction
 
1 members found this post helpful.
Old 12-17-2022, 08:03 AM   #56
slalik
Member
 
Registered: Nov 2014
Location: Moscow
Distribution: Slackware
Posts: 233

Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by henca View Post
Do you want to force the rotational property to 1 for bfq to perform best or does the udev rule above select the bfq scheduler only for rotational disks? I am no wizard when it comes to writing udev rules, but my guess would be the latter with the above udev rule.
Yes, the latter, you are right.
 
1 members found this post helpful.
Old 12-17-2022, 08:21 AM   #57
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Could you post read test bypassing filesystem with hdparm -tT /dev/<hd device>
 
Old 12-17-2022, 02:43 PM   #58
henca
Member
 
Registered: Aug 2007
Location: Linköping, Sweden
Distribution: Slackware
Posts: 983

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Quote:
Originally Posted by slalik View Post
Yes, the latter, you are right.
Thanks for the clarification!

I got a bit confused by the question whether the kernel knew if the disks were rotational:

Quote:
Originally Posted by slalik View Post
does the kernel know that they are rotational, that is
Code:
cat /sys/block/sd?/queue/rotational
are "1"s?
Together with the beginning of the sentence describing what the udev rule did:

Quote:
Originally Posted by slalik View Post
It is possible to set the rotational property
regards Henrik
 
Old 12-18-2022, 10:01 PM   #59
scuzzy_dog
Member
 
Registered: Apr 2021
Location: Free State of Texas (somewhat free)
Posts: 108

Rep: Reputation: Disabled
Quote:
Originally Posted by kjhambrick View Post
Interesting performance info on 4.14 vs 5.15, scuzzy_dog.

Are you running a 32-bit or a 64-bit System ?
Running 15.0 16 bit.

One of the things that is also bothering me about 5.X is the 'Code of Conduct' committee ruining Linux and the fact that people not qualified to even jack with the kernel are being bought on board in the name of diversity. It's a sad situation. Reading some of the stuff on the KML (Kernel Mailing List) is truly shocking.

I'm all about merit regardless of race, religion, or any other opinions. Diversity just for the sake of diversity ruins things. I know this first hand from working as a contractor in companies that have bought into all of that.
 
1 members found this post helpful.
Old 12-19-2022, 09:55 PM   #60
yanyan
LQ Newbie
 
Registered: May 2008
Distribution: Slackware 15.0
Posts: 27

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by scuzzy_dog View Post
Running 15.0 16 bit.
16-bit?

Quote:
Originally Posted by scuzzy_dog View Post
One of the things that is also bothering me about 5.X is the 'Code of Conduct' committee ruining Linux and the fact that people not qualified to even jack with the kernel are being bought on board in the name of diversity. It's a sad situation. Reading some of the stuff on the KML (Kernel Mailing List) is truly shocking.

I'm all about merit regardless of race, religion, or any other opinions. Diversity just for the sake of diversity ruins things. I know this first hand from working as a contractor in companies that have bought into all of that.

Can you please PM me links to discussions about this? It's been many years since i unsubscribed from the LKML.
 
Old 12-20-2022, 08:27 AM   #61
scuzzy_dog
Member
 
Registered: Apr 2021
Location: Free State of Texas (somewhat free)
Posts: 108

Rep: Reputation: Disabled

Quote:
Originally Posted by yanyan View Post
16-bit?




Can you please PM me links to discussions about this? It's been many years since i unsubscribed from the LKML.
lol - 64 bit. I was playing with my kid while trying to type.

It would take quite awhile to find the links. Try doing a search for 'Coraline Ada Ehmke ' and also 'Linux Torvalds and code of conduct conflict' - and 'kernel discussion on banned words.'

Here's something to give an idea: https://thenextweb.com/news/linux-code-of-conduct

Here's the 'Manifesto' written by 'Coraline Ada Ehmke' where Meritocracy is no longer valued or even needed: https://postmeritocracy.org/

The 'new guys' being bought in want to do stuff like change the words master, slave, blacklist, whitelist, and lots of other nonsense because people that read code might be offended. And some just can't write code but hey we need diversity. Good grief. Torvalds even stepped away from kernel development for a short time after getting pissed off at the new Code of Conduct Committee while it was being run by 'Coraline'.

BTW: Don't use wikipedia as your source of info.

Last edited by scuzzy_dog; 12-20-2022 at 08:29 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iSCSI write performance very poor while read performance is excellent dinominant Linux - Server 1 10-10-2012 10:51 AM
Software Raid 6 - poor read performance / fast write performance Kvothe Linux - Server 0 02-28-2011 03:11 PM
[SOLVED] Poor Performance After Upgrade to 13.0 From Radeon 9800PRO With Open Source Driver kd5zex Slackware 8 09-05-2009 08:23 PM
poor graphics performance after kernel upgrade (2.6.11.6) geomatt Slackware 6 04-06-2005 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration