Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230
On 11/21/19 1:40 AM, Josh wrote: Thanks Travis for listing down your BIOS settings. The changes I made to match your settings: Config - Power 8254 Timer Clock Gating -> Auto this was to Disabled in my BIOS Config - USB Always On USB - Disabled this was Enabled in my BIOS Security - I/O Port Access Memory Card Slot -> Disabled this was Enabled in my BIOS Boot UEFI/Legacy Boot -> Both <<< this was UEFI only UEFI/Legacy Boot -> Priority UEFI First I installed 6.6 on an external drive. After some intensive use (Chromium streaming 4K video), fan kicks in. However, when closing down Chromium (or at least the 4K tab), FAN will stop running after a short while and won't stay up consistently anymore - similar to 6.5's behaviour. @Dave, what are your BIOS settings? If different, would be interested to know if those given by Travis would lower the ~15W idling to ~10W on 6.6 ... I have just gone through and set the following on my T430: - Reset to Defaults - Security - Secure Boot Configuration Secure Boot -> Disabled (was enabled) - Startup UEFI/Legacy Booot -> Both UEFI/Legacy Boot Prirority -> UEFI First - Config - USB Always on USB - Disabled (was enabled) - Config - I/O Port Access Bluetooth -> Disabled (was enabled) Fingerprint Reader -> Disabled (was enabled) Memory Card Slot -> Disabled (was enabled) I don't have an 8524 Timer Clock Gating setting. Booted into 6.6 and my power draw seen from `sysctl | grep batt` was unchanged, hovering around 15.19W idle sitting in the X session. Did then notice this machine's bios was a 2017 version... went and updated to the latest 2.82 21 Aug 2019 Not an appreciable change to the battery consumption. Hovering around 14.98W. Fan is slightly different though - it's not constantly running. Comes on and off. Cheers, DT
Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230
Thanks Travis for listing down your BIOS settings. The changes I made to match your settings: Config - Power 8254 Timer Clock Gating -> Auto this was to Disabled in my BIOS Config - USB Always On USB - Disabled this was Enabled in my BIOS Security - I/O Port Access Memory Card Slot -> Disabled this was Enabled in my BIOS Boot UEFI/Legacy Boot -> Both <<< this was UEFI only UEFI/Legacy Boot -> Priority UEFI First I installed 6.6 on an external drive. After some intensive use (Chromium streaming 4K video), fan kicks in. However, when closing down Chromium (or at least the 4K tab), FAN will stop running after a short while and won't stay up consistently anymore - similar to 6.5's behaviour. @Dave, what are your BIOS settings? If different, would be interested to know if those given by Travis would lower the ~15W idling to ~10W on 6.6 ... Cheers On Wed, Nov 20, 2019 at 3:30 AM Travis Cole wrote: > > On Tue, Nov 19, 2019, at 10:06, Josh wrote: > > Have you tried on 6.5? > > > > My X1rev6 did not like the upgrade to 6.6. heavy cpu consumption, > > super hot, laggy when browsing and fan spinning consistently. > > > > I've reinstalled 6.5 and been using the same settings as yours. > > everything is back to normal. I guess I will wait for 6.7... > > I've been running the latest 6.6-current on my x1c6 and it works great. > > Really fast, wakes from suspend/hibernate. Isn't laggy, doesn't > get too hot unless I'm doing a long build. > > However, I did somehow hit on some BIOS settings that made it > behave as you describe. I was also seeing some failures to suspend, > and it seemed like lid-action events might be getting missed. I could shut > the lid and then ssh in. Sometimes for a while after boot a single core would > be pegged for a few minutes. > > To fix it, I reset the BIOS to defaults, then set the following: > > Config - Power > Sleep State -> Linux > 8254 Timer Clock Gating -> Auto > Config - USB > USB UEFI BIOS Support -> Enabled > Always On USB - Disabled > Config - Thunderbolt 3 > Thunderbolt BIOS Assist Mode -> Enabled > Security - I/O Port Access > Bluetooth -> Disabled (OpenBSD doesn't support it anyway) > Memory Card Slot -> Disabled (I read on the Arch Wiki (1.) some reports of > this sucking power, and I don't use it.) > Fingerprint Reader -> Disabled > Security - Secure Boot Configuration > Secure Boot -> Disabled > Boot > UEFI/Legacy Boot -> Both > UEFI/Legacy Boot -> Priority UEFI First > CSM Support - Yes > > I'm not sure all of the above are necessary, but mine works wonderfully since > I set it up > this way. I'm also running BIOS version 1.43, which is the latest. > > > 1. https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6)
Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230
The issue lies in here: Config - USB USB UEFI BIOS Support -> Enabled Always On USB - Disabled Config - Thunderbolt 3 Thunderbolt BIOS Assist Mode -> Enabled
Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230
On Tue, Nov 19, 2019, at 10:06, Josh wrote: > Have you tried on 6.5? > > My X1rev6 did not like the upgrade to 6.6. heavy cpu consumption, > super hot, laggy when browsing and fan spinning consistently. > > I've reinstalled 6.5 and been using the same settings as yours. > everything is back to normal. I guess I will wait for 6.7... I've been running the latest 6.6-current on my x1c6 and it works great. Really fast, wakes from suspend/hibernate. Isn't laggy, doesn't get too hot unless I'm doing a long build. However, I did somehow hit on some BIOS settings that made it behave as you describe. I was also seeing some failures to suspend, and it seemed like lid-action events might be getting missed. I could shut the lid and then ssh in. Sometimes for a while after boot a single core would be pegged for a few minutes. To fix it, I reset the BIOS to defaults, then set the following: Config - Power Sleep State -> Linux 8254 Timer Clock Gating -> Auto Config - USB USB UEFI BIOS Support -> Enabled Always On USB - Disabled Config - Thunderbolt 3 Thunderbolt BIOS Assist Mode -> Enabled Security - I/O Port Access Bluetooth -> Disabled (OpenBSD doesn't support it anyway) Memory Card Slot -> Disabled (I read on the Arch Wiki (1.) some reports of this sucking power, and I don't use it.) Fingerprint Reader -> Disabled Security - Secure Boot Configuration Secure Boot -> Disabled Boot UEFI/Legacy Boot -> Both UEFI/Legacy Boot -> Priority UEFI First CSM Support - Yes I'm not sure all of the above are necessary, but mine works wonderfully since I set it up this way. I'm also running BIOS version 1.43, which is the latest. 1. https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6)
Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230
On Tue, 2019-11-19 at 12:54 -0600, Dave Trudgian wrote: > On Tue, 2019-11-19 at 19:06 +0100, Josh wrote: > > Have you tried on 6.5? > > > > My X1rev6 did not like the upgrade to 6.6. heavy cpu consumption, > > super hot, laggy when browsing and fan spinning consistently. > > > > I've reinstalled 6.5 and been using the same settings as yours. > > everything is back to normal. I guess I will wait for 6.7... > > I guess I should try this with relation to the other thread I posted > about power draw on my T430. I'm not seeing heavy CPU or much lag - > but > it is unexpectly thirsty and the fan does go all the time. I'll try > 6.5 > this evening if I get a chance. Sorry for the noise decided to try quickly over lunch on my T430. With 6.6 I was seeing a power draw of ~15W sitting at an idle GUI session. Fan runs slowly, but constantly. With 6.5 I see a power draw of ~10.5W sitting at an idle GUI session. Fan does not run. The 6.5 figure compares fairly well to ~8W on Linux with everything powertop can tune there. Going to stay at 6.5 for a while on this machine given the above... but I have 2 drives in this laptop, so I can relatively easily try things out on 6.6 if there are any pointers to try, or useful diagnostic information I can obtain. DT
Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230
On Tue, 2019-11-19 at 19:06 +0100, Josh wrote: > Have you tried on 6.5? > > My X1rev6 did not like the upgrade to 6.6. heavy cpu consumption, > super hot, laggy when browsing and fan spinning consistently. > > I've reinstalled 6.5 and been using the same settings as yours. > everything is back to normal. I guess I will wait for 6.7... I guess I should try this with relation to the other thread I posted about power draw on my T430. I'm not seeing heavy CPU or much lag - but it is unexpectly thirsty and the fan does go all the time. I'll try 6.5 this evening if I get a chance. Thanks, DT
Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230
Have you tried on 6.5? My X1rev6 did not like the upgrade to 6.6. heavy cpu consumption, super hot, laggy when browsing and fan spinning consistently. I've reinstalled 6.5 and been using the same settings as yours. everything is back to normal. I guess I will wait for 6.7... On Fri, Nov 15, 2019 at 4:58 PM Michael H wrote: > > *laptop: thinkpad x230, i7 processor, 8G ram, intel hd 4000 gpu* > *New OpenBSD user with a fresh install.* > > My user account is created from the install process and has "staff" class - > though i haven't increased the datasize-cur, datasize-max for staff yet. > Additionally, apmd has been set to -A as suggested by the faq. > > Basically, whenever I play a video, CPU0, CPU2(shown in top) spike up to > about 30-58%. The heatsink/fan/ventilation area of the laptop gets > extremely hot. > > Videos buffer pretty slowly, and most importantly, when I am watching a > live stream via players such as mpv, it's basically unwatchable because the > video stops every 3-4 seconds. > > *Here is a log file of messages from mpv while playing a stream: * > https://pastebin.com/3VRWgv3K > *Here is a log file of messages from mpv while playing a youtube video: * > https://pastebin.com/mn0wEXMf > > *here is my dmesg:* > http://ix.io/21Bg > *here is my Xorg.0.log:* > http://ix.io/21Bb > > *Here are the firmwares that have been downloaded during installation:* > intel-firmware-20190918v0 microcode update binaries for Intel CPUs > inteldrm-firmware-20181218 firmware binary images for inteldrm(4) driver > iwn-firmware-5.11p1 firmware binary images for iwn(4) driver > uvideo-firmware-1.2p3 firmware binary images for uvideo(4) driver > vmm-firmware-1.11.0p2 firmware binary images for vmm(4) driver > > *Is this an issue with the system somehow using the modesetting driver > instead of the inteldrm* *driver*? if so, why is that and how should i best > remedy this problem? I thought old thinkpads are generally fully supported > by OpenBSD? > > Anyways, if anyone could help i would really appreciate it! > > *and if anyone is using this exact machine (thinkpad x230), could you also > recommend some of the other optimizations you have done for this machine? * > > thanks in advance!
Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230
This may come across as a strange question, but is the microphone disabled in the BIOS? The azalia driver has(had?) some issues with that before. Cheers, Joe
Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230
On 2019-11-16, David Trudgian wrote: > I have also set the following systcl values: > > # shared memory limits (browsers, etc.) > # max shared memory pages (*4096=8GB) > kern.shminfo.shmall=20971552 > # max shared memory segment size (2GiB) > kern.shminfo.shmmax=2147483647 > # max shared memory identifiers > kern.shminfo.shmmni=1024 > # max shared memory segments per process > kern.shminfo.shmseg=1024 Very few programs use SysV shared memory. Use ipcs -pm and check the CPID column for process ids. On my workstation (running several browsers and sone other things) the only processes using this are MuPDF and PostgreSQL (only a little, the systctl defaults are probably fine). > # Other > kern.maxproc=32768 > kern.maxfiles=131072 > kern.maxvnodes=262144 > kern.bufcachepercent=50 > > The large files numbers here are due to using syncthing, and (I'd guess) > probably not generally advisable. The other stuff is quite likely to be > inadvisable or just plain wrong (due to my inexperience), but it has > given me a responsive system when using Firefox / Chromium, playing > video etc. That is very high for maxproc. If syncthing uses kqueue to monitor for changes and monitors a large number of files then raising maxfiles is expected. Generally don't touch bufcachepercent, it likely doesn't do what you think it does. Not sure about maxvnodes, I don't know what the tradeoffs are.
Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230
*David, sorry for the repeated message. I realized that reply only went out to you alone and not the mailing list :P Here's what I have tried: setup the xorg.conf file to tell it to use the intel driver instead of modesetting #/etc/X11/xorg.conf.d/20-intel.conf Section "Device" Identifier "inteldrm" Driver "intel" EndSection modified login.conf and increased datasize-cur for staff class from 1536M to 4096M #/etc/login.conf staff:\ :datasize-cur=4096M:\ :datasize-max=infinity:\ :maxproc-max=512:\ :maxproc-cur=256:\ :ignorenologin:\ :requirehome@:\ :tc=default: Here are the new dmesg and Xorg.0.log: dmesg http://ix.io/21Ux Xorg.0.log: http://ix.io/21Uy noticed this in the beginning of the Xorg.0.log file. [ 266.934] (WW) checkDevMem: failed to open /dev/xf86 and /dev/mem (Operation not permitted) Check that you have set 'machdep.allowaperture=1' in /etc/sysctl.conf and reboot your machine refer to xf86(4) for details [ 266.934] linear framebuffer access unavailable terminal message from mpv when viewing a live video from twitch: https://pastebin.com/iRCAmq4r it mentioned something about libEGL warning: DRI3: Screen seems not DRI3 capable and basically I'm still having the same problem as before; stuttering, audio/video stopping every few seconds. and now when i play youtube videos with mpv, some seem to cause my x to crash and takes me immediately back to the xenodm login screen for some reason. not all videos, but many do. not sure if this was the case before i made these changes or perhaps the videos i did play prior to the changes were not as high quality as the ones i picked this time around? while the system does use intel drm instead of modesetting which was selected as default, none of these really fixed the issues I'm having though. on top of that, now some of the youtube videos i'm playing via mpv seems to be crashing X and taking me back to the xenodm login screen :( On Sat, Nov 16, 2019 at 11:38 AM David Trudgian wrote: > On 11/15/19 9:51 AM, Michael H wrote: > > *laptop: thinkpad x230, i7 processor, 8G ram, intel hd 4000 gpu* > > *New OpenBSD user with a fresh install.* > > I have a ThinkPad T430 which I'm now typing this on. It's an i5-3320m > (vs your i7-3520m) with 12GB RAM and the same HD4000 class graphics, so > it's pretty close. > > > My user account is created from the install process and has "staff" > class - > > though i haven't increased the datasize-cur, datasize-max for staff yet. > > Additionally, apmd has been set to -A as suggested by the faq. > > Am no expert, having only installed OpenBSD for the first time recently, > but played around with the staff settings when I couldn't use a browser > or play video at all well. Started with some values in a blog post on > the net from someone setting up a laptop, and ended up with: > > :datasize-cur=8192M:\ > :datasize-max=8192M:\ > :maxproc-max=4096:\ > :maxproc-cur=1024:\ > :openfiles-max=32768:\ > :openfiles-cur=16384:\ > > I have also set the following systcl values: > > # shared memory limits (browsers, etc.) > # max shared memory pages (*4096=8GB) > kern.shminfo.shmall=20971552 > # max shared memory segment size (2GiB) > kern.shminfo.shmmax=2147483647 > # max shared memory identifiers > kern.shminfo.shmmni=1024 > # max shared memory segments per process > kern.shminfo.shmseg=1024 > > # Other > kern.maxproc=32768 > kern.maxfiles=131072 > kern.maxvnodes=262144 > kern.bufcachepercent=50 > > The large files numbers here are due to using syncthing, and (I'd guess) > probably not generally advisable. The other stuff is quite likely to be > inadvisable or just plain wrong (due to my inexperience), but it has > given me a responsive system when using Firefox / Chromium, playing > video etc. > > > *Is this an issue with the system somehow using the modesetting driver > > instead of the inteldrm* *driver*? if so, why is that and how should i > best > > remedy this problem? I thought old thinkpads are generally fully > supported > > by OpenBSD? > > Although the login.conf and sysctl settings made the most difference for > me, I do have a smoother experience using the intel driver than the > modesetting one. It's especially noticable when playing video in > Firefox, and dragging the browser window around on my XFCE desktop. The > intel driver happily plays the video smoothly as the window moves > around. The modesetting driver wouldn't do that for me. > > I have the following at /etc/X11/xorg.conf.d/intel.conf > > Section "Device" > Identifier "drm" > Driver "intel" > Option "TearFree" "true" > EndSection > > Hope some of this might be useful! > > Cheers, > > Dave Trudgian > > > > > >
Re: heavy CPU consumption and laggy/stuttering video on thinkpad x230
On 11/15/19 9:51 AM, Michael H wrote: > *laptop: thinkpad x230, i7 processor, 8G ram, intel hd 4000 gpu* > *New OpenBSD user with a fresh install.* I have a ThinkPad T430 which I'm now typing this on. It's an i5-3320m (vs your i7-3520m) with 12GB RAM and the same HD4000 class graphics, so it's pretty close. > My user account is created from the install process and has "staff" class - > though i haven't increased the datasize-cur, datasize-max for staff yet. > Additionally, apmd has been set to -A as suggested by the faq. Am no expert, having only installed OpenBSD for the first time recently, but played around with the staff settings when I couldn't use a browser or play video at all well. Started with some values in a blog post on the net from someone setting up a laptop, and ended up with: :datasize-cur=8192M:\ :datasize-max=8192M:\ :maxproc-max=4096:\ :maxproc-cur=1024:\ :openfiles-max=32768:\ :openfiles-cur=16384:\ I have also set the following systcl values: # shared memory limits (browsers, etc.) # max shared memory pages (*4096=8GB) kern.shminfo.shmall=20971552 # max shared memory segment size (2GiB) kern.shminfo.shmmax=2147483647 # max shared memory identifiers kern.shminfo.shmmni=1024 # max shared memory segments per process kern.shminfo.shmseg=1024 # Other kern.maxproc=32768 kern.maxfiles=131072 kern.maxvnodes=262144 kern.bufcachepercent=50 The large files numbers here are due to using syncthing, and (I'd guess) probably not generally advisable. The other stuff is quite likely to be inadvisable or just plain wrong (due to my inexperience), but it has given me a responsive system when using Firefox / Chromium, playing video etc. > *Is this an issue with the system somehow using the modesetting driver > instead of the inteldrm* *driver*? if so, why is that and how should i best > remedy this problem? I thought old thinkpads are generally fully supported > by OpenBSD? Although the login.conf and sysctl settings made the most difference for me, I do have a smoother experience using the intel driver than the modesetting one. It's especially noticable when playing video in Firefox, and dragging the browser window around on my XFCE desktop. The intel driver happily plays the video smoothly as the window moves around. The modesetting driver wouldn't do that for me. I have the following at /etc/X11/xorg.conf.d/intel.conf Section "Device" Identifier "drm" Driver "intel" Option "TearFree" "true" EndSection Hope some of this might be useful! Cheers, Dave Trudgian
heavy CPU consumption and laggy/stuttering video on thinkpad x230
*laptop: thinkpad x230, i7 processor, 8G ram, intel hd 4000 gpu* *New OpenBSD user with a fresh install.* My user account is created from the install process and has "staff" class - though i haven't increased the datasize-cur, datasize-max for staff yet. Additionally, apmd has been set to -A as suggested by the faq. Basically, whenever I play a video, CPU0, CPU2(shown in top) spike up to about 30-58%. The heatsink/fan/ventilation area of the laptop gets extremely hot. Videos buffer pretty slowly, and most importantly, when I am watching a live stream via players such as mpv, it's basically unwatchable because the video stops every 3-4 seconds. *Here is a log file of messages from mpv while playing a stream: * https://pastebin.com/3VRWgv3K *Here is a log file of messages from mpv while playing a youtube video: * https://pastebin.com/mn0wEXMf *here is my dmesg:* http://ix.io/21Bg *here is my Xorg.0.log:* http://ix.io/21Bb *Here are the firmwares that have been downloaded during installation:* intel-firmware-20190918v0 microcode update binaries for Intel CPUs inteldrm-firmware-20181218 firmware binary images for inteldrm(4) driver iwn-firmware-5.11p1 firmware binary images for iwn(4) driver uvideo-firmware-1.2p3 firmware binary images for uvideo(4) driver vmm-firmware-1.11.0p2 firmware binary images for vmm(4) driver *Is this an issue with the system somehow using the modesetting driver instead of the inteldrm* *driver*? if so, why is that and how should i best remedy this problem? I thought old thinkpads are generally fully supported by OpenBSD? Anyways, if anyone could help i would really appreciate it! *and if anyone is using this exact machine (thinkpad x230), could you also recommend some of the other optimizations you have done for this machine? * thanks in advance!