Re: [gentoo-user] [OT] Calculating power consumption of a running program?

2017-08-23 Thread R0b0t1
On Wed, Aug 23, 2017 at 5:49 PM, Alan McKinnon  wrote:
> On 24/08/2017 00:29, R0b0t1 wrote:
>> As an example, I am interested in characterizing the power consumption
>> of rendering a PDF document. I would hopefully only need to run the
>> renderer once.
>>
>> I can use PowerTOP, but it seems to be limited to rough measurements
>> on the order of tenths of a watt. This measurement can be divided
>> among the wakeup events in an attempt to calculate software power
>> consumption but it seems imperfect if I want to monitor a single
>> process that may be competing relatively equally for resources with
>> the kernel and other user processes.
>>
>> PMBus is a spinoff of SMBus which is a spinoff of I2C which is found
>> on many motherboards. PMBus is supposed to be the interface which
>> controls and reports power supply activity. Besides the main kW power
>> supply, there is usually a power supply near your processor that steps
>> down 3.3V or 5V to 2.8V, 1.8V, or lower (I've seen as low as 0.8V, but
>> not on a desktop). I was not aware these had a visible interface.
>>
>> Apparently you can talk to these, but my searches can only find code
>> which seems highly experimental. The other replies seem to be for
>> embedded Linux systems running on FPGAs and perhaps Cortex-A parts.
>>
>> If I were using a microcontroller I could get uA or nA draw per MHz
>> and I know my operating voltage and operating time. However, desktop
>> processors are much more complex, and I am not sure if they have been
>> entirely characterized. The most advanced tool I can find is PowerTOP
>> and it does not seem very accurate.
>>
>> Does anyone have any suggestions? Should I start reading source code
>> or post on the forums?
>
> Both of these sound good
>
>> Or perhaps someone has used PowerTOP and found
>> it to be reasonably accurate?
>
> No not this. PowerTOP was designed to find badly-behaving programs like
> pidgin that woke up and polled it's queue every 1ms or so. It's not for
> what you want at all, not even close.
>

That's kind of unfortunate. It's the only software I was able to find.
There's another program, LatencyTOP, that might use API that is
relevant for my purposes (interruptible states are important for power
management), but it looks like development on it has stalled.


PoisonBL, I think my response to Alec touches on some of your points as well.

On Wed, Aug 23, 2017 at 8:39 PM, Alec Ten Harmsel
 wrote:
> On Wed, Aug 23, 2017 at 05:29:13PM -0500, R0b0t1 wrote:
>> As an example, I am interested in characterizing the power consumption
>> of rendering a PDF document. I would hopefully only need to run the
>> renderer once.
>
> I remember in college some interesting work in security-related stuff
> that was about characterizing power draw in order to crack passwords.
> Potentially that could be useful, as you could record the waveforms
> going into your power supply while rendering a PDF, but it sure sounds
> complicated.
>

That is an additional application. It's actually amazing how course
the information needed is - it was possible to listen to a switch mode
power supply's audible frequencies to recover the (asymmetric?) key
being used to encrypt data.

>> Apparently you can talk to these, but my searches can only find code
>> which seems highly experimental. The other replies seem to be for
>> embedded Linux systems running on FPGAs and perhaps Cortex-A parts.
>
> Even if you could talk to these, taking periodic measurements of
> current and voltage, then integrating over time would probably give
> results with large errors.
>

Right. However as above, my situation is a poor one, any information
is better than what I am looking at now. There are embedded (ranging
up to Cortex-A parts) boards that have very detailed power reporting
capabilities, but it adds a noticeable amount to the bill of
materials. If I am lucky the drive for lower power consumption in
laptops and desktops means these things exists in those products. I am
not sure I can access them if they do, power management in Linux still
lags behind proprietary OSes, unfortunately.

I am hoping they offer data streaming or the ability to set maximum
power output. If I can cap the power output I could compare
performance between two setpoints, although this suffers from a lot of
variability as well.

I'm not sure I can get data on or from any regulators that exist
inside the processor, or any power management facilities that are on
the processor die (a popular setup is to control a buck/boost
converter directly from the processor, as in it is integrated directly
with the processor's power management facilities; modern processors
likely have much more than that). If I could do that, that would give
me the best data I might be able to get.

>> If I were using a microcontroller I could get uA or nA draw per MHz
>> and I know my operating voltage and operating time. However, desktop
>> processors are much 

Re: [gentoo-user] [OT] Calculating power consumption of a running program?

2017-08-23 Thread Alec Ten Harmsel
On Wed, Aug 23, 2017 at 05:29:13PM -0500, R0b0t1 wrote:
> As an example, I am interested in characterizing the power consumption
> of rendering a PDF document. I would hopefully only need to run the
> renderer once.

I remember in college some interesting work in security-related stuff
that was about characterizing power draw in order to crack passwords.
Potentially that could be useful, as you could record the waveforms
going into your power supply while rendering a PDF, but it sure sounds
complicated.

> Apparently you can talk to these, but my searches can only find code
> which seems highly experimental. The other replies seem to be for
> embedded Linux systems running on FPGAs and perhaps Cortex-A parts.

Even if you could talk to these, taking periodic measurements of
current and voltage, then integrating over time would probably give
results with large errors.

> If I were using a microcontroller I could get uA or nA draw per MHz
> and I know my operating voltage and operating time. However, desktop
> processors are much more complex, and I am not sure if they have been
> entirely characterized. The most advanced tool I can find is PowerTOP
> and it does not seem very accurate.

Due to modern processors having things like pipelines and all of the
caching and memory pre-fetching going on behind the scenes, it's probably
not easy to measure this with any degree of accuracy.

Have fun,

Alec



Re: [gentoo-user] [OT] Calculating power consumption of a running program?

2017-08-23 Thread Poison BL.
On Wed, Aug 23, 2017 at 7:07 PM, Poison BL.  wrote:

> On Wed, Aug 23, 2017 at 6:29 PM, R0b0t1  wrote:
>
>> As an example, I am interested in characterizing the power consumption
>> of rendering a PDF document. I would hopefully only need to run the
>> renderer once.
>
>
> ... That's potentially useful for profiling during
> optimization of a very specific workflow in controlled conditions, but it's
> really of questionable usefulness beyond that.
>
> --
> Joshua M. Murphy
>

Also, I meant to note, the same issues that apply to power profiling of
rendering PDFs really also apply to nearly everything we tend to use
desktop systems for on a regular basis. Our datasets change in complexity
too much, many of the processes working with them are heavily impacted by
user interactivity, and background tasks and other variable factors further
complicate things so much that, aside from the extreme anomalies (like the
pidgin issue Alan noted), it's rare that a coherent power usage can be
accurately attributed to any one process.

-- 
Joshua M. Murphy


Re: [gentoo-user] [OT] Calculating power consumption of a running program?

2017-08-23 Thread Poison BL.
On Wed, Aug 23, 2017 at 6:29 PM, R0b0t1  wrote:

> As an example, I am interested in characterizing the power consumption
> of rendering a PDF document. I would hopefully only need to run the
> renderer once.


The catch with that goal is that a) rendering a PDF is likely as much of a
ram and disk intensive process as it is cpu intensive, b) the computational
complexity of it is *completely* dependent on the source's complexity, and
c) the actual power draw of the system will even vary based on external
environmental factors. For a specific document, you could measure it by
pre-loading everything into ram (so disk and ram i/o for the executable and
data to process aren't factors), ensure the system is truly idle (i.e. no
background processes, including scheduled tasks), take a power usage
measurement (preferably with an external, physical, power meter) as a
baseline, then run the process N times in a loop, and take a measurement of
both the total run time and the change in power draw. From there, you can
divide the run time by N, the multiply by the change in power draw, to get
the result. That'll tell you roughly how much power you would draw every
time you rendered that particular document, from ram, on that system, with
those exact settings, in a room at roughly that temperature and humidity.
That's potentially useful for profiling during optimization of a very
specific workflow in controlled conditions, but it's really of questionable
usefulness beyond that.

-- 
Joshua M. Murphy


Re: [gentoo-user] Kernel 4.12.5 hard lockups, nothing in logs.

2017-08-23 Thread Frank Steinmetzger
On Sun, Aug 20, 2017 at 11:21:12AM +0200, Alan McKinnon wrote:
> On 20/08/2017 05:47, Bill Kenworthy wrote:
> > Hi all,
> > I am getting random lockups on kernel 4.12.5.
> >
> > Three intel hosts (atom, early i7, i7 haswell) - its worse after a
> > suspend resume session.  Because these are in use Ive gone back to
> > 4.9.34 which is stable.
> > […]
>
> I'm seeing changes in 4.12 too and haven't bothered looking further as
> 4.11 still works for me. My external monitors and USB keyboard & mouse
> on laptops stopped working with 4.12 and other silliness which I forget.
> 
> My techie spidey-sense is telling me it all smells a lot like someone
> tidied up .config and things moved around, so make oldconfig got confused.

I, too, did encounter problems with 4.12 (vanilla from kernel.org). I have a
PC with radeon driver and a laptop with intel graphcis. I always do make
oldconfig when building a new kernel version. But with 4.12, both those
machines stopped working, they hung at boot, I think when switching graphics
mode.

Finally I found the time and reconfigured my kernel from scratch on the
laptop, which eventually made it work again. The big PC is still waiting for
its turn and running on 4.10 for the time being.

-- 
Gruß | Greetings | Qapla’
Please do not share anything from, with or about me on any social network.

I have seen things you lusers would not believe.
I've seen Sun monitors on fire off the side of the multimedia lab.
I've seen NTU lights glitter in the dark near the Mail Gate.
All these things will be lost in time, like the root partition last week.
Time to die.


signature.asc
Description: Digital signature


Re: [gentoo-user] [OT] Calculating power consumption of a running program?

2017-08-23 Thread Alan McKinnon
On 24/08/2017 00:29, R0b0t1 wrote:
> As an example, I am interested in characterizing the power consumption
> of rendering a PDF document. I would hopefully only need to run the
> renderer once.
> 
> I can use PowerTOP, but it seems to be limited to rough measurements
> on the order of tenths of a watt. This measurement can be divided
> among the wakeup events in an attempt to calculate software power
> consumption but it seems imperfect if I want to monitor a single
> process that may be competing relatively equally for resources with
> the kernel and other user processes.
> 
> PMBus is a spinoff of SMBus which is a spinoff of I2C which is found
> on many motherboards. PMBus is supposed to be the interface which
> controls and reports power supply activity. Besides the main kW power
> supply, there is usually a power supply near your processor that steps
> down 3.3V or 5V to 2.8V, 1.8V, or lower (I've seen as low as 0.8V, but
> not on a desktop). I was not aware these had a visible interface.
> 
> Apparently you can talk to these, but my searches can only find code
> which seems highly experimental. The other replies seem to be for
> embedded Linux systems running on FPGAs and perhaps Cortex-A parts.
> 
> If I were using a microcontroller I could get uA or nA draw per MHz
> and I know my operating voltage and operating time. However, desktop
> processors are much more complex, and I am not sure if they have been
> entirely characterized. The most advanced tool I can find is PowerTOP
> and it does not seem very accurate.
> 
> Does anyone have any suggestions? Should I start reading source code
> or post on the forums? 

Both of these sound good

> Or perhaps someone has used PowerTOP and found
> it to be reasonably accurate?

No not this. PowerTOP was designed to find badly-behaving programs like
pidgin that woke up and polled it's queue every 1ms or so. It's not for
what you want at all, not even close.


> 
> R0b0t1.
> 


-- 
Alan McKinnon
alan.mckin...@gmail.com




[gentoo-user] [OT] Calculating power consumption of a running program?

2017-08-23 Thread R0b0t1
As an example, I am interested in characterizing the power consumption
of rendering a PDF document. I would hopefully only need to run the
renderer once.

I can use PowerTOP, but it seems to be limited to rough measurements
on the order of tenths of a watt. This measurement can be divided
among the wakeup events in an attempt to calculate software power
consumption but it seems imperfect if I want to monitor a single
process that may be competing relatively equally for resources with
the kernel and other user processes.

PMBus is a spinoff of SMBus which is a spinoff of I2C which is found
on many motherboards. PMBus is supposed to be the interface which
controls and reports power supply activity. Besides the main kW power
supply, there is usually a power supply near your processor that steps
down 3.3V or 5V to 2.8V, 1.8V, or lower (I've seen as low as 0.8V, but
not on a desktop). I was not aware these had a visible interface.

Apparently you can talk to these, but my searches can only find code
which seems highly experimental. The other replies seem to be for
embedded Linux systems running on FPGAs and perhaps Cortex-A parts.

If I were using a microcontroller I could get uA or nA draw per MHz
and I know my operating voltage and operating time. However, desktop
processors are much more complex, and I am not sure if they have been
entirely characterized. The most advanced tool I can find is PowerTOP
and it does not seem very accurate.

Does anyone have any suggestions? Should I start reading source code
or post on the forums? Or perhaps someone has used PowerTOP and found
it to be reasonably accurate?

R0b0t1.



Re: [gentoo-user] Is this working correctly??

2017-08-23 Thread Alan McKinnon
On 23/08/2017 21:26, Dale wrote:
> Alan McKinnon wrote:
>> On 23/08/2017 09:03, Thomas Mueller wrote:
>>> You (Dale) seem to have corrected the multipart/alternative problem, except 
>>> one message (Subject: Re: [gentoo-user] Re: downgrading glibc) where 
>>> multipart/alternative went through.
>>>
>>> I would never design an email client to send multipart/alternative by 
>>> default, and might design an email client to not support 
>>> multipart/alternative at all in composed messages.
>>
>> And that's why your mail client will never rule the world, but Outlook
>> and GMail's web interface does.
>>
>> I think it's high time we techies all got over the HTML thing now. We
>> all have high speed internet these days, you can't buy a spinning drive
>> smaller than 1TB anymore and apart from a few holdfasts like decent
>> Mailman lists (eg this one and kernel.org), email is a thing that idiots
>> at work use like it was IM. Most other folks moved on...
>>
> 
> I tend to agree with that.  Mine shows both plain text and HTML just
> fine.  Either one works.  By default, it blocks remote content which
> generally results in a somewhat plain text email anyway, until I tell it
> to show remote stuff.  The only reason I do set it up this way is for
> gentoo.org and kde.org.  Everyone else gets HTML, all the time. 
> 
> I suspect the percentage of even Gentoo mailing list users that use
> software that can't show HTML is small. I wouldn't be surprised if it is
> single digits even.  That said, Seamonkey is starting to rub me the
> wrong way.  The only reason I'm still using it is because of email since
> some websites don't load correctly anymore.  Since they changed that
> reply to list to reply to sender, that has thrown me a serious curve
> ball.  Before mentioning Thunderbird, it has the same default.  I found
> that out while trying to figure out Seamonkey.  So, if I switch from
> Seamonkey for email, it'll be something totally new and may even have
> the same stupid "feature". 
> 
> Maybe one day someone can post in HTML and no one says anything.  o_O 

The only cases I see nowadays of really needing non-HTML mail is a) this
list and b) mutt (or alike terminal MUA) for server mails which is
invariably always text-only anyway...

People who send me mails with excessive HTML just go in my kill file on
Office 365, and it's the company spending $brazillions on that storage,
not me

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Is this working correctly??

2017-08-23 Thread Dale
J. Roeleveld wrote:
> On 23 August 2017 18:49:39 GMT+02:00, Dale  wrote:
>> Thomas Mueller wrote:
>>> You (Dale) seem to have corrected the multipart/alternative problem,
>> except one message (Subject: Re: [gentoo-user] Re: downgrading glibc)
>> where multipart/alternative went through.
>>> I would never design an email client to send multipart/alternative by
>> default, and might design an email client to not support
>> multipart/alternative at all in composed messages.
>>> Tom
>>>
>> Someone pointed out that it likely did that with that message because
>> the message I was replying to was HTML.  It seems that if I reply to a
>> HTML message, it ignores my settings.  I think it should obey the
>> settings regardless myself as settings should override what it is
>> replying too. 
>>
>> At least I know that messages by default are being sent correctly. 
>> That
>> should correct the vast majority of them. 
>>
>> Thanks again to all.
>>
>> Dale
>>
>> :-)  :-) 
> Some mail clients have a different setting for when replying. Maybe you 
> missed that one?
> Or that should be added.
>
> --
> Joost

If it has one, I'm not aware of it and I've looked.  I think it should
follow the settings I have by domain no matter if it is a reply or not. 
Of course, sometimes I just try to apply common sense.  ;-) 

Dale

:-)  :-) 



Re: [gentoo-user] Is this working correctly??

2017-08-23 Thread Dale
Alan McKinnon wrote:
> On 23/08/2017 09:03, Thomas Mueller wrote:
>> You (Dale) seem to have corrected the multipart/alternative problem, except 
>> one message (Subject: Re: [gentoo-user] Re: downgrading glibc) where 
>> multipart/alternative went through.
>>
>> I would never design an email client to send multipart/alternative by 
>> default, and might design an email client to not support 
>> multipart/alternative at all in composed messages.
>
> And that's why your mail client will never rule the world, but Outlook
> and GMail's web interface does.
>
> I think it's high time we techies all got over the HTML thing now. We
> all have high speed internet these days, you can't buy a spinning drive
> smaller than 1TB anymore and apart from a few holdfasts like decent
> Mailman lists (eg this one and kernel.org), email is a thing that idiots
> at work use like it was IM. Most other folks moved on...
>

I tend to agree with that.  Mine shows both plain text and HTML just
fine.  Either one works.  By default, it blocks remote content which
generally results in a somewhat plain text email anyway, until I tell it
to show remote stuff.  The only reason I do set it up this way is for
gentoo.org and kde.org.  Everyone else gets HTML, all the time. 

I suspect the percentage of even Gentoo mailing list users that use
software that can't show HTML is small. I wouldn't be surprised if it is
single digits even.  That said, Seamonkey is starting to rub me the
wrong way.  The only reason I'm still using it is because of email since
some websites don't load correctly anymore.  Since they changed that
reply to list to reply to sender, that has thrown me a serious curve
ball.  Before mentioning Thunderbird, it has the same default.  I found
that out while trying to figure out Seamonkey.  So, if I switch from
Seamonkey for email, it'll be something totally new and may even have
the same stupid "feature". 

Maybe one day someone can post in HTML and no one says anything.  o_O 

Dale

:-)  :-) 



Re: [gentoo-user] Is this working correctly??

2017-08-23 Thread Alan McKinnon
On 23/08/2017 09:03, Thomas Mueller wrote:
> You (Dale) seem to have corrected the multipart/alternative problem, except 
> one message (Subject: Re: [gentoo-user] Re: downgrading glibc) where 
> multipart/alternative went through.
> 
> I would never design an email client to send multipart/alternative by 
> default, and might design an email client to not support 
> multipart/alternative at all in composed messages.


And that's why your mail client will never rule the world, but Outlook
and GMail's web interface does.

I think it's high time we techies all got over the HTML thing now. We
all have high speed internet these days, you can't buy a spinning drive
smaller than 1TB anymore and apart from a few holdfasts like decent
Mailman lists (eg this one and kernel.org), email is a thing that idiots
at work use like it was IM. Most other folks moved on...

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Is this working correctly??

2017-08-23 Thread J. Roeleveld
On 23 August 2017 18:49:39 GMT+02:00, Dale  wrote:
>Thomas Mueller wrote:
>> You (Dale) seem to have corrected the multipart/alternative problem,
>except one message (Subject: Re: [gentoo-user] Re: downgrading glibc)
>where multipart/alternative went through.
>>
>> I would never design an email client to send multipart/alternative by
>default, and might design an email client to not support
>multipart/alternative at all in composed messages.
>>
>> Tom
>>
>
>Someone pointed out that it likely did that with that message because
>the message I was replying to was HTML.  It seems that if I reply to a
>HTML message, it ignores my settings.  I think it should obey the
>settings regardless myself as settings should override what it is
>replying too. 
>
>At least I know that messages by default are being sent correctly. 
>That
>should correct the vast majority of them. 
>
>Thanks again to all.
>
>Dale
>
>:-)  :-) 

Some mail clients have a different setting for when replying. Maybe you missed 
that one?
Or that should be added.

--
Joost
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] Is this working correctly??

2017-08-23 Thread Dale
Thomas Mueller wrote:
> You (Dale) seem to have corrected the multipart/alternative problem, except 
> one message (Subject: Re: [gentoo-user] Re: downgrading glibc) where 
> multipart/alternative went through.
>
> I would never design an email client to send multipart/alternative by 
> default, and might design an email client to not support 
> multipart/alternative at all in composed messages.
>
> Tom
>

Someone pointed out that it likely did that with that message because
the message I was replying to was HTML.  It seems that if I reply to a
HTML message, it ignores my settings.  I think it should obey the
settings regardless myself as settings should override what it is
replying too. 

At least I know that messages by default are being sent correctly.  That
should correct the vast majority of them. 

Thanks again to all.

Dale

:-)  :-) 



Re: [gentoo-user] zfs emerge failure

2017-08-23 Thread John Blinka
On Tue, Aug 15, 2017 at 7:13 PM, John Blinka  wrote:
> On Tue, Aug 15, 2017 at 6:54 PM, John Covici  wrote:
>
>> What is your umask?   I had troubles like this when I had too
>> aggressive umask of I think 027 rather than 022.
>
> It is indeed 027, and I wondered whether that might have been what was
> behind the error, hence I tried chmod -R 777 the entire kernel tree.
> But maybe that mask is doing something nasty during the actual config
> step apart from the kernel tree.  I'll try backing off the umask.
> Thanks!
>
> John

Back at debugging the spl configuration failure after a hiatus.  Tried
a umask of 022.  No change in failed spl configuration.

John



Re: [gentoo-user] No beep.

2017-08-23 Thread Andrew Savchenko
On Mon, 14 Aug 2017 18:22:54 + Alan Mackenzie wrote:
> Hello, Gentoo.
> 
> I've almost got my new(ish) machine up and running.  In particular, I've
> got an email server (s/qmail) running on it, the most difficult part of
> bringing up a new box.
> 
> However, during the building, I discovered to my disgust that there was
> no loudspeaker in my new case.  So, none of the helpful booting beeps
> that the motherboard uses to tell us that something's wrong.  Still, I
> got past that stage.
> 
> But just typing into a virtual tty, sometimes the system (should) beep.
> It doesn't.  It should.
> 
> It should, because I compiled the kernel with CONFIG_SND_HDA_INPUT_BEEP
> and CONFIG_SND_HDA_INPUT_BEEP_MODE set to 1.
> 
> My loudspeakers are working, as shown by running speaker-test.  I'm
> using the kernel I think I am, verified by checking those two config
> settings in /proc/config.gz.
> 
> Would somebody please suggest to me where I am going wrong, here?

If you are using ALSA (I suppose you are), run alsamixer and check
the settings of the "beep" channel, it can be muted or set to 0.

Best regards,
Andrew Savchenko


pgpz9OvoPw0U0.pgp
Description: PGP signature


Re: [gentoo-user] Warnings on shutting down bcache: WARNING: CPU: 1 PID: 4378 at lib/idr.c:383

2017-08-23 Thread Andrew Savchenko
On Tue, 15 Aug 2017 14:07:42 +0200 Håkon Alstadheim wrote:
> I'm getting some noise in my logs when shutting down bcache.
> My system:
> Linux gentoo 4.12.7-gentoo #1 SMP Sun Aug 13 22:56:20 CEST 2017 x86_64
> Intel(R) Xeon(R) CPU E5-2620 v3 @ 2.40GHz GenuineIntel GNU/Linux
> Running as dom0 under Xen-4.9.0
> 
> My shutdown script loops over the bcache devices like so:
> ---
> for f in /sys/fs/bcache/854fc80e-5499-413f-b90b-87a803eaca7e/bdev*; do
> bdev=$(basename $f )
> if [ -e $f/stop ]; then
>   logger -t "init.d/probe-home-partition" -p daemon.warning\
> "Stopping $bdev"
>   einfo "Stopping $bdev"
>   if ! echo 1 > $f/stop ; then
> ewarn "Could not stop $bdev"
> logger -t "init.d/probe-home-partition" -p daemon.warning\
>  "Could not stop $bdev"
>   fi
>   usleep 300
>   sleep 1
> else
>   einfo "$bdev not cached?"
>   logger -t "init.d/probe-home-partition" -p daemon.warning \
> "$bdev not cached ?"
> fi
> done
> 
> -
> This gives me in daemon.log:
> -
> Aug 14 09:31:21 gentoo init.d/probe-home-partition: Stopping bdev15
> Aug 14 09:31:22 gentoo init.d/probe-home-partition: Stopping bdev16
> Aug 14 09:31:23 gentoo init.d/probe-home-partition: Stopping bdev17
> Aug 14 09:31:24 gentoo init.d/probe-home-partition: Stopping bdev18
> Aug 14 09:31:25 gentoo init.d/probe-home-partition: Stopping bdev19
> Aug 14 09:31:26 gentoo init.d/probe-home-partition: Stopping cache set
> -
> But it seems bcache is doing something weird, stopping a device called
> bcache0, which I do not have, before stopping the first of my bcache
> devices. ALL runs of "echo 1 > $device/stop" provoke a warning in
> lib/idr.c on that same line. It may be that my stopping of the bcache
> devices is wrong, un-necessary and misguided, but it should still work
> the way I am doing it, should it not?
> 
> 
> ---kern.log:---
> ...
> [140395.421994] nfsd: last server has exited, flushing export cache
> [140397.011932] XFS (bcache16): Unmounting Filesystem
> [140397.248911] bcache: bcache_device_free() bcache0 stopped
> [140398.300187] bcache: bcache_device_free() bcache16 stopped
> [140398.381951] ida_remove called for id=16 which is not allocated.
> [140398.381975] [ cut here ]
> [140398.381985] WARNING: CPU: 1 PID: 4378 at lib/idr.c:383
> ida_remove+0xde/0xef
> [140398.381987] Modules linked in: xt_physdev iptable_filter ip_tables
> x_tables nfsd auth_rpcgss oid_registry nfsv4 dns_resolver nfsv3 nfs_acl
> iTCO_wdt iTCO_vendor_support binfmt_misc tun usbip_host usbip_core
> pktcdvd xen_wdt xen_blkback intel_rapl amdgpu intel_powerclamp
> crc32c_intel serio_raw drm_kms_helper pcspkr syscopyarea sysfillrect
> sysimgblt fb_sys_fops ttm lpc_ich i2c_i801 snd_hda_codec_realtek drm
> snd_hda_codec_generic bcache snd_usb_audio snd_usbmidi_lib snd_hda_intel
> snd_rawmidi snd_hda_codec snd_seq_device snd_hwdep snd_hda_core snd_pcm
> snd_timer snd cp210x usbserial nct6775 input_leds hwmon_vid shpchp
> ipmi_ssif wmi acpi_power_meter dm_zero dm_thin_pool dm_persistent_data
> dm_bio_prison dm_service_time dm_round_robin dm_queue_length
> dm_multipath dm_log_userspace cn virtio_pci virtio_scsi
> [140398.382056]  virtio_blk virtio_console virtio_balloon xts aes_x86_64
> cbc sha512_generic sha1_generic libiscsi scsi_transport_iscsi macvlan
> virtio_net virtio_ring virtio e1000 fuse overlay nfs lockd grace sunrpc
> fscache jfs multipath linear raid10 raid1 raid0 dm_raid raid456
> async_raid6_recov async_memcpy async_pq async_xor xor async_tx raid6_pq
> dm_snapshot dm_bufio dm_crypt dm_mirror dm_region_hash dm_log dm_mod dax
> hid_sunplus hid_sony hid_samsung hid_pl hid_petalynx hid_monterey
> hid_microsoft hid_logitech ff_memless hid_gyration hid_ezkey hid_cypress
> hid_chicony hid_cherry hid_a4tech sl811_hcd xhci_plat_hcd ohci_pci
> ohci_hcd uhci_hcd aic94xx lpfc qla2xxx aacraid sx8 DAC960 hpsa cciss
> 3w_9xxx 3w_ mptsas mptfc scsi_transport_fc mptspi mptscsih mptbase
> atp870u dc395x qla1280 imm parport dmx3191d
> [140398.382139]  sym53c8xx gdth initio BusLogic arcmsr aic7xxx aic79xx
> sg pdc_adma sata_inic162x sata_mv sata_qstor sata_vsc sata_uli sata_sis
> sata_sx4 sata_nv sata_via sata_svw sata_sil24 sata_sil sata_promise
> pata_sis usbhid led_class igb ptp dca i2c_algo_bit ehci_pci ehci_hcd
> xhci_pci megaraid_sas xhci_hcd
> [140398.382175] CPU: 1 PID: 4378 Comm: kworker/1:2 Not tainted
> 4.12.6-gentoo #1
> [140398.382177] Hardware name: ASUSTeK COMPUTER INC. Z10PE-D8
> WS/Z10PE-D8 WS, BIOS 3407 03/10/2017
> [140398.382190] Workqueue: events cached_dev_free [bcache]
> [140398.382193] task: 880216b24240 task.stack: c900431e4000
> [140398.382197] RIP: e030:ida_remove+0xde/0xef
> [140398.382199] RSP: e02b:c900431e7db0 EFLAGS: 00010082
> [140398.382202] RAX: 0033 RBX: 0012 RCX:
> 
> [140398.382204] RDX: 880249654450 RSI: 88024964dc08 RDI:
> 88024964dc08
> [140398.382205] RBP: c900431e7e10 

Re: [gentoo-user] zfs emerge failure

2017-08-23 Thread John Blinka
On Tue, Aug 15, 2017 at 7:14 PM, John Blinka  wrote:
> On Tue, Aug 15, 2017 at 6:51 PM, Rich Freeman  wrote:
>>
>> Yes, and in fact it is in the output when emerge fails:
>>  /var/tmp/portage/sys-kernel/spl-0.7.1/work/spl-0.7.1/config.log
>

Digging into config.log after a hiatus to attend to other demands of
life.  Comparing config.log output to the code in the corresponding
"configure" script was a little enlightening - at least it was clear
what the configure script was trying to do when it failed.   In
anticipation of throwing some echo statements into a modified script
to help debug further, I tried to see if the configure script could be
invoked using the command line arguments documented in config.log.  To
my surprise, when invoking configure that way, the script proceeded to
completion without any problems.  There's a clue.  Executing on the
command line as user root and group root leads to success, and
executing through portage as portage:portage (judging from the
ownership of files in
/var/tmp/portage/sys-kernel/spl-0.7.1/work/spl-0.7.1) leads to
failure.

Thanks for the hint. back to debugging.

John



Re: [gentoo-user] Re: Something started muting the sound

2017-08-23 Thread Andrew Savchenko
On Sat, 12 Aug 2017 11:43:24 -0700 Ian Zimmerman wrote:
> On 2017-08-12 13:21, John Covici wrote:
> 
> > How about checking the various volumes rather than muting maybe some
> > of them are 0 or rather some negative number or something?  Also, you
> > might delete the asound.state and let the system start over.  Last
> > resort, there is an alsa users mailing list.
> > 
> > One other thought, get pulse audio out of the way and see if alsa is
> > working.
> 
> To clarify: it works for me (TM), I don't need a solution.  I am just
> curious because I don't heed the warning and it still works.

The warning is about old days when alsa init script loaded required
kernel modules for your audio to work. These days kernel does the
job well and it can autoload modules based on device IDs. So loading
modules by alsa init script is no longer needed in general case and
was removed.

The warning is here is for the people with special setups (e.g. out
of the tree modules) updating from very old systems.

Best regards,
Andrew Savchenko


pgp88LkgWGSge.pgp
Description: PGP signature


Re: [gentoo-user] Is this working correctly??

2017-08-23 Thread Alan McKinnon
On 22/08/2017 17:41, Dale wrote:
> Alan McKinnon wrote:
>> On 22/08/2017 15:01, Dale wrote:
>>> Howdy,
>>>
>>> I have this set to send text only for gentoo.org and kde.org.  Someone
>>> replied making me think it is not doing as instructed, even tho settings
>>> says it is.  Can someone tell me for sure and certain that this is
>>> sending as it should?  Text only I hope. 
>> I see 3 problems with your mail, but content-type is not one of them :-)
>> That is set to text only, exactly as you intended
>>
>>
> 
> What would those be?  Maybe I can change a setting and fix it. 
> 
> Dale
> 
> :-)  :-) 
> 

what Mick said :-)


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] Is this working correctly??

2017-08-23 Thread Thomas Mueller
You (Dale) seem to have corrected the multipart/alternative problem, except one 
message (Subject: Re: [gentoo-user] Re: downgrading glibc) where 
multipart/alternative went through.

I would never design an email client to send multipart/alternative by default, 
and might design an email client to not support multipart/alternative at all in 
composed messages.

Tom