Re: [gentoo-user] Chrome - no system title bar or boarders
On 2021/09/24 at 09:42am, Mark Knecht wrote: > Kubuntu updated Chrome this morning but the problem still exists. I use Fluxbox and had the same issue. Found this today: https://piunikaweb.com/2021/09/23/google-chrome-94-use-system-title-bar-and-borders-checkbox-broken/ To fix the problem: you will need to head over to the chrome://flags page and find the “use-ozone-platform” setting. Make sure to change it from default to disabled, restart your Chrome browser and you will be good to go." I can confirm that this worked for me here. It seems to be a Google Chrome bug that is fixed / being fixed in the next version (also from the above link). I have NOT tried this fix on KDE. -- Chris Spackman (he / him) ch...@osugisakae.com ESL Coordinator The Graham Family of Schools ESL Instructor Columbus State Community College Japan Exchange and Teaching Program Wajima, Ishikawa 1995-1998 Linux user since 1998 Linux User #137532
Re: [gentoo-user] time to build a new machine ?
> > >> man mcelog > > 'man mcelog' + 'man mce' find nothing. does it need to be installed ? > Yep and the package is called mcelog. Did you check for any other messages before/after the mce errors? Do you also have lm-sensors installed? Running sensord? Genuine CPU issues seem pretty rare, so I would check for overheating or power issues, and lm-sensors will help with that.
Re: [gentoo-user] irqbalance
On Fri, Sep 24, 2021 at 10:35 PM William Kenworthy wrote: > In going down the NUMA rabbit hole, I discovered "irqbalance". Does > anyone have an opinion on its usefulness? It is in portage. > > On some multicore arm systems I am using irq affiity to steer certain > irq's to faster CPU's (network, usb) - but from what I have been reading, > irqbalance can improve a mixed workload but a system with a small number of > busy irq's is better served by separating and locking them to different, > more powerful processors. e.g., arm big.LITTLE architectures. > IIRC MSIs have largely addressed the issue, so irqbalance is not so useful anymore. Eg, /proc/interrupts on this system shows that the nvme drive gets 32 interrupts, and the intel gig eth card gets eight interrupts per port, so there's no busy interrupts
Re: [gentoo-user] Advice sought on the use of a VCS (specifically git) to keep track of my Softscroll patch.
On Friday, 24 September 2021 19:47:24 CEST Alan Mackenzie wrote: > I may > not be doing a lot of rebasing, since I'm creating patches for already > released versions rather than keeping up to date with the head of the > master branch. It works the same way there: take the current branch which is some commit of Linux with your patch applied, and rebase your changes onto whichever release you want to target (might need to use git rebase -- onto). > I don't envisage any upstream accepting my patch. The powers that be > were adamant that the soft scrolling be removed from the official > kernel, ostensibly due to security reasons. I may get around to > posting the patch on the Gentoo wiki, but for now it'll just be on > the mailing list, plus to any individual Linux user who asks for a > copy. I was more thinking about other people pulling from your repo, in which case repeated force pushes would cause issues when they try to pull. I wasn't sure if you wanted to actually have the repo public or if this was just to make updating for you easier. > > I hope this helps :P > > It did indeed. Thanks! Glad to be of help! -Marco signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] console scrollback (kernel 5.14)
On Fri, Sep 24, 2021 at 5:29 PM Alan Mackenzie wrote: > Hejjo, Alan > > $ patch -p0 <../patch_for_5.14.diff > > patching file ./drivers/tty/vt/vt.c > > Hunk #1 FAILED at 3208. > > 1 out of 1 hunk FAILED -- saving rejects to file ./drivers/tty/vt/vt.c.rej > > attached. Please start again from a gentoo-sources without any previous > traces of the scrollback patches, and apply that patch. _Surely_ it > should work this time. > Sure enough, the patch was succesful. Unfortunately, I cannot test it, because my computer is out of luck (big thunderstorm, crappy power provider, not-so-smart owner). I can ssh into it and it all seems fine, but VT's other than tty1 go dim after 1 or 2 seconds (showing the greeting) and then go black; I can login blindly! I'm sure it has nothing to do with the patch, since I also booted the former kernel (for which the previous patch has been applied with success as expected) and it happens the same. Damaged UPS or MO, maybe... Anyway, I'll try again when I manage to fix or replace the computer and I'll report then. Thanks, Jorge Almeida P.S. I just noticed you mention gentoo-sources. I use the vanilla kernel from kernel.org. Could that be a problem?
Re: [gentoo-user] systemd mount - what on earth is it doing ...
On Fri, Sep 24, 2021 at 2:25 PM antlists wrote: > This is weird ... > > My /home directory is set up somewhat strangely, as in I've got two raw > partitions, I've put dm-integrity on them, raided them together, then > put lvm on top of that. > > Which got me into a bind with fstab. I've created a systemd service, > which fires up dm-integrity on those two partitions. But I get the > impression it doesn't run until fstab completes. Catch-22 - fstab tries > to mount /home, but it can't until dm-integrity has made the volume appear! > Have you tried using Before=local-fs.target in the service? Or even Before=local-fs-pre.target? So I created a systemd mount unit for /home, which only runs after > dm-integrity. Great - I enabled it and it appeared to work! > You removed the /home entry from fstab, right? > Only problem, startplasma-wayland now dumped me at a blank screen. > > Now for the weirdo. I disabled it, thinking I would have to log in as > root, mount /home, and go from there. Except that, when I logged in, > /home was mounted and startplasma-wayland worked! > That sounds like /home was still on fstab... > systemctl tells me mount.home is disabled, but also tells me that it ran > and mounted the drive. > That should be home.mount. What does systemctl status home.mount says? > So what on earth is going on, and more importantly, what am I > misunderstanding or doing wrong. I would very much like to know why it's > working, when I think it shouldn't be! > Regards. -- Dr. Canek Peláez Valdés Profesor de Carrera Asociado C Departamento de Matemáticas Facultad de Ciencias Universidad Nacional Autónoma de México
Re: [gentoo-user] time to build a new machine ?
210924 Mark Knecht wrote: > On 2021-09-24, at 05:58, Philip Webb wrote: >> While I was asleep yesterday, my machine reported on all 3 Konsoles >> Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... >> : mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 4: 9d0b4c16001d011b >> Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... >> : mce: [Hardware Error]: TSC 0 ADDR 19e617980 MISC c01a0100 >> Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... >> : mce: [Hardware Error]: PROCESSOR 2:600f20 TIME 1632440315 SOCKET 0 APIC 0 >> microcode 6000822 MK> I have no direct experience with this error, > however I'd suggest it was most likely an error > reading a block of DRAM and not likely the CPU itself failing. > I periodically get mce errors on my i980 machine > when running big PixInsight jobs and I hit thermal limits. I thought you had written "1980 machine" (grin). > I'd suggest you run extensive memory tests > and if you don't see any problems don't worry too much. > It's always wise to do good backups in case the problem gets worse. Everything is backed up, incl off-site. > On Fri, Sep 24, 2021 at 8:23 AM Andrew Udvare wrote: >> man mcelog 'man mcelog' + 'man mce' find nothing. does it need to be installed ? Thanks for the advice so far. -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
[gentoo-user] systemd mount - what on earth is it doing ...
This is weird ... My /home directory is set up somewhat strangely, as in I've got two raw partitions, I've put dm-integrity on them, raided them together, then put lvm on top of that. Which got me into a bind with fstab. I've created a systemd service, which fires up dm-integrity on those two partitions. But I get the impression it doesn't run until fstab completes. Catch-22 - fstab tries to mount /home, but it can't until dm-integrity has made the volume appear! So I created a systemd mount unit for /home, which only runs after dm-integrity. Great - I enabled it and it appeared to work! Only problem, startplasma-wayland now dumped me at a blank screen. Now for the weirdo. I disabled it, thinking I would have to log in as root, mount /home, and go from there. Except that, when I logged in, /home was mounted and startplasma-wayland worked! systemctl tells me mount.home is disabled, but also tells me that it ran and mounted the drive. So what on earth is going on, and more importantly, what am I misunderstanding or doing wrong. I would very much like to know why it's working, when I think it shouldn't be! Cheers, Wol
Re: [gentoo-user] Advice sought on the use of a VCS (specifically git) to keep track of my Softscroll patch.
Hello, Marco. On Fri, Sep 24, 2021 at 10:56:39 +0200, Marco Rebhan wrote: > On Friday, 24 September 2021 10:49:53 CEST Peter Humphrey wrote: > > This raises the question of which kernel to work with: vanilla source > > or Gentoo? > Gentoo's patches are kept minimal so it shouldn't really matter (and I > don't think they'd touch this part of the code anyway). Personally I'd > make the patches against the vanilla sources. That's just what I'm doing, for these reasons. I'm not even sure Gentoo maintains a git repository with all the gentoo-sources realeases. > -Marco -- Alan Mackenzie (Nuremberg, Germany).
Re: [gentoo-user] Advice sought on the use of a VCS (specifically git) to keep track of my Softscroll patch.
Hello, Ramon. On Thu, Sep 23, 2021 at 22:56:34 +0200, Ramon Fischer wrote: > If GitHub is preferred, there is also an official GitHub repository of > the Linux Kernel: https://github.com/torvalds/linux Thanks, but here GitHub is most emphatically _not_ preferred. ;-) I've managed to clone a repo from the official site that Marco cited, so I'm up and running. > -Ramon -- Alan Mackenzie (Nuremberg, Germany).
Re: [gentoo-user] Advice sought on the use of a VCS (specifically git) to keep track of my Softscroll patch.
Hello, Marco. On Thu, Sep 23, 2021 at 21:27:26 +0200, Marco Rebhan wrote: > On Thursday, 23 September 2021 20:23:57 CEST Alan Mackenzie wrote: > > Where would I find a suitable kernel git repository to clone? An > > "official" repository, whatever that means? Ideally, I want one with > > just the various kernel releases, not one containing gigabytes of > > intermediate versions. Where would I even start searching to find > > this out? > Hey Alan, > The official repository I think is > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/. > What I would do is apply your patch on top of that, and then to update > it, rebase the patch onto the new upstream commit you want to update to. > This leads to your patches always being at the tip of the commit history > and not somewhere buried between commits from upstream. Thanks, that was a very great deal of help. Rather than downloading the /torvalds/ repo, I went for /linux-stable-rc/, which appears to have release versions going back a long, long way. It has a tag for every such version, which is just what I wanted. So far, I've constructed a clean patch which applies to 5.14.5, for Jorge Almeida. Maybe I can clean up the others over the weekend. I've decided to create a single branch for each kernel version I'm patching. So, so far, I've got a branch called scroll-5.14.5. From that I have recreated a clean diff file for that version. I may not be doing a lot of rebasing, since I'm creating patches for already released versions rather than keeping up to date with the head of the master branch. > However, this rewrites git history so you'd have to force push the > branch to whatever remote you're tracking it in, so keep that in mind. I don't envisage any upstream accepting my patch. The powers that be were adamant that the soft scrolling be removed from the official kernel, ostensibly due to security reasons. I may get around to posting the patch on the Gentoo wiki, but for now it'll just be on the mailing list, plus to any individual Linux user who asks for a copy. > You could do this though and additionally have another branch where you > track the patch files themselves that are rebased onto a certain kernel > commit (you can export them with "git format-patch upstream/master" if > upstream/master is whatever branch the patch is currently rebased on). > That of course you don't have to then force push. I'll probably have a more static system than that, doing a git pull when after a new gentoo-sources is released. > I hope this helps :P It did indeed. Thanks! > -Marco -- Alan Mackenzie (Nuremberg, Germany).
Re: [gentoo-user] console scrollback (kernel 5.14)
Hello, Jorge. On Fri, Sep 24, 2021 at 09:22:45 +0100, Jorge Almeida wrote: > On Thu, Sep 23, 2021 at 6:03 PM Alan Mackenzie wrote: [ ] > It still fails: > $ patch -p0 <../patch_for_5.14.diff > patching file ./drivers/tty/vt/vt.c > Hunk #1 FAILED at 3208. > 1 out of 1 hunk FAILED -- saving rejects to file ./drivers/tty/vt/vt.c.rej Apologies once more. Late last night I managed to get a Linux kernel git repository set up. :-) So, at least if there are any more failures, they'll be systematic failures rather than erratic failures. ;-) >From this I've constructed a complete clean 5.14.5 patch, which I've attached. Please start again from a gentoo-sources without any previous traces of the scrollback patches, and apply that patch. _Surely_ it should work this time. To apply the patch (you surely know this already), cd to the top of the kernel tree, and use $ patch -p1 < 5.14.5-scroll-20210924.diff .. Alternatively, if you've got git, you could use $ git apply 5.14.5-scroll-20210924.diff .. Please let me know again how it works out. Thanks! [ ] > Thanks, > Jorge Almeida -- Alan Mackenzie (Nuremberg, Germany). diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index ef981d3b7bb4..17b51bdc9f6e 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -134,6 +134,11 @@ const struct consw *conswitchp; #define DEFAULT_BELL_DURATION (HZ/8) #define DEFAULT_CURSOR_BLINK_MS200 +#ifdef CONFIG_FRAMEBUFFER_CONSOLE_SOFT_SCROLLBACK +static unsigned int console_soft_scrollback_size = + 1024 * CONFIG_FRAMEBUFFER_CONSOLE_SOFT_SCROLLBACK_SIZE; +#endif + struct vc vc_cons [MAX_NR_CONSOLES]; #ifndef VT_SINGLE_DRIVER @@ -287,7 +292,7 @@ static inline unsigned short *screenpos(const struct vc_data *vc, int offset, bool viewed) { unsigned short *p; - + if (!viewed) p = (unsigned short *)(vc->vc_origin + offset); else if (!vc->vc_sw->con_screen_pos) @@ -616,6 +621,218 @@ static void vc_uniscr_debug_check(struct vc_data *vc) } } +#ifdef CONFIG_FRAMEBUFFER_CONSOLE_SOFT_SCROLLBACK +static void con_update_softback(struct vc_data *vc) +{ + int l = vc->vc_softback_size / vc->vc_size_row; + if (l > 5) + { + vc->vc_softback_end = vc->vc_softback_buf + l * vc->vc_size_row; + vc->vc_softback_top = vc->vc_softback_buf; + } + else + /* Smaller scrollback makes no sense, and 0 would screw + the operation totally */ + vc->vc_softback_top = 0; +} + +static int concon_set_origin(struct vc_data *vc) +{ + if (vc->vc_softback_lines) + concon_scrolldelta(vc, vc->vc_softback_lines); + return 0; +} + +#define advance_row(p, delta) (unsigned short *)((unsigned long)(p) + (delta) * vc->vc_size_row) + +static void con_redraw_softback(struct vc_data *vc, /* struct display *p, */ + long delta) +{ + int count = vc->vc_rows; + unsigned short *d, *s; + unsigned long n; + int line = 0; + + if (!vc->vc_softback_lines) + vc->vc_char_at_pos = scr_readw((u16 *)vc->vc_pos); + + d = (u16 *) vc->vc_softback_curr; + if (d == (u16 *) vc->vc_softback_in) + d = (u16 *) vc->vc_origin; + n = vc->vc_softback_curr + delta * vc->vc_size_row; + vc->vc_softback_lines -= delta; + if (delta < 0) { + if (vc->vc_softback_curr < vc->vc_softback_top + && n < vc->vc_softback_buf) { + n += vc->vc_softback_end - vc->vc_softback_buf; + if (n < vc->vc_softback_top) { + vc->vc_softback_lines -= + (vc->vc_softback_top - n) / vc->vc_size_row; + n = vc->vc_softback_top; + } + } else if (vc->vc_softback_curr >= vc->vc_softback_top + && n < vc->vc_softback_top) { + vc->vc_softback_lines -= + (vc->vc_softback_top - n) / vc->vc_size_row; + n = vc->vc_softback_top; + } + } else { + if (vc->vc_softback_curr > vc->vc_softback_in + && n >= vc->vc_softback_end) { + n += vc->vc_softback_buf - vc->vc_softback_end; + if (n > vc->vc_softback_in) { + n = vc->vc_softback_in; + vc->vc_softback_lines = 0; + } + } else if (vc->vc_softback_curr <= vc->vc_softback_in + &&am
Re: [gentoo-user] Chrome - no system title bar or boarders
On Thu, Sep 23, 2021 at 11:10 AM Steve Evans wrote: > > On Thu, 23 Sep 2021 09:53:57 -0700 > Mark Knecht wrote: > > > Sorry to cross post. I put this on the KDE list yesterday but no > > responses. As I run Kubuntu I thought that it would be a better place > > to start. > > > > Starting yesterday morning both of my KDE machines no longer show a > > system title bar or border for Chrome, and only Chrome. All other > > apps are fine. Right clicking the Chrome tab area has a checkbox for > > 'Use system title bar and borders' but it does nothing. Chrome > > version 94.0.4606.54. > > > > Losing the title bar means losing (as far as I know) the ability to > > pin an instance of Chrome to all virtual desktops which I use for > > browser streamed media - YouTube, Netflix, etc. I've switched that > > window to Firefox for the time being. > > > > As Gentoo is usually a bit further forward I wondered if anyone here > > using Chrome and KDE has seen this issue? > > > > Mine is also missing the title bar. However the "Use system > title bar and borders" /does/ restore the normal title bar for me. This > is also version 94.0.4606.54 on KDE. > > Steve Thanks Steve. Glad to know at least it works for you. Kubuntu updated Chrome this morning but the problem still exists. Assuming user error on my part, do you or anyone else reading know of any KDE System Settings that might tell KDE not to use system title bars on a certain application window? Maybe something got set or tweeked that's causing this problem? Sadly still no response on the KDE list. Thanks, Mark
Re: [gentoo-user] time to build a new machine ?
On Fri, Sep 24, 2021 at 8:23 AM Andrew Udvare wrote: > > On 24/09/2021 06:48, Philip Webb wrote: > > 210924 Andrew Udvare wrote: > >> On 2021-09-24, at 05:58, Philip Webb wrote: > >>> While I was asleep yesterday, my machine reported on all 3 Konsoles : > >>> Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... > >>> : mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 4: 9d0b4c16001d011b > >>> Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... > >>> : mce: [Hardware Error]: TSC 0 ADDR 19e617980 MISC c01a0100 > >>> Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... > >>> : mce: [Hardware Error]: PROCESSOR 2:600f20 TIME 1632440315 SOCKET 0 APIC 0 microcode 6000822 > >>> -- end of report -- > >> From the manpage: > > > > Which man page is that ? > > man mcelog I have no direct experience with this error however I'd suggest it was most likely an error reading a block of DRAM and not likely the CPU itself failing. I periodically get mce errors on my i980 machine when running big PixInsight jobs and I hit thermal limits. I'd suggest you run extensive memory tests and if you don't see any problems don't worry too much. Of course, it's always wise to do good backups in case the problem gets worse. Good luck, Mark
Re: [gentoo-user] time to build a new machine ?
On 24/09/2021 06:48, Philip Webb wrote: 210924 Andrew Udvare wrote: On 2021-09-24, at 05:58, Philip Webb wrote: While I was asleep yesterday, my machine reported on all 3 Konsoles : Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... : mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 4: 9d0b4c16001d011b Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... : mce: [Hardware Error]: TSC 0 ADDR 19e617980 MISC c01a0100 Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... : mce: [Hardware Error]: PROCESSOR 2:600f20 TIME 1632440315 SOCKET 0 APIC 0 microcode 6000822 -- end of report -- From the manpage: Which man page is that ? man mcelog OpenPGP_signature Description: OpenPGP digital signature
Re: [gentoo-user] Advice sought on the use of a VCS (specifically git) to keep track of my Softscroll patch.
On Friday, 24 September 2021 10:49:53 CEST Peter Humphrey wrote: > This raises the question of which kernel to work with: vanilla source > or Gentoo? Gentoo's patches are kept minimal so it shouldn't really matter (and I don't think they'd touch this part of the code anyway). Personally I'd make the patches against the vanilla sources. -Marco signature.asc Description: This is a digitally signed message part.
[gentoo-user] irqbalance
In going down the NUMA rabbit hole, I discovered "irqbalance". Does anyone have an opinion on its usefulness? It is in portage. On some multicore arm systems I am using irq affiity to steer certain irq's to faster CPU's (network, usb) - but from what I have been reading, irqbalance can improve a mixed workload but a system with a small number of busy irq's is better served by separating and locking them to different, more powerful processors. e.g., arm big.LITTLE architectures. BillK
Re: [gentoo-user] Do I need NUMA set up in my kernel?
On 24/9/21 7:25 pm, William Kenworthy wrote: > On 24/9/21 5:38 pm, Michael wrote: >> On Friday, 24 September 2021 10:06:49 BST Peter Humphrey wrote: >>> On Thursday, 23 September 2021 19:20:52 BST Michael wrote: Out of interest, have you tried booting a NUMA enabled kernel to see what dmesg reports? >>> Yes, it's been enabled ever since I had a dual-socket motherboard, years >>> ago. I didn't understand why I did or didn't need it until I read Miles's >>> post yesterday (thanks, Miles). I don't know why it hadn't been made clear >>> in any websites I've visited. >>> On an old laptop, which definitely has only a single AMD APU, I get: $ dmesg | grep -i NUMA -A2 [0.002078] No NUMA configuration found [0.002080] Faking a node at [mem >>> 0x-0x00042eff] >>> [0.002085] NODE_DATA(0) allocated [mem 0x42effc000-0x42eff] >>> I had something similar. Oddly, with NUMA configured I get "not found" and >>> without it I get "pci_bus :00: on NUMA node 0". The system seems to run >>> happily either way. >> Sorry I should have made it clear - the above "No NUMA configuration found" >> message was obtained *with* NUMA enabled in my kernel. >> >> I suppose "NUMA on node 0" is the default first socket, which the kernel >> sets >> up. If the kernel can't find a second CPU it will be 'faking' a multi-CPU >> memory allocation setup, when it comes to allocate memory to the only CPU >> available. If the kernel does not have NUMA enabled then it doesn't need to >> fake anything. It will treat the hardware as a single socket MoBo and no >> further tests would be undertaken. All suppositions of course, I haven't >> looked at the code. ;-) > Try "numactl --hardware" (from the numactl package) > > rattus ~ # numactl --hardware > available: 1 nodes (0) > node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 > node 0 size: 31942 MB > node 0 free: 7210 MB > node distances: > node 0 > 0: 10 > rattus ~ # > > (Intel 6 core - NUMA emulation in the kernel.) > > I can only find testing NUMA code and hardware as a reason to have > emulation enabled on a non-NUMA system? > > BillK > > Actually Iam using "numactl -C 4,5 /etc/init.d/amavisd start" to lock processes to particular cpu's (on an arm big.LITTLE architecture. I will need to compile a new kernel without NUMA emulation to see if it still works. BillK
Re: [gentoo-user] Do I need NUMA set up in my kernel?
On 24/9/21 5:38 pm, Michael wrote: > On Friday, 24 September 2021 10:06:49 BST Peter Humphrey wrote: >> On Thursday, 23 September 2021 19:20:52 BST Michael wrote: >>> Out of interest, have you tried booting a NUMA enabled kernel to see what >>> dmesg reports? >> Yes, it's been enabled ever since I had a dual-socket motherboard, years >> ago. I didn't understand why I did or didn't need it until I read Miles's >> post yesterday (thanks, Miles). I don't know why it hadn't been made clear >> in any websites I've visited. >> >>> On an old laptop, which definitely has only a single AMD >>> APU, I get: >>> >>> $ dmesg | grep -i NUMA -A2 >>> [0.002078] No NUMA configuration found >>> [0.002080] Faking a node at [mem >> 0x-0x00042eff] >> >>> [0.002085] NODE_DATA(0) allocated [mem 0x42effc000-0x42eff] >> I had something similar. Oddly, with NUMA configured I get "not found" and >> without it I get "pci_bus :00: on NUMA node 0". The system seems to run >> happily either way. > Sorry I should have made it clear - the above "No NUMA configuration found" > message was obtained *with* NUMA enabled in my kernel. > > I suppose "NUMA on node 0" is the default first socket, which the kernel sets > up. If the kernel can't find a second CPU it will be 'faking' a multi-CPU > memory allocation setup, when it comes to allocate memory to the only CPU > available. If the kernel does not have NUMA enabled then it doesn't need to > fake anything. It will treat the hardware as a single socket MoBo and no > further tests would be undertaken. All suppositions of course, I haven't > looked at the code. ;-) Try "numactl --hardware" (from the numactl package) rattus ~ # numactl --hardware available: 1 nodes (0) node 0 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 node 0 size: 31942 MB node 0 free: 7210 MB node distances: node 0 0: 10 rattus ~ # (Intel 6 core - NUMA emulation in the kernel.) I can only find testing NUMA code and hardware as a reason to have emulation enabled on a non-NUMA system? BillK
Re: [gentoo-user] time to build a new machine ?
210924 Andrew Udvare wrote: > On 2021-09-24, at 05:58, Philip Webb wrote: >> While I was asleep yesterday, my machine reported on all 3 Konsoles : >> Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... >> : mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 4: 9d0b4c16001d011b >> Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... >> : mce: [Hardware Error]: TSC 0 ADDR 19e617980 MISC c01a0100 >> Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... >> : mce: [Hardware Error]: PROCESSOR 2:600f20 TIME 1632440315 SOCKET 0 APIC 0 >> microcode 6000822 >> -- end of report -- > From the manpage: Which man page is that ? > Most errors can be corrected by the CPU > by internal error correction mechanisms. Uncorrected errors cause > machine check exceptions which may kill processes or panic the machine. > A small number of corrected errors is usually not a cause for worry, > but a large number can indicate future failure. So it looks as if the above was a correctable error. > When an uncorrected machine check error happens > that the kernel cannot recover from, then it will usually panic the system. > In this case when there was a warm reset after the panic, > mcelog should pick up the machine check errors after reboot. > This is not possible after a cold reset. No sign of any other effects : everything went on running. > If you are overclocking, try disabling it. No, I never overclock anything (smile). -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] time to build a new machine ?
> On 2021-09-24, at 05:58, Philip Webb wrote: > > While I was asleep yesterday, my machine reported on all 3 Konsoles : > > Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... > : mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 4: 9d0b4c16001d011b > > Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... > : mce: [Hardware Error]: TSC 0 ADDR 19e617980 MISC c01a0100 > > Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... > : mce: [Hardware Error]: PROCESSOR 2:600f20 TIME 1632440315 SOCKET 0 APIC 0 > microcode 6000822 > > -- end of report -- > > I don't remember seeing this before : how concerned should I be ? From the manpage: Most errors can be corrected by the CPU by internal error correction mechanisms. Uncorrected errors cause machine check exceptions which may kill processes or panic the machine. A small number of corrected errors is usually not a cause for worry, but a large number can indicate future failure. When an uncorrected machine check error happens that the kernel cannot recover from then it will usually panic the system. In this case when there was a warm reset after the panic mcelog should pick up the machine check errors after reboot. This is not possible after a cold reset. If you are overclocking, try disabling it.
[gentoo-user] time to build a new machine ?
While I was asleep yesterday, my machine reported on all 3 Konsoles : Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... : mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 4: 9d0b4c16001d011b Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... : mce: [Hardware Error]: TSC 0 ADDR 19e617980 MISC c01a0100 Message from syslogd@ at Thu Sep 23 19:38:11 2021 ... : mce: [Hardware Error]: PROCESSOR 2:600f20 TIME 1632440315 SOCKET 0 APIC 0 microcode 6000822 -- end of report -- I don't remember seeing this before : how concerned should I be ? The present machine is 6 years old & has always worked very well ; its CPU is an AMD. I plan to build a new machine in the next few months : should I accelerate my plans ? -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] Do I need NUMA set up in my kernel?
On Friday, 24 September 2021 10:06:49 BST Peter Humphrey wrote: > On Thursday, 23 September 2021 19:20:52 BST Michael wrote: > > Out of interest, have you tried booting a NUMA enabled kernel to see what > > dmesg reports? > > Yes, it's been enabled ever since I had a dual-socket motherboard, years > ago. I didn't understand why I did or didn't need it until I read Miles's > post yesterday (thanks, Miles). I don't know why it hadn't been made clear > in any websites I've visited. > > > On an old laptop, which definitely has only a single AMD > > APU, I get: > > > > $ dmesg | grep -i NUMA -A2 > > [0.002078] No NUMA configuration found > > [0.002080] Faking a node at [mem > > 0x-0x00042eff] > > > [0.002085] NODE_DATA(0) allocated [mem 0x42effc000-0x42eff] > > I had something similar. Oddly, with NUMA configured I get "not found" and > without it I get "pci_bus :00: on NUMA node 0". The system seems to run > happily either way. Sorry I should have made it clear - the above "No NUMA configuration found" message was obtained *with* NUMA enabled in my kernel. I suppose "NUMA on node 0" is the default first socket, which the kernel sets up. If the kernel can't find a second CPU it will be 'faking' a multi-CPU memory allocation setup, when it comes to allocate memory to the only CPU available. If the kernel does not have NUMA enabled then it doesn't need to fake anything. It will treat the hardware as a single socket MoBo and no further tests would be undertaken. All suppositions of course, I haven't looked at the code. ;-) signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Do I need NUMA set up in my kernel?
On Thursday, 23 September 2021 19:20:52 BST Michael wrote: > Out of interest, have you tried booting a NUMA enabled kernel to see what > dmesg reports? Yes, it's been enabled ever since I had a dual-socket motherboard, years ago. I didn't understand why I did or didn't need it until I read Miles's post yesterday (thanks, Miles). I don't know why it hadn't been made clear in any websites I've visited. > On an old laptop, which definitely has only a single AMD > APU, I get: > > $ dmesg | grep -i NUMA -A2 > [0.002078] No NUMA configuration found > [0.002080] Faking a node at [mem 0x-0x00042eff] > [0.002085] NODE_DATA(0) allocated [mem 0x42effc000-0x42eff] I had something similar. Oddly, with NUMA configured I get "not found" and without it I get "pci_bus :00: on NUMA node 0". The system seems to run happily either way. -- Regards, Peter.
Re: [gentoo-user] Advice sought on the use of a VCS (specifically git) to keep track of my Softscroll patch.
On Thursday, 23 September 2021 21:56:34 BST Ramon Fischer wrote: > If GitHub is preferred, there is also an official GitHub repository of > the Linux Kernel: https://github.com/torvalds/linux This raises the question of which kernel to work with: vanilla source or Gentoo? Sorry to be difficult. :( -- Regards, Peter.
Re: [gentoo-user] console scrollback (kernel 5.14)
On Thu, Sep 23, 2021 at 6:03 PM Alan Mackenzie wrote: > > > As for the two(?) versions of my patch, they differed mainly in the > aesthetics - diff.20210405.diff had lots of ugly maintainer comments in > it. So, could I ask you please to try that 1-hunk patch I posted > yesterday on top of the version you have. Please then tell me whether > or not it works. > It still fails: $ patch -p0 <../patch_for_5.14.diff patching file ./drivers/tty/vt/vt.c Hunk #1 FAILED at 3208. 1 out of 1 hunk FAILED -- saving rejects to file ./drivers/tty/vt/vt.c.rej $ cat ../patch_for_5.14.diff --- ./drivers/tty/vt/vt.c.orig 2020-12-13 22:41:30.0 + +++ ./drivers/tty/vt/vt.c 2021-04-05 16:20:32.624563241 + @@ -3208,6 +3208,12 @@ param.vc = vc; +#ifdef CONFIG_FRAMEBUFFER_CONSOLE_SOFT_SCROLLBACK + /* Undo any soft scrolling - and do + not pass through this function. */ + concon_set_origin (vc); +#endif + while (!tty->flow.stopped && count) { int orig = *buf; buf++; Thanks, Jorge Almeida --- ./drivers/tty/vt/vt.c.orig 2020-12-13 22:41:30.0 + +++ ./drivers/tty/vt/vt.c 2021-04-05 16:20:32.624563241 + @@ -3208,6 +3208,12 @@ param.vc = vc; +#ifdef CONFIG_FRAMEBUFFER_CONSOLE_SOFT_SCROLLBACK + /* Undo any soft scrolling - and do + not pass through this function. */ + concon_set_origin (vc); +#endif + while (!tty->flow.stopped && count) { int orig = *buf; buf++;