You are not logged in.

#3176 2017-11-18 18:54:17

loqs
Member
Registered: 2014-03-06
Posts: 3,100

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@halocaridina happy to read it is working for you.
@grasky created a branch linux-clone-4.14 on https://github.com/loqs/linux-ck-aur.git contains MuQSS plus the rest of the CK patchset ported to 4.14 plus additions that:
fix the OOPS using the elvator parameter
add BFQ support for SQ devices
make bfq-sq an alias for bfq so elevator=bfq will do the right thing for SQ devices,  MQ devices still ignore the parameter as per upstreams wishes
make bfq the default for MQ devices the same as with 4.13
suggested .config options

IOSCHED_BFQ_SQ			y	for BFQ for SQ devices
BFQ_SQ_GROUP_IOSCHED		y	if y to the above
DEFAULT_BFQ_SQ			3	for BFQ as the default scheduler for SQ devices
MQ_IOSCHED_BFQ			y/n	more experiemental BFQ for SQ devices
MQ_BFQ_GROUP_IOSCHED		y	if y to above
ORC_UNWINDER			2	increase kernel image size but also improves kernel performance

Edit:
disclaimer use at your own risk.  pkgbase=linux-clone is set as it is unofficial and so that it can be installed along side linux-ck.
Edit2:
issue using lchflags/chflags on tmpfs filesystem eg extracting a .pkg using bsdtar to /tmp it is not triggered using the MuQSS patch in isolation or in combination with patches 2 or 16 to 20.
Issue appears to be limitation of tmpfs also present on 4.12 false alarm.

Last edited by loqs (2017-11-19 21:06:05)

Offline

#3177 2017-11-19 08:44:29

flocke
Member
From: Düsseldorf
Registered: 2010-06-14
Posts: 8

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

EDIT: nvm, re-downloading a third time fixed my problem (don't know what happened the first two times).

Last edited by flocke (2017-11-19 08:50:53)

Offline

#3178 2017-11-20 20:45:36

loqs
Member
Registered: 2014-03-06
Posts: 3,100

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@graysky as linux-414-ck1 is out that just leaves patches 16-20 from https://github.com/loqs/linux-ck-aur.git for you to decide if you want or not.
Still not had any response from ck on my port of MuQSS to 4.14 so did not send him patches 16 to 20.

Offline

#3179 2017-11-20 21:18:37

graysky
Member
From: :wq
Registered: 2008-12-01
Posts: 9,280
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@loqs - I like to follow upstream as much as possible.  I am building 4.14-1-ck1 now with ck's patch set.  If I can boot and run, I will push to the AUR.  I have no experiences with your port to know if 16 to 20 are needed/helpful/harmful etc.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs • 1.21 JIGOWATTS!

Offline

#3180 2017-11-20 21:33:20

loqs
Member
Registered: 2014-03-06
Posts: 3,100

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

0016-Prevent-blk-mq-support-mismatch-OOPS.patch does what is says if user uses elevator=bfq or elevator=kyber or elevator=mq-deadline and the queue is SQ it stops the OOPS. patch is authored by upstream scheduled for 4.15
0017-Add-BFQ-MQ-patch-set.patch add the BFQ-MQ patch series as used by linux-zen, linux-pf etc so SQ devices can use BFQ again under the name bfq-sq
0018-Allow-elevator-aliases.patch another upstream patch adds alias support scheduled for 4.15
0019-Add-elevator-aliases.patch based on another upstream patch adds aliases for bfq-sq to bfq and mq-deadline to deadline
0020-Make-BFQ-default-MQ-elevator.patch is the patch you are using as unfuck_bfq_v2.patch
if you wanted an alternative 0020 that made the elevator work for both SQ and MQ against upstreams wishes could provide that instead.
If CK has not responded to my last email I am not seeing a point in sending him more patches until I get any response to the last one.

Offline

#3181 2017-11-20 21:38:35

graysky
Member
From: :wq
Registered: 2008-12-01
Posts: 9,280
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Thanks loqs.  I pushed 4.14-ck1 just now (I type this from it).  Please test/provide feedback.  I will hold off on pushing to [repo-ck] for at least 24 h to get some feedback.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs • 1.21 JIGOWATTS!

Offline

#3182 2017-11-20 21:53:40

loqs
Member
Registered: 2014-03-06
Posts: 3,100

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

# CONFIG_SCSI_MQ_DEFAULT is not set so I am guessing on your system if I recall correctly does not use an NVME device for root will oops with elevator=bfq etc.
CONFIG_SCSI_MQ_DEFAULT=y will mask it for devices that uses the SCSI protocol such as SATA other devices such as SD cards / floppys etc will still be hit by it same issue that has been seen on this thread 4.12+
Edit:
Emailed patches 16-19 + new 20 to CK's kernel@ email address.

Last edited by loqs (2017-11-20 22:37:18)

Offline

#3183 2017-11-21 00:34:55

graysky
Member
From: :wq
Registered: 2008-12-01
Posts: 9,280
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

There ya go, github is the way to get his attention.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs • 1.21 JIGOWATTS!

Offline

#3184 2017-11-21 00:44:40

loqs
Member
Registered: 2014-03-06
Posts: 3,100

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Got the wrong branch with the initial request hope I got it correct with the second one.  Hopefully CK will take at least the OOPS fix.
Edit:
@graysky might want to pull fix for data loss causing bug on 4.14 affecting at least bcache https://git.kernel.org/pub/scm/linux/ke … rtno.patch

Last edited by loqs (2017-11-21 21:09:20)

Offline

#3185 2017-11-24 11:47:04

Tharbad
Member
Registered: 2016-02-27
Posts: 59

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

After upgrading to 4.14.1-1 systemd-modules-load.service service is failing. I can't load any modules (vhba, bcache, virtualbox and so on). Tried reinstalling. Ideas?

Offline

#3186 2017-11-24 17:00:18

loqs
Member
Registered: 2014-03-06
Posts: 3,100

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@Tharbad which packages are providing those modules if DKMS based did they build successfully for linux-ck 4.14.1-1?
@graysky CK accepted the pull request.

Offline

#3187 2017-11-24 17:49:06

bucaneer
Member
Registered: 2011-06-08
Posts: 21

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

loqs wrote:

@graysky might want to pull fix for data loss causing bug on 4.14 affecting at least bcache https://git.kernel.org/pub/scm/linux/ke … rtno.patch

Very much this. I use bcache on my /home drive and had an unpleasant failure to boot today as systemd refused to mount it. No harm done though: downgraded to 4.13, and fsck appears to have cleared things up without any lasting damage.

Offline

#3188 2017-11-24 18:13:11

loqs
Member
Registered: 2014-03-06
Posts: 3,100

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@bucaneer fix is included in 4.14.2 if you want to update the PKGBUILD locally.

Offline

#3189 2017-11-24 19:48:25

graysky
Member
From: :wq
Registered: 2008-12-01
Posts: 9,280
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@loqs - Good job!  ...I assume accepting the default values when building after your patches have been applied is the recommended course?

BFQ-SQ I/O scheduler (IOSCHED_BFQ_SQ) [N/m/y/?] (NEW)
BFQ-MQ I/O Scheduler (MQ_IOSCHED_BFQ) [Y/n/m/?] (NEW)
  BFQ-MQ hierarchical scheduling support (MQ_BFQ_GROUP_IOSCHED) [N/y/?] (NEW)

@bucaneer - Yes, as loqs pointed out, it's part of 4.14.2.  Will push shortly.

Last edited by graysky (2017-11-24 20:04:42)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs • 1.21 JIGOWATTS!

Offline

#3190 2017-11-24 20:36:18

loqs
Member
Registered: 2014-03-06
Posts: 3,100

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

I would recommend

IOSCHED_BFQ_SQ			y	for BFQ for SQ devices this enables the old pre integrated bfq version
BFQ_SQ_GROUP_IOSCHED		y	if y to the above
DEFAULT_BFQ_SQ			?	leave as per the arch default can changed by elevator option or udev rule
MQ_IOSCHED_BFQ			y/n	more experiemental BFQ for MQ devices unless someone actually selects it it will not be used
MQ_BFQ_GROUP_IOSCHED		y	if y to above

Edit:
On the other hand CK likes BFQ and it used to be the default so setting DEFAULT_BFQ_SQ also makes sense.

Last edited by loqs (2017-11-24 20:43:26)

Offline

#3191 2017-11-24 20:46:44

graysky
Member
From: :wq
Registered: 2008-12-01
Posts: 9,280
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

OK... I will push 4.14.2-2 with these defaults:

BFQ-SQ I/O scheduler (IOSCHED_BFQ_SQ) [N/m/y/?] (NEW)         y
BFQ-SQ hierarchical scheduling support (BFQ_SQ_GROUP_IOSCHED) [N/y/?] (NEW)        y
(Default I/O shall remain CFQ)
BFQ-MQ I/O Scheduler (MQ_IOSCHED_BFQ) [Y/n/m/?] (NEW)       m
BFQ-MQ hierarchical scheduling support (MQ_BFQ_GROUP_IOSCHED) [N/y/?] (NEW)         y

EDIT: Done, please audit 4.14.2-2 in the AUR and give me the OK before I build for [repo-ck]

Last edited by graysky (2017-11-24 20:48:07)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs • 1.21 JIGOWATTS!

Offline

#3192 2017-11-24 22:03:21

loqs
Member
Registered: 2014-03-06
Posts: 3,100

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

Looks fine from inspection building now.
Edit:
Built and its working as expected elevator=bfq switches SQ devices to bfq-sq and MQ devices to bfq with no more OOPS.

Last edited by loqs (2017-11-24 22:30:11)

Offline

#3193 2017-11-24 23:19:14

graysky
Member
From: :wq
Registered: 2008-12-01
Posts: 9,280
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

OK... would you mind updating the wiki page to reflect the basic workings/setup?


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs • 1.21 JIGOWATTS!

Offline

#3194 2017-11-25 00:31:43

loqs
Member
Registered: 2014-03-06
Posts: 3,100

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

This is the page we are discussing Linux-ck#How_to_enable_the_BFQ_I.2FO_Scheduler?
After all the changes much of what was initially written back in 4.9 to 4.11 is infact true again.  I will not edit the wiki as I object to the FDL on principal.

Due to CK's patchset defaults, BFQ is built into linux-ck but the above-mentioned scheduler must be enabled manually. User has several options to do that.

Suggested replacement.
BFQ was integrated into linux mainline with 4.12.  linux-ck adds the BFQ-MQ patchset containing bfq-sq and bfq-mq in addition to mainline's bfq.
These schedulers must be enabled manually. User has several options to do that.
Section Enable BFQ for all devices elevator=bfq now works again not sure if that needs to be discussed on the talk page or the factual dispute note can just be removed by yourself.

If compiling from the AUR, simply set the BFQ flag to "y" in the PKGBUILD prior to building:

_BFQ_enable_="y"

Users of repo-ck or those who have not modified the PKGBUILD prior to compile the package can append elevator=bfq to the kernel parameters.

You dropped the _BFQ_enable_="y" support from the PKGBUILD so that is no longer relevant.
Suggested replacement.
Append elevator=bfq to the kernel parameters will enabled bfq-sq for SQ devices and bfq for MQ devices.
MQ devices include NVME devices.  SQ devices include SATA/SCSI devices and memory cards.
SATA/SCSI devices can be switched from SQ to MQ support using the kernel parameter scsi_mod.use_blk_mq=1
The rest of that page is still accurate in my opinion.
The link to Improving_performance#Tuning_IO_schedulers would suggest changing to point to Improving_performance#Using_udev_for_one_device_or_HDD.2FSSD_mixed_environment
The original link contains a discussion including such errors as BFQ support being unofficial,  "Using blk_mq is an all-or-nothing proposition. When enabled all IO schedulers are disabled"
there are now three MQ schedulers bfq,mq-deadline,kyber as well as the none option.  So move the link to the part using udev to set the scheduler.
Edit:
changed the link BFQ-MQ pointed to it now links the patch sets documentation describing the three version's of bfq in upstreams own words.

Last edited by loqs (2017-11-25 00:47:44)

Offline

#3195 2017-11-25 13:39:17

Tharbad
Member
Registered: 2016-02-27
Posts: 59

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

loqs wrote:

@Tharbad which packages are providing those modules if DKMS based did they build successfully for linux-ck 4.14.1-1?

@loqs Whatever was installed in the system before. I guess it's the usual arch packages. When installing the headers, dkms finishes without error.

Edit: I suspect it's because arch latest kernel is 4.13. There might be some changes in the 4.14 that require new packages. Can you confirm?

Last edited by Tharbad (2017-11-25 13:45:20)

Offline

#3196 2017-11-25 16:25:31

loqs
Member
Registered: 2014-03-06
Posts: 3,100

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

@Tharbad when booting with the kernel that has the failing systemd-modules-load.service service.
What is the output of

$ uname -a
$ pacman -Q linux-ck
$ file /boot/vmlinuz-linux-ck
$ journalctl -b0 --unit=systemd-modules.service

Offline

#3197 2017-11-28 09:34:33

NeoTheFox
Member
Registered: 2015-11-17
Posts: 5

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

I have a question.
My PC has i7-7500U, so it's a Kaby Lake CPU,however running

 $ gcc -c -Q -march=native --help=target | grep march 

Produces the following:

 -march=                               broadwell 

Both linux-ck-skylake and llinux-ck-broadwell work on my PC, but which one should I pick and why GCC reports wrong march?

Thanks a lot for providing this repo by the way, these kernels made a real difference in gaming for me

Offline

#3198 2017-11-28 19:12:07

Tharbad
Member
Registered: 2016-02-27
Posts: 59

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

loqs wrote:

@Tharbad when booting with the kernel that has the failing systemd-modules-load.service service.
What is the output of

$ uname -a
$ pacman -Q linux-ck
$ file /boot/vmlinuz-linux-ck
$ journalctl -b0 --unit=systemd-modules.service

Sorry for the delay. Had ISP problems since Thursday.
Issue seems to be resolved in 4.14.2-2.

Offline

#3199 2017-12-04 19:13:21

keepitsimpleengineer
Member
From: San Joaquin Valley, CA
Registered: 2012-06-25
Posts: 301
Website

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

linux-ck-k10 is boots without network connection on Realtek  RTL8111/8168/8411 because the r8168 module is not loaded.

I suspect it may be due to the 2017-12-03 upgrade of r8168 (8.045.08-5 -> 8.045.08-10).

So I ran mkinitcpio for linux-ck-k10 but the network did not come up and there was no r8168 module loaded (mkinitcpio -v) only /usr/lib/modprobe.d/r8168.conf which blacklists r8169.

This is a remote system so it may be a while before I get a chance to look at it again.


Al Einstein: "Man soll die Dinge so einfach machen wie möglich ~ aber nicht einfacher." (Things should be as simple as possible ~ but not too simple.)

Offline

#3200 2017-12-04 21:03:12

loqs
Member
Registered: 2014-03-06
Posts: 3,100

Re: unofficial linux-ck repo with cpu optimized packages is ONLINE

The r8168 package in the repositories is for the linux package in the repositories only not linux-ck.  repo-ck does not provide a r8168-ck package.

Offline

Board footer

Powered by FluxBB