/srv/irclogs.ubuntu.com/2019/03/18/#ubuntu-kernel.txt

=== cpaelzer__ is now known as cpaelzer
=== kubkdee is now known as kubkde
FurretUberHi, I found a memory leak on i915 on the kernel 5.0.0-7 and 5.0.0-8 from Disco Dingo. It seems similar to another i915 leak where it leaks when Vulkan applications are used14:02
tjaaltonFurretUber: please file it upstream14:03
tjaaltonso we'll get a fix via the stable branch, maybe14:03
kubkdehey there fellers. i'm interested in rebuilding my kernel to include f2fs modules. is this the correct channel or should i be using a support channel instead?14:05
kubkdei should be cloning the git repo from kernel.ubuntu.com, correct? I've seen others use apt to pull14:20
kubkdeSo do I really have to download the whole thing? 14:34
kubkdeI didn't expect to download 800+ MB to add a couple modules lol14:35
=== kubkdee is now known as kubkde
stgraberhttps://bugs.launchpad.net/ubuntu/+source/linux-meta-lts-xenial/+bug/1820526 is a bit of a problem16:31
ubot5Ubuntu bug 1820526 in linux-meta-lts-xenial (Ubuntu) "linux-signed-generic-lts-xenial 4.4.0-143 depends on linux-generic instead of linux-generic-lts-xenial" [Critical,Confirmed]16:31
=== SimonNL is now known as SimonNL_Afk
arighi /q tru16:51
klebersapw, ^ our linux-meta-lts-xenial is producing a linux-signed-generic-lts-xenial that depends on linux-generic instead of linux-generic-lts-xenial16:51
=== SimonNL_Afk is now known as SimonNL
kubkdeHow can I load f2fs modules into a kernel to compile?19:03
chiluk@apw @cking ... Here's my last few months of work rolled up into an e-mail.  https://lkml.org/lkml/2019/3/18/70619:03
kubkdeAnd in a broader sense, is the page linked in the topic up to date? 19:04
chilukafaik I've seen 512ac99 accepted on some of the linux-stable trees.  I'm not sure who's doing stable maintenance any more, but you might want to watch out on this one.19:04
ckingchiluk, this is excellent analysis; thanks for the heads up on this19:05
cking..be interesting to see what upstream says about it19:05
chilukYeah I figured you guys might want a heads up...19:06
chilukespecially with the stable submissions... and performance is hard kind of issues.19:06
kubkdeis https://wiki.ubuntu.com/Kernel/ well rounded enough to learn from? 19:07
chilukYou can definitely learn from it.19:07
chilukwhat are you trying to accomplish kubkde? 19:08
chilukyou might want to try with the Documentation directory in the linux kernel source...19:08
kubkdechiluk, thanks for replying. I want to rebuild a kernel to include f2fs so I don't have to use dracut or initramfs. And also see if what I could accomplish/make 'better' from compiling my own.19:10
chilukYou are unlikely to make much if anything "better" imho.. but you definitely can turn on the flag..19:11
chilukand yes that documentation is the best place to go for compiling Ubuntu kernels with the Ubuntu specific patches 19:11
chilukso you don't break anything.19:11
kubkdechiluk, I'll take a look at the documentation direction right now, thanks. Would I be applying the patches after I've done my modifications? Also, what do people generally modify kernels to do? I saw one called 'XanMod' and it looked...the same?19:14
kubkdeChrist this is thick.19:15
chilukPeople who generally modify kernels are the same who don't know what they are doing...19:15
chilukin general the only time you should modify kernel sources is if you are fixing something that is broken, and directly fixing c code19:16
chilukor you need to do something specific like enable a module that is not enabled.19:16
kubkdeHow long have you been developing? I don't mind the reading but I'm afraid I might end up forgetting to go to work.19:16
kubkdeI see19:16
chilukkubkde..  in your case.. .I just checked and CONFIG_F2FS_FS=m is already set in the 4.15 ubuntu kernels19:17
chilukyou may simply need to modprobe f2fs to get things functioning.19:17
kubkde:O19:18
chilukreally you are unlikely to see any performance differences from building a custom kernel..19:18
chiluksometimes even turning on architecture specific optimizations for your specific cpu end up in regressing performance.19:18
kubkdeHow do you check that? And doing modprobe f2fs doesn't work. I'll try to pull up the specific errors I got in regards to f2fs 19:18
chilukbut I'd love to hear how that goes.19:19
chilukkubkde ... you need to "sudo modprobe f2fs"19:19
kubkdechiluk, that's definitely what I figured. What I plan to do is strip it down to be hardware specific 19:19
chilukthat's the thing though.19:19
kubkdeOf course...sudo modprobe f2fs. I chrooted into the install after it was done, too19:20
chilukso much is built as modules now that nothing is loaded that doesn't need to be there.19:20
kubkdeInteresting19:20
chilukthe other problem is that so much of the kernel is integer logic that the differences between architectures are almost negligible as all of the fancy architecture specific bits  *(aes, simd, sse, etc) don't really apply to the kernel.19:23
chilukkubkde... good luck though.. I'd love to hear if you make something faster.. You definitely can make the memory footprint smaller.  but ram is cheap these days.19:25
kubkdechiluk, I've got so many questions but I don't want to be that pita looking to be spoonfed haha. Reducing memory would be huge for me since my VMs keep eating it all up. 19:27
kubkdeOf the encyclopedia of that documentation folder, which one do you think would be best to start with? 19:28
chilukyou should look at the cloud kernels instead19:28
kubkdecloud kernels?19:28
kubkdewoah wtf19:28
chiluksorry apt install linux-image-virtual19:28
chilukthose are minimal kernels that only support cloud architectures ..19:29
chiluki.e. xen, kvm, .. not sure if others are supported... maybe vbox..19:29
chilukkubkde... did I make your day?19:29
kubkdechiluk, you sure did :p19:30
chilukkubkde... as for learning kernel internals/adminning I'd start with Documentation/admin-guide... 19:31
chilukif you only care about ubuntu kernels the wiki you linked is probably best.19:31
chilukbut it assumes you know a lot of the stuff in the Documentation folder.19:31
kubkdeThanks, I really appreciate all the info you've given me. I run most VMs locally but even the idea of cloud kernels. Still wtf'ing lol. 19:31
kubkdeI see, that's somewhat ironic19:31
chiluk'tsall good ... those are not well publicized.... glad to be of service..19:33
chilukkubkde just to be explicit the virtual kernels are supposed to be run in the guests not the host.19:35
kubkdeI'm going to stick with Ubuntu so I don't get sidetracked. Ideally once I get good, I'm going to check out cloud kernels since it'd be useful on a resume and for my own media servers lol. 19:37
kubkdeSure that makes sense, thanks for the clarification19:37
kubkdeIt feels like once someone knows how to write a kernel a whole other world of possibility is unlocked 19:38
kubkdeunderstands a kernel* rather than how to write one19:38
kubkdeAlright....I can't believe you actually read through this chiluk 19:42
chilukkubkde: to be truthful, I only check this once every month or so, and usually it's just to harass my canonical friends about cool stuff I'm working on... so you got REALLY lucky.19:43
kubkde:o19:43
kubkde:O19:43
kubkdeholy sh*t lol19:43
chilukyeah..19:43
kubkdeI didn't even recognize19:44
kubkdeLol19:44
chilukusually this channel is kind of one of those things where you ask, and then wait a day and see if someone responds.19:44
chilukusually someone does.19:44
kubkdeThen I got really really lucky19:44
kubkdeYou've got my gratitude chiluk :)19:45
chilukalthough if you are just learning ... start with the admin-guide... have fun building a custom kernel.. see if you find any performance improvements... *(I have a feeling you won't)... there's a lot to learn.19:45
kubkdeWhat's the general timeframe I should be expecting to have a full understanding?19:46
kubkdeAnd sorry to bug because I'm sure you're busy, but I couldn't find any documentation on a module named (I think) libcrc32c19:50
chilukkubkde... never... Linus does not claim to have a full understanding.  As for your module, probably start with modinfo libcrc32c .. then you might have to go to the source.19:51
chilukfortunately modules are usually a pretty good place to start learning kernel programming as they tend to be more self-contained than other parts of the code base...19:52
chilukanother thing to do is actually read a book... I can recommend "linux kernel development" by robert love19:52
chilukbut may expects that you already know a bunch of os fundamentals19:53
kubkdeAh that would be an issue19:58
chilukcool I'm out kubkde... good luck.. I've done my good dead for the month.19:58
kubkdeTurns out I just need to build and install crc32c to run dracut -f --add-drivers f2fs successfully19:59
kubkdeAnd yeah for sure19:59
kubkdeThanks for all the tips! 19:59
kubkdeToday's my lucky day lol19:59
kubkdeTake care chiluk, see you in a month20:00
wxlhey folks. i seem to be having a problem building upstream virtualbox kernel modules in xenial/4.4.0-143 but the bug seems to be related to 4.4.169 and on. this is true in all of the version they have available from 5.0-6.0. and yet the ubuntu version (5.1) works fine. seems related to a api change https://bugzilla.kernel.org/show_bug.cgi?id=202365 but i'm confused as to how being on an older kernel 20:00
wxli'm still having this problem. any insight?20:00
ubot5bugzilla.kernel.org bug 202365 in Other "broked nvidia and vbox drivers" [Normal,New]20:00
chilukkubkde dract is a fedora initramfs builder.. you are probably going to want update-initramfs instead ..20:07
kubkdechiluk, right, but the f2fs module either still wasn't loading or something else wasn't working. I tried modprobe f2fs and added it in /etc/initramfs-tools/modules. I do know that all the crc* modules have to be loaded from reading Fedora/Arch forums. Grub's current git (2.03~) has f2fs but it fails make-check. Dracut actually worked once...but once. So the plan is to rebuild a kernel to have all those modules in 20:13
kubkdeit...although after reading that kernels are mostly full of modules I don't know if compiling my own would be a solution to having f2fs as my root partition20:13
kubkdebtw chiluk if you're still around is there anything you think is exciting that's coming up in the new kernels or that could be added? And I know Dracut is for Fedora, but does that mean I'm more than likely to just break more things when I could be using initramfs-tools lol20:54
chiluk^^ it could break things you are unaware of.21:11
FurretUberEarlier today I found a memory leak on i915 on kernel 5.0. It was asked to report on upstream. I did the bisect but where should I report it? 22:58
FurretUberAs this is fixed on 5.1-rc1, for FreeDesktop bugzilla it would be considered already fixed22:59
tomreynFurretUber: https://www.kernel.org/ states that 5.0(.2) is a stable branch, and the latest. i think FDO would still care having it fixed in the 5.0 branch.23:51

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!