Re: [gentoo-user] Would constant max CPU speed cause lockups?

2021-06-05 Thread Dottie Keogh
Have you ran memtest? 


Sent from Yahoo Mail for iPhone


On Saturday, June 5, 2021, 5:21 PM, Michael  wrote:

On Saturday, 5 June 2021 18:37:26 BST tastytea wrote:
> On 2021-06-05 13:18-0400 "Walter Dnes"  wrote:
> >  A few years ago, I cheaped out and bought a low-powered Atom desktop
> > 
> > with 8 gigs of RAM.  Looking back, that was a mistake.  It would
> > default to 480p or at best 720p on Youtube.  But I wrote a nifty bash
> > script that manually put the CPU into "userspace" mode, and selected
> > the maximum available CPU speed.  I finally got Youtube with steady
> > playback at 1080p... YAY!  I'd leave it at max speed during my waking
> > hours, and drop it to min speed at night before going to bed.
> > 
> >  I saw the occasional mysterious lockups as I mentioned in recent
> > 
> > threads.  I wonder if pushing the CPU to max speed most of the day
> > would cause overheating and lockups.  I'm leaving my current, more
> > powerfull, machine in "conservative" mode.
> 
> The CPU will automatically throttle when a certain temperature is
> reached. This may be the cause of the lockups.
> 
> >  Should I stay in conservative mode?  Or forget about speed control
> > 
> > entirely, and let "Intel Speed Step" handle things for me?  Also, is
> > there a way to enable CPU throttling based on temperature?
> 
> Have you tried ondemand mode? It ramps up the speed faster than
> conservative mode and drops equally fast if there is not much to do. I
> have it enabled everywhere and didn't notice any problems.

If thermal throttling takes place there will be entries in dmesg and syslog to 
this effect.




Re: [gentoo-user] Where does emerge --sync store the versions of pkgs for updates?

2021-06-05 Thread Kusoneko

On Sat, Jun 05, 2021 at 11:00:58PM +0200, n952162 wrote:

I'm trying to track down why sometimes binary packages on my server
aren't used by my client.

Does anyone know where the information gotten by emerge --sync is stored?



I'm pretty sure emerge --sync pulls ebuilds into /var/db/repos/gentoo,
as for the files the ebuild mentions they are usually downloaded into
/var/cache/distfiles and for the patches, they are located into
/var/db/repos/gentoo/[category]/[package]/files. Built packages are put
into /var/db/pkgs. I'm unsure where anything else would go.

--
Kusoneko
https://kusoneko.moe

GPG Fingerprint: 5F58 0A60 4D06 074D F624 3526 8FDE CBBC 178C 72E1
Fediverse: @kuson...@misskey.kusoneko.moe
XMPP&E-Mail: kuson...@kusoneko.moe

https://email.is-not-s.ms

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


signature.asc
Description: PGP signature


Re: [gentoo-user] Would constant max CPU speed cause lockups?

2021-06-05 Thread Michael
On Saturday, 5 June 2021 18:37:26 BST tastytea wrote:
> On 2021-06-05 13:18-0400 "Walter Dnes"  wrote:
> >   A few years ago, I cheaped out and bought a low-powered Atom desktop
> > 
> > with 8 gigs of RAM.  Looking back, that was a mistake.  It would
> > default to 480p or at best 720p on Youtube.  But I wrote a nifty bash
> > script that manually put the CPU into "userspace" mode, and selected
> > the maximum available CPU speed.  I finally got Youtube with steady
> > playback at 1080p... YAY!  I'd leave it at max speed during my waking
> > hours, and drop it to min speed at night before going to bed.
> > 
> >   I saw the occasional mysterious lockups as I mentioned in recent
> > 
> > threads.  I wonder if pushing the CPU to max speed most of the day
> > would cause overheating and lockups.  I'm leaving my current, more
> > powerfull, machine in "conservative" mode.
> 
> The CPU will automatically throttle when a certain temperature is
> reached. This may be the cause of the lockups.
> 
> >   Should I stay in conservative mode?  Or forget about speed control
> > 
> > entirely, and let "Intel Speed Step" handle things for me?  Also, is
> > there a way to enable CPU throttling based on temperature?
> 
> Have you tried ondemand mode? It ramps up the speed faster than
> conservative mode and drops equally fast if there is not much to do. I
> have it enabled everywhere and didn't notice any problems.

If thermal throttling takes place there will be entries in dmesg and syslog to 
this effect.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Where does emerge --sync store the versions of pkgs for updates?

2021-06-05 Thread Dale
n952162 wrote:
> I'm trying to track down why sometimes binary packages on my server
> aren't used by my client.
>
> Does anyone know where the information gotten by emerge --sync is stored?
>
>
>

You can find where your is with this:


root@fireball / # cat /etc/portage/repos.conf/gentoo.conf | grep location
location = /var/cache/portage/tree
root@fireball / #


Mine is not a default location so yours will be somewhere else most
likely. 

Hope that helps.

Dale

:-)  :-) 



Re: [gentoo-user] nice-to-have: time stamp when each package starts emerging

2021-06-05 Thread n952162

On 6/5/21 11:38 AM, tastytea wrote:

On 2021-06-05 09:35+0200 n952162  wrote:


   Just sayin'

/etc/portage/bashrc is sourced for every package.[1][2]

Try something like
   [[ "${EBUILD_PHASE}" == "setup" ]] && date

[1] 
[2] 



Hey cool!  Good idea.




[gentoo-user] Where does emerge --sync store the versions of pkgs for updates?

2021-06-05 Thread n952162

I'm trying to track down why sometimes binary packages on my server
aren't used by my client.

Does anyone know where the information gotten by emerge --sync is stored?




Re: [gentoo-user] Would constant max CPU speed cause lockups?

2021-06-05 Thread tastytea
On 2021-06-05 13:18-0400 "Walter Dnes"  wrote:

>   A few years ago, I cheaped out and bought a low-powered Atom desktop
> with 8 gigs of RAM.  Looking back, that was a mistake.  It would
> default to 480p or at best 720p on Youtube.  But I wrote a nifty bash
> script that manually put the CPU into "userspace" mode, and selected
> the maximum available CPU speed.  I finally got Youtube with steady
> playback at 1080p... YAY!  I'd leave it at max speed during my waking
> hours, and drop it to min speed at night before going to bed.
> 
>   I saw the occasional mysterious lockups as I mentioned in recent
> threads.  I wonder if pushing the CPU to max speed most of the day
> would cause overheating and lockups.  I'm leaving my current, more
> powerfull, machine in "conservative" mode.

The CPU will automatically throttle when a certain temperature is
reached. This may be the cause of the lockups.

>   Should I stay in conservative mode?  Or forget about speed control
> entirely, and let "Intel Speed Step" handle things for me?  Also, is
> there a way to enable CPU throttling based on temperature?

Have you tried ondemand mode? It ramps up the speed faster than
conservative mode and drops equally fast if there is not much to do. I
have it enabled everywhere and didn't notice any problems.

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgp_NDW0oSRef.pgp
Description: Digitale Signatur von OpenPGP


[gentoo-user] Would constant max CPU speed cause lockups?

2021-06-05 Thread Walter Dnes
  A few years ago, I cheaped out and bought a low-powered Atom desktop
with 8 gigs of RAM.  Looking back, that was a mistake.  It would default
to 480p or at best 720p on Youtube.  But I wrote a nifty bash script
that manually put the CPU into "userspace" mode, and selected the
maximum available CPU speed.  I finally got Youtube with steady playback
at 1080p... YAY!  I'd leave it at max speed during my waking hours, and
drop it to min speed at night before going to bed.

  I saw the occasional mysterious lockups as I mentioned in recent
threads.  I wonder if pushing the CPU to max speed most of the day would
cause overheating and lockups.  I'm leaving my current, more powerfull,
machine in "conservative" mode.

  Should I stay in conservative mode?  Or forget about speed control
entirely, and let "Intel Speed Step" handle things for me?  Also, is
there a way to enable CPU throttling based on temperature?

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] Hard drive AHCI versus RAID setting in BIOS?

2021-06-05 Thread Walter Dnes
On Sat, Jun 05, 2021 at 08:53:30AM +0100, Michael wrote

> Back to the original question:
> 
> I've not had a Dell with this option yet, but I understand Dell uses
> RAID with NVMe drives because it allows Intel RST drivers to work
> with most/all NVMe drives.  I'm not sure if any of the Dell onboard
> software to restore the Win10 OS also depend on this.  Once you
> initialize the OS I think you won't be able to run it in a different
> mode.
> 
> http://forum.notebookreview.com/threads/why-does-dell-set-the-bios-to-raid-always.832016/
> 
> However, I've seen it mentioned in various places Linux will not be able to 
> see the drive if RAID is selected - I don't know if this is still the case.
> 
> https://www.dell.com/community/XPS/Pros-Cons-AHCI-vs-Raid-On-XPS13-9300-NVMe/td-p/7636984

  Some years ago, I had a Dell with a hard drive (no SSD), that would't
work with RAID enabled.  Apparently things haven't changed much.  Thanks
for the info; I'll know to select AHCI when I install.

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] QEMU -nographic Option with OVMF

2021-06-05 Thread Nils Freydank
Am Montag, den 24.05.2021 um 11:52:22 Uhr +0100 schrieb Michael 
:
> On Monday, 24 May 2021 02:01:15 BST Oliver Dixon wrote:
> > Hi,
> > 
> > I decided to bite the bullet yesterday and switch from clunky, and generally
> > untoward, VirtualBox to QEMU/KVM for developing kernel modules. I have a
> > working Gentoo VM with all the bells and whistles I need/want (UEFI
> > booting, NIC passthrough, SSH forwarding, NFSv4 support, etc.), but it's
> > running in an SDL window, which means the guest TTY will become confused
> > and pretty much unusable whenever I change the window size. (Which is
> > rather often since I use a tiling window manager.)
> 
> Have you tried '-display sdl,gl=on -vga virtio' and then use Ctrl+Alt+f to 
> maximise it early in the boot process?  It seems to work OK here, without 
> distorting the contents of the VM window.

Why don't you (Oliver) just use ssh to log in? That way you wouldn't have to
work around TTY resizing problems. If you don't see a prompt over the serial
connection, than maybe there is no getty/agetty instance listening there.
Unfortunately I can't help further in that direction.

As a different approach you could also put the qemu output into a VNC socket
with '-vnc unix:/path/to/socket'. With '-vga virtio' and '-vga std' I had at
least a reproducible screen resolution at startup.

Inspired by app-emulation/nemu I wrote a short shell script which does this and
works for me. I'll attach it here - feel free to take useful parts out of it,
e.g. the daemon mode of qemu could be interesting for you aswell.


control-vm.sh
Description: Bourne shell script


Re: [gentoo-user] nice-to-have: time stamp when each package starts emerging

2021-06-05 Thread tastytea
On 2021-06-05 09:35+0200 n952162  wrote:

>   Just sayin'

/etc/portage/bashrc is sourced for every package.[1][2]

Try something like 
  [[ "${EBUILD_PHASE}" == "setup" ]] && date

[1] 
[2] 


-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgp40eGkoNM83.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] Hard drive AHCI versus RAID setting in BIOS?

2021-06-05 Thread Michael
On Saturday, 5 June 2021 08:32:47 BST Neil Bothwick wrote:
> On Fri, 4 Jun 2021 22:10:10 -0400, Walter Dnes wrote:
> > > I always boot system rescue and dd the entries drive to somewhere
> > > safe. That way I restore the original setup in the case of a warranty
> > > claim - unless the failure is that bad that I can't boot or access
> > > the disk.
> > > 
> >   a) The drive is one terabyte in size.
> 
> Most of is empty, the drives always compress to a lot less.
> 
> >   b) Yes, Mr. Dell Support, I bought the machine 6 months ago and I've
> > 
> > been websurfing, Youtubing, etc ever since.  And Windows Home has not
> > forced an update all that time.
> 
> That would be difficult but no evidence of any evil doing, such as
> installing Linux. However, I'm more concerned about an earlier failure,
> if it lasts six months it should last six years.

Back to the original question:

I've not had a Dell with this option yet, but I understand Dell uses RAID with 
NVMe drives because it allows Intel RST drivers to work with most/all NVMe 
drives.  I'm not sure if any of the Dell onboard software to restore the Win10 
OS also depend on this.  Once you initialize the OS I think you won't be able 
to run it in a different mode.

http://forum.notebookreview.com/threads/why-does-dell-set-the-bios-to-raid-always.832016/

However, I've seen it mentioned in various places Linux will not be able to 
see the drive if RAID is selected - I don't know if this is still the case.

https://www.dell.com/community/XPS/Pros-Cons-AHCI-vs-Raid-On-XPS13-9300-NVMe/
td-p/7636984


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] nice-to-have: time stamp when each package starts emerging

2021-06-05 Thread n952162

 Just sayin'




Re: [gentoo-user] Hard drive AHCI versus RAID setting in BIOS?

2021-06-05 Thread Neil Bothwick
On Fri, 4 Jun 2021 22:10:10 -0400, Walter Dnes wrote:

> > I always boot system rescue and dd the entries drive to somewhere
> > safe. That way I restore the original setup in the case of a warranty
> > claim - unless the failure is that bad that I can't boot or access
> > the disk.  
> 
>   a) The drive is one terabyte in size.

Most of is empty, the drives always compress to a lot less.
 
>   b) Yes, Mr. Dell Support, I bought the machine 6 months ago and I've
> been websurfing, Youtubing, etc ever since.  And Windows Home has not
> forced an update all that time.

That would be difficult but no evidence of any evil doing, such as
installing Linux. However, I'm more concerned about an earlier failure,
if it lasts six months it should last six years.


-- 
Neil Bothwick

Any sufficiently advanced bug is indistinguishable from a feature.


pgpZoNR9_oExu.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Hard drive AHCI versus RAID setting in BIOS?

2021-06-05 Thread Michael
On Saturday, 5 June 2021 03:10:10 BST Walter Dnes wrote:
> On Sat, Jun 05, 2021 at 12:04:19AM +0100, Neil Bothwick wrote
> 
> > On Fri, 4 Jun 2021 18:04:51 -0400, Walter Dnes wrote:
> > >   Since wiping Windows voids the warranty, I'll run the new machine for
> > > 
> > > several days under Windows, just in case there are any early problems.
> > > After that, it goes Gentoo.
> > 
> > I always boot system rescue and dd the entries drive to somewhere safe.
> > That way I restore the original setup in the case of a warranty claim -
> > unless the failure is that bad that I can't boot or access the disk.
> 
>   a) The drive is one terabyte in size.
> 
>   b) Yes, Mr. Dell Support, I bought the machine 6 months ago and I've
> been websurfing, Youtubing, etc ever since.  And Windows Home has not
> forced an update all that time.

The drive may be 1TB, but the data on it must be significantly less.  
Clonezilla can copy and compress the data into a backup image for later 
restoration, should a claim against warranty arise.

Whether a MSWindows Update took place or not, or indeed whether the OS was 
even initialised or not (first run), is pretty much immaterial, as long as the 
failure is related to hardware and data can be provided to this effect.  I've 
returned a PC because smartmontools showed an imminent disk failure and 
another because it failed an overnight run of memtest86+.

signature.asc
Description: This is a digitally signed message part.