[gentoo-user] installing Gentoo as a xen guest

2015-09-24 Thread hw


Hi,

I'm installing Gentoo as a xen PV guest.  Do I need to install a 
bootloader like grub, or should I rather just specify the kernel to boot 
in the definition file of the guest?  If I do the latter, what about the 
kernel command line?


Is there anything I should consider?  The host is also running Gentoo.



[gentoo-user] Why ghc-bin is pulled in by portage update?

2015-09-24 Thread gevisz
I have dev-lang/ghc in my world file.

Today, while updating the system, the portage
wanted to update it. Ok. But why it pulles in
ghc-bin-7.8.4-amd64.tbz2?

# emerge --update --deep --with-bdeps=y --newuse --backtrack=90 --ask world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild U  ] dev-lang/ghc-7.8.4 [7.6.3-r1]

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-lang/ghc-7.8.4::gentoo
>>> Downloading 
>>> 'http://mirror.netcologne.de/gentoo/distfiles/ghc-7.8.4-src.tar.bz2'
--2015-09-24 14:11:04--
http://mirror.netcologne.de/gentoo/distfiles/ghc-7.8.4-src.tar.bz2
Resolving mirror.netcologne.de... 194.8.197.22, 2001:4dd0:1234:1::deb
Connecting to mirror.netcologne.de|194.8.197.22|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10600755 (10M) [application/octet-stream]
Saving to: '/usr/portage/distfiles/ghc-7.8.4-src.tar.bz2'

/usr/portage/distfi 100%[=>]  10.11M   181KB/s   in 58s

2015-09-24 14:12:02 (179 KB/s) -
'/usr/portage/distfiles/ghc-7.8.4-src.tar.bz2' saved
[10600755/10600755]

 * ghc-7.8.4-src.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...

 [ ok ]
>>> Downloading 
>>> 'http://mirror.netcologne.de/gentoo/distfiles/ghc-bin-7.8.4-amd64.tbz2'
--2015-09-24 14:12:02--
http://mirror.netcologne.de/gentoo/distfiles/ghc-bin-7.8.4-amd64.tbz2
Resolving mirror.netcologne.de... 194.8.197.22, 2001:4dd0:1234:1::deb
Connecting to mirror.netcologne.de|194.8.197.22|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 100573133 (96M) [application/octet-stream]
Saving to: '/usr/portage/distfiles/ghc-bin-7.8.4-amd64.tbz2'

/usr/portage/distfi 100%[=>]  95.91M   193KB/s   in 9m 54s

2015-09-24 14:21:56 (165 KB/s) -
'/usr/portage/distfiles/ghc-bin-7.8.4-amd64.tbz2' saved
[100573133/100573133]



Re: [gentoo-user] Why ghc-bin is pulled in by portage update?

2015-09-24 Thread Alec Ten Harmsel
On Thu, Sep 24, 2015 at 02:27:43PM +0300, gevisz wrote:
> I have dev-lang/ghc in my world file.
> 
> Today, while updating the system, the portage
> wanted to update it. Ok. But why it pulles in
> ghc-bin-7.8.4-amd64.tbz2?

Like all good language authors, the ghc authors wrote a lot of the
language and toolchain in Haskell, so you need a Haskell compiler to
compile ghc.

> >>> Downloading 
> >>> 'http://mirror.netcologne.de/gentoo/distfiles/ghc-bin-7.8.4-amd64.tbz2'
> --2015-09-24 14:12:02--
> http://mirror.netcologne.de/gentoo/distfiles/ghc-bin-7.8.4-amd64.tbz2
> Resolving mirror.netcologne.de... 194.8.197.22, 2001:4dd0:1234:1::deb
> Connecting to mirror.netcologne.de|194.8.197.22|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 100573133 (96M) [application/octet-stream]
> Saving to: '/usr/portage/distfiles/ghc-bin-7.8.4-amd64.tbz2'
> 
> /usr/portage/distfi 100%[=>]  95.91M   193KB/s   in 9m 54s
> 
> 2015-09-24 14:21:56 (165 KB/s) -
> '/usr/portage/distfiles/ghc-bin-7.8.4-amd64.tbz2' saved
> [100573133/100573133]
> 

There is a 'ghcbootstrap' USE flag that you can set to use your locally
installed ghc to build the new ghc.

Alec



Re: [gentoo-user] Why ghc-bin is pulled in by portage update?

2015-09-24 Thread gevisz
2015-09-24 14:38 GMT+03:00 Alec Ten Harmsel :
> On Thu, Sep 24, 2015 at 02:27:43PM +0300, gevisz wrote:
>> I have dev-lang/ghc in my world file.
>>
>> Today, while updating the system, the portage
>> wanted to update it. Ok. But why it pulles in
>> ghc-bin-7.8.4-amd64.tbz2?
>
> Like all good language authors, the ghc authors wrote a lot of the
> language and toolchain in Haskell, so you need a Haskell compiler to
> compile ghc.
>
>> >>> Downloading 
>> >>> 'http://mirror.netcologne.de/gentoo/distfiles/ghc-bin-7.8.4-amd64.tbz2'
>> --2015-09-24 14:12:02--
>> http://mirror.netcologne.de/gentoo/distfiles/ghc-bin-7.8.4-amd64.tbz2
>> Resolving mirror.netcologne.de... 194.8.197.22, 2001:4dd0:1234:1::deb
>> Connecting to mirror.netcologne.de|194.8.197.22|:80... connected.
>> HTTP request sent, awaiting response... 200 OK
>> Length: 100573133 (96M) [application/octet-stream]
>> Saving to: '/usr/portage/distfiles/ghc-bin-7.8.4-amd64.tbz2'
>>
>> /usr/portage/distfi 100%[=>]  95.91M   193KB/s   in 9m 
>> 54s
>>
>> 2015-09-24 14:21:56 (165 KB/s) -
>> '/usr/portage/distfiles/ghc-bin-7.8.4-amd64.tbz2' saved
>> [100573133/100573133]
>>
>
> There is a 'ghcbootstrap' USE flag that you can set to use your locally
> installed ghc to build the new ghc.

Ok. Thank you for information.



Re: [gentoo-user] installing Gentoo as a xen guest

2015-09-24 Thread Rich Freeman
On Thu, Sep 24, 2015 at 6:05 AM, hw  wrote:
>
> Hi,
>
> I'm installing Gentoo as a xen PV guest.  Do I need to install a bootloader
> like grub, or should I rather just specify the kernel to boot in the
> definition file of the guest?  If I do the latter, what about the kernel
> command line?
>
> Is there anything I should consider?  The host is also running Gentoo.
>

You can do either.  I suspect it would be easier to just use grub.  I
don't know if xen provides a way to provide a command-line, if not you
could build a default command-line into your kernel.

I haven't messed with it recently, but some of my docs on running
Gentoo on EC2 might be useful, since EC2 is ultimately running xen
guests.  Other than using the right kernel settings for xen support in
your guest there really isn't much needed to get it working with
Gentoo.  Most of my write-ups were about the Amazon process (creating
disk images, configuring grub.cfg for Amazon's grub and device
numbering, etc).

-- 
Rich



Re: [gentoo-user] installing Gentoo as a xen guest

2015-09-24 Thread J. Roeleveld
On 24 September 2015 12:05:31 CEST, hw  wrote:
>
>Hi,
>
>I'm installing Gentoo as a xen PV guest.  Do I need to install a 
>bootloader like grub, or should I rather just specify the kernel to
>boot 
>in the definition file of the guest?  If I do the latter, what about
>the 
>kernel command line?
>
>Is there anything I should consider?  The host is also running Gentoo.

For PVs, I put the kernel on the host and specify it in the domain config. 
(Including the kernel commandline)

I only install the kernel and grub inside the VM for non PV domains.

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



Re: [gentoo-user] installing Gentoo as a xen guest

2015-09-24 Thread J. Roeleveld
On 24 September 2015 14:53:07 CEST, Rich Freeman  wrote:
>On Thu, Sep 24, 2015 at 6:05 AM, hw  wrote:
>>
>> Hi,
>>
>> I'm installing Gentoo as a xen PV guest.  Do I need to install a
>bootloader
>> like grub, or should I rather just specify the kernel to boot in the
>> definition file of the guest?  If I do the latter, what about the
>kernel
>> command line?
>>
>> Is there anything I should consider?  The host is also running
>Gentoo.
>>
>
>You can do either.  I suspect it would be easier to just use grub.  I
>don't know if xen provides a way to provide a command-line, if not you
>could build a default command-line into your kernel.

For PV, grub is actually more work to get working. There is a config option for 
the commandline.
I will send one of mine later today.

>I haven't messed with it recently, but some of my docs on running
>Gentoo on EC2 might be useful, since EC2 is ultimately running xen
>guests.  Other than using the right kernel settings for xen support in
>your guest there really isn't much needed to get it working with
>Gentoo.  Most of my write-ups were about the Amazon process (creating
>disk images, configuring grub.cfg for Amazon's grub and device
>numbering, etc).

Does EC2 actually provide PV guests?
With PV, the guest knows it's a guest and communicates with Xen. Non-PV has an 
emulation layer (qemu) running on the host that hides the virtualisation from 
the guest.
Special drivers on the guest can help with performance, but isn't necessary to 
get it to work.

--
Joost


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



Re: [gentoo-user] installing Gentoo as a xen guest

2015-09-24 Thread Håkon Alstadheim
Den 24. sep. 2015 14:53, skrev Rich Freeman:
> On Thu, Sep 24, 2015 at 6:05 AM, hw  wrote:
>> Hi,
>>
>> I'm installing Gentoo as a xen PV guest.  Do I need to install a bootloader
>> like grub, or should I rather just specify the kernel to boot in the
>> definition file of the guest?  If I do the latter, what about the kernel
>> command line?
>>
>> Is there anything I should consider?  The host is also running Gentoo.
>>
> You can do either.  I suspect it would be easier to just use grub.  I
> don't know if xen provides a way to provide a command-line, if not you
> could build a default command-line into your kernel.
>
Depending on your hardware you will want to use hvm or pvm for
efficiency. (VT-x means hvm is more efficient). If running hvm on
quemu-xen-traditional, you HAVE to use a bootloader inside the VM, or
some kind of netboot/pvgrub thing. If running upstream quemu for a hvm,
you can choose. I find it less of a hassle to use bootloader inside the
VM. If running pv, I BELIEVE you have to specify kernel and boot options
outside the VM-image, possibly through pvgrub. Pvgrub is supposed to be
able to fish out kernel and initrd from the VM disk. I never bothered to
get that working. Here is an example excerpt from a PVM I use (for a
debian vm):
--print.pvm---
builder = "generic"
kernel = "/etc/xen/wheezy/vmlinuz-3.16.0-0.bpo.4-amd64"
ramdisk = "/etc/xen/wheezy/initrd.img-3.16.0-0.bpo.4-amd64"
extra = "root=/dev/xvda console=hvc0 tmem"
--
For explanation check "man xl.cfg". When you specify
kernel&ramdisk¶meters in the vm config, you do NOT need a /boot/
directory on your vm.  Obviously when you build a kernel inside the vm,
it will end up in /boot, so you have to provide a way for the
dom0/hypervisor to load your kernel, either (when using full
virtualization) a regular boot-loader inside the vm, or (for a PV guest)
through some other means to let the dom0/hypervisor load your image.




Re: [gentoo-user] installing Gentoo as a xen guest

2015-09-24 Thread Rich Freeman
On Thu, Sep 24, 2015 at 9:22 AM, J. Roeleveld  wrote:
>
> For PV, grub is actually more work to get working. There is a config option 
> for the commandline.
> I will send one of mine later today.

I can believe that.  My only experience is with Amazon, which doesn't
give you any control over the host xen.  It just runs grub with a
grub.cfg you provide if you want to run your own kernel (unless that
has changed).

>
> Does EC2 actually provide PV guests?
> With PV, the guest knows it's a guest and communicates with Xen. Non-PV has 
> an emulation layer (qemu) running on the host that hides the virtualisation 
> from the guest.
> Special drivers on the guest can help with performance, but isn't necessary 
> to get it to work.

I believe that EC2 ONLY provides PV guests.  I don't believe it will
do full virtualization for linux guests.  They do provide windows
guests, and I'm not sure of the details of how that is done.  If you
want to run a linux guest you either use one of their kernels, or you
can run your own as long as it supports Xen PV.

-- 
Rich



Re: [gentoo-user] installing Gentoo as a xen guest

2015-09-24 Thread J. Roeleveld
On Thursday, September 24, 2015 09:45:09 AM Rich Freeman wrote:
> On Thu, Sep 24, 2015 at 9:22 AM, J. Roeleveld  wrote:
> > For PV, grub is actually more work to get working. There is a config
> > option for the commandline. I will send one of mine later today.

Please see email from Håkon Alstadheim for the example.

> I can believe that.  My only experience is with Amazon, which doesn't
> give you any control over the host xen.  It just runs grub with a
> grub.cfg you provide if you want to run your own kernel (unless that
> has changed).

Sounds like pvgrub. I never looked into setting that up, afaiui, it mounts the 
guest filesystem, grabs the grub.cfg, grabs the kernel listed there, umounts, 
then boots the guest.

> > Does EC2 actually provide PV guests?
> > With PV, the guest knows it's a guest and communicates with Xen. Non-PV
> > has an emulation layer (qemu) running on the host that hides the
> > virtualisation from the guest. Special drivers on the guest can help with
> > performance, but isn't necessary to get it to work.
> I believe that EC2 ONLY provides PV guests.  I don't believe it will
> do full virtualization for linux guests.  They do provide windows
> guests, and I'm not sure of the details of how that is done.  If you
> want to run a linux guest you either use one of their kernels, or you
> can run your own as long as it supports Xen PV.

Windows guests will run in PVH mode as I doubt Microsoft has a PV-enabled 
kernel available for Amazon :)

--
Joost



Re: [gentoo-user] Re: new machine : case + power

2015-09-24 Thread Volker Armin Hemmann
Am 17.09.2015 um 05:38 schrieb james:
> Philip Webb  ca.inter.net> writes:
>
>
>>   150914 CPU : AMD X8 FX8370E 8-core 4,3 GHz 16 MB 32 nm 95 W 
>  I have 3) FX8350. Outstanding performance for the cost. Love them all.
>
>
>
>>   150914 Mobo : Gigabyte GA-970A-UD3P 970+SB950 DDR3 2000  :  119.99
>>   2x PCI-Express x16 GLAN 6xSATA 6.0 Gb/s 4xUSB 3.0 14xUSB 2.0
> I have (3) of the Ggiabyte 990A-UD3P mobos:: I love mine
>
> Very extensive wiring needs, plus you have to match the video card 
> power needs to the power supply. None of my older PS would fit the bill.
> Also, there has been a quiet revolution in power supply. The efficiency
> of the switching circuits will save you more money in the long run
> and those electronics will deliver the cleanest power to your other 
> electronics. PS have ratings so look at the efficiency and oversizing a bit
> from calculated loads is never a bad idea. 
> I would recommend to 'not go cheap' on the PS. Becuase
> 4+ GHz can create some very localized heats, I put a 'water cooler'
> on the chip that has hoses running to a radiaor bolted on the the main rear
> fan of the Case. A wise investment at 4.3GHz. Air cooled CPUs are suspect
> at those frequencies, particular if you like to compile  lots of code
> or stress the all the cores at the same time.
>
>
>
>
>>   150914 Memory : Kingston HyperX Fury 8 GB DDR3 1866 MHz CL10 :   68.99
> I always max ram in lieu of SSD. I know you have a budget but max
> ram is the single biggest item on performance and most things are 
> memory constrained on processing, ymmv.
>
> Every thing else look for bargains. Newegg is a great place to vett prices.
>
> Make sure your case has a big and quite fan to draw air across the HD. Most
> new cases do. In all you buy, check the dB (sound level) especially if
> you want a quite rig to sit near you. Make sure the UPS you have is 
> adequate and tested. Put a large light on the UPS. Yank the power cord
> of the UPS to the wall and you should not see a flicker nor deeming
> of the light of the bulb; thats a good UPS. UPS protects ALL your
> electronics, but never printers as their power draw surges can easily
> fry a smaller UPS.
>
> hth,
> James
>
>
>
>
>
I have a 125w CPU and a R7 370 plus a shitload of HDDs and all those are
quite happily fed by a 450W PSU. A pretty old 450W BeQuiet PSU.

Go figure.

What does my 600VA UPS says about this?
27% load at the moment.




Re: [gentoo-user] installing Gentoo as a xen guest

2015-09-24 Thread Rich Freeman
On Thu, Sep 24, 2015 at 9:50 AM, J. Roeleveld  wrote:
>
> Sounds like pvgrub. I never looked into setting that up, afaiui, it mounts the
> guest filesystem, grabs the grub.cfg, grabs the kernel listed there, umounts,
> then boots the guest.
>

Indeed, that is exactly the behavior Amazon has, and I'm pretty sure
their "logs" show pvgrub in the output.

>From their standpoint it probably gives them a really easy way to make
guest filesystems self-contained without the need to tweak the
hypervisor environment to make each guest run.


-- 
Rich



Re: [gentoo-user] Re: new machine : case + power

2015-09-24 Thread Alan McKinnon
On 24/09/2015 16:00, Volker Armin Hemmann wrote:
> Am 17.09.2015 um 05:38 schrieb james:
>> Philip Webb  ca.inter.net> writes:
>>
>>
>>>   150914 CPU : AMD X8 FX8370E 8-core 4,3 GHz 16 MB 32 nm 95 W 
>>  I have 3) FX8350. Outstanding performance for the cost. Love them all.
>>
>>
>>
>>>   150914 Mobo : Gigabyte GA-970A-UD3P 970+SB950 DDR3 2000  :  119.99
>>>   2x PCI-Express x16 GLAN 6xSATA 6.0 Gb/s 4xUSB 3.0 14xUSB 2.0
>> I have (3) of the Ggiabyte 990A-UD3P mobos:: I love mine
>>
>> Very extensive wiring needs, plus you have to match the video card 
>> power needs to the power supply. None of my older PS would fit the bill.
>> Also, there has been a quiet revolution in power supply. The efficiency
>> of the switching circuits will save you more money in the long run
>> and those electronics will deliver the cleanest power to your other 
>> electronics. PS have ratings so look at the efficiency and oversizing a bit
>> from calculated loads is never a bad idea. 
>> I would recommend to 'not go cheap' on the PS. Becuase
>> 4+ GHz can create some very localized heats, I put a 'water cooler'
>> on the chip that has hoses running to a radiaor bolted on the the main rear
>> fan of the Case. A wise investment at 4.3GHz. Air cooled CPUs are suspect
>> at those frequencies, particular if you like to compile  lots of code
>> or stress the all the cores at the same time.
>>
>>
>>
>>
>>>   150914 Memory : Kingston HyperX Fury 8 GB DDR3 1866 MHz CL10 :   68.99
>> I always max ram in lieu of SSD. I know you have a budget but max
>> ram is the single biggest item on performance and most things are 
>> memory constrained on processing, ymmv.
>>
>> Every thing else look for bargains. Newegg is a great place to vett prices.
>>
>> Make sure your case has a big and quite fan to draw air across the HD. Most
>> new cases do. In all you buy, check the dB (sound level) especially if
>> you want a quite rig to sit near you. Make sure the UPS you have is 
>> adequate and tested. Put a large light on the UPS. Yank the power cord
>> of the UPS to the wall and you should not see a flicker nor deeming
>> of the light of the bulb; thats a good UPS. UPS protects ALL your
>> electronics, but never printers as their power draw surges can easily
>> fry a smaller UPS.
>>
>> hth,
>> James
>>
>>
>>
>>
>>
> I have a 125w CPU and a R7 370 plus a shitload of HDDs and all those are
> quite happily fed by a 450W PSU. A pretty old 450W BeQuiet PSU.
> 
> Go figure.
> 
> What does my 600VA UPS says about this?
> 27% load at the moment.


That's all as expected. There's also this thing we called headroom:

As I said in an earlier mail, and got an earful for my trouble, a 125W
CPU does not draw 125W all the time and your 450W psu does not deliver
450W all the time. Your PSU is delivering about 125W or so average which
is what I expect from that hardware.

But computers are not nice well behaved LED bulbs that draw constant
power that never varies. The CPU ramps up to full S1 state, hard drives
spin up and that causes power draw to surge and spike. How much does it
need? Hard to give a definite answer but easily 5 or 6 times the
average, especially spinning up drives that spun down. You can see these
spikes on lab power meters, ones with screens and graphs. That's what
the headroom is for - how much extra power can be delivered in very
brief spikes (<100ms or so) when the hardware really needs it?

If the PSU is weak in this area and can't deliver the full power, the
load will still try to draw the current, and the voltage must drop to
compensate. Simple physics. Either way, your 450W PSU might not be up to
the job when push really comes to shove for your hardware.


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




Re: [gentoo-user] Endless preserved-rebuild loop, libmozalloc & more

2015-09-24 Thread Fernando Rodriguez
On Tuesday, August 25, 2015 7:58:44 PM Alan McKinnon wrote:
> On 25/08/2015 19:43, Fernando Rodriguez wrote:
> > On Tuesday, August 25, 2015 12:30:09 PM Alan McKinnon wrote:
> >> On 25/08/2015 04:28, Fernando Rodriguez wrote:
> >>> On Monday, August 24, 2015 9:31:38 PM Alan McKinnon wrote:
>  Does anyone have an opinion to offer on bug 501468?
> 
>  https://bugs.gentoo.org/show_bug.cgi?id=501468
> 
>  It's been annoying me for a week now with this message:
> 
>  !!! existing preserved libs:
> >>> package: www-client/firefox-40.0.2
>   *  - /usr/lib64/firefox/libmozalloc.so
>   *  used by /usr/lib64/thunderbird/components/libdbusservice.so
>  (mail-client/thunderbird-38.2.0)
>   *  used by /usr/lib64/thunderbird/components/libmozgnome.so
>  (mail-client/thunderbird-38.2.0)
>   *  used by
>  /usr/lib64/thunderbird/distribution/extensions/{e2fda1a4-762b-4020-
b5ad-
> >>> a41df1933103}/components/libcalbasecomps.so
>  (mail-client/thunderbird-38.2.0)
>   *  used by 4 other files
> 
> 
>  Both Mozilla products ship this file:
> 
>  $ locate libmozalloc
>  /usr/lib64/firefox/libmozalloc.so
>  /usr/lib64/thunderbird/libmozalloc.so
> 
>  and according to preserved libs, thunderbird linked to the firefox copy.
>  The only offered solution on the bug is to use a MASK variable, which
>  seems to me an ugly hammer to swat a fly.
> 
>  I was wondering if there's a better way been developed in the last 
year.
> >>>
> >>> Actually, now I have a general idea of what's going on and that sounds 
> > like an 
> >>> acceptable solution but perhaps I could be better. This is what happens:
> >>>
> >>> 1. revdep-rebuild uses ldd to find breakage. It finds breakage in 
> >>> libdbusservice.so because firefox uses tricks to preload the library from 
> > it's 
> >>> directory.
> >>> 2. revdep-rebuild find that thunderbird provides the library and thinks 
it 
> >>> needs to be rebuild. (And wrongly tells you that firefox links against 
it).
> >>>
> >>> A better way would be:
> >>>
> >>> 1. same as step 1 above
> >>> 2. revdep-rebuild checks the package that provides the broken binary (in 
> > this 
> >>> case the firefox package), if this package also provides the missing 
> > library 
> >>> then it's safe to ignore the problem.
> >>> 3. same as step 2 above.
> >>>
> >>> Another solution is to make patch firefox to use RPATH so ldd can find 
> >>> the 
> >>> labraries, this would also make prelink work better with firefox but it's 
> >>> probably not ideal to mantain.
> >>
> >>
> >> that does make sense. In my case, it's not revdep-rebuild causing
> >> problems, it's the preserved-rebuild message at the end of emerge -v
> >>
> >> At this level is there a difference?
> > 
> > I don't know the details but it seems to me that portage either uses 
revdep-
> > rebuild to find breakage (without scanning the whole system) before 
deleting 
> > the old libs for good or duplicates some of it's logic. Come to think of 
it, 
> > the SEARCH_DIR_MASK may not be ideal because if I understand what it does 
> > correctly then real breakage in firefox won't be detected.
> > 
> 
> My thought too. To me, SEARCH_DIR_MASK is fine for things like
> /opt/skype because it's binary and either works or it doesn't, and when
> it doesn't there's not much I can do about it.
> 
> It may be the least sucky of all available solutions, but it's still
> swatting a fly with a hammer

I may have found  a better solution. I patched my ebuild [1], but you should 
be able to just add the following to LDFLAGS in /etc/portage/env:

Wl,-rpath,/usr/lib/firefox,-rpath,/usr/lib/firefox/components,-
rpath,/usr/lib/browser/components

If you do the same for thunderbird (adjusting the library dirs) you should be 
able to remove the SEARCH_DIR_MASK. I also patched the ebuild not to install 
that file on /etc/revdep-rebuild. If you use prelink firefox will start a 
little 
faster on a slow machine.

You can tell if it worked by running:

# ldd /usr/lib/firefox/components/libdbusservice.so | grep libxul

It should output something like:

libxul.so => /usr/lib64/firefox/libxul.so (0x7fcc22eb8000)

instead of:

libxul.so => not found


[1] 
https://github.com/fernando-rodriguez/portage-overlay/blob/master/www-client/firefox/firefox-41.0.ebuild#L254
-- 
Fernando Rodriguez



Re: [gentoo-user] Re: new machine : case + power

2015-09-24 Thread Volker Armin Hemmann
Am 24.09.2015 um 18:12 schrieb Alan McKinnon:
> On 24/09/2015 16:00, Volker Armin Hemmann wrote:
>> Am 17.09.2015 um 05:38 schrieb james:
>>> Philip Webb  ca.inter.net> writes:
>>>
>>>
   150914 CPU : AMD X8 FX8370E 8-core 4,3 GHz 16 MB 32 nm 95 W 
>>>  I have 3) FX8350. Outstanding performance for the cost. Love them all.
>>>
>>>
>>>
   150914 Mobo : Gigabyte GA-970A-UD3P 970+SB950 DDR3 2000  :  119.99
   2x PCI-Express x16 GLAN 6xSATA 6.0 Gb/s 4xUSB 3.0 14xUSB 2.0
>>> I have (3) of the Ggiabyte 990A-UD3P mobos:: I love mine
>>>
>>> Very extensive wiring needs, plus you have to match the video card 
>>> power needs to the power supply. None of my older PS would fit the bill.
>>> Also, there has been a quiet revolution in power supply. The efficiency
>>> of the switching circuits will save you more money in the long run
>>> and those electronics will deliver the cleanest power to your other 
>>> electronics. PS have ratings so look at the efficiency and oversizing a bit
>>> from calculated loads is never a bad idea. 
>>> I would recommend to 'not go cheap' on the PS. Becuase
>>> 4+ GHz can create some very localized heats, I put a 'water cooler'
>>> on the chip that has hoses running to a radiaor bolted on the the main rear
>>> fan of the Case. A wise investment at 4.3GHz. Air cooled CPUs are suspect
>>> at those frequencies, particular if you like to compile  lots of code
>>> or stress the all the cores at the same time.
>>>
>>>
>>>
>>>
   150914 Memory : Kingston HyperX Fury 8 GB DDR3 1866 MHz CL10 :   68.99
>>> I always max ram in lieu of SSD. I know you have a budget but max
>>> ram is the single biggest item on performance and most things are 
>>> memory constrained on processing, ymmv.
>>>
>>> Every thing else look for bargains. Newegg is a great place to vett prices.
>>>
>>> Make sure your case has a big and quite fan to draw air across the HD. Most
>>> new cases do. In all you buy, check the dB (sound level) especially if
>>> you want a quite rig to sit near you. Make sure the UPS you have is 
>>> adequate and tested. Put a large light on the UPS. Yank the power cord
>>> of the UPS to the wall and you should not see a flicker nor deeming
>>> of the light of the bulb; thats a good UPS. UPS protects ALL your
>>> electronics, but never printers as their power draw surges can easily
>>> fry a smaller UPS.
>>>
>>> hth,
>>> James
>>>
>>>
>>>
>>>
>>>
>> I have a 125w CPU and a R7 370 plus a shitload of HDDs and all those are
>> quite happily fed by a 450W PSU. A pretty old 450W BeQuiet PSU.
>>
>> Go figure.
>>
>> What does my 600VA UPS says about this?
>> 27% load at the moment.
>
> That's all as expected. There's also this thing we called headroom:
>
> As I said in an earlier mail, and got an earful for my trouble, a 125W
> CPU does not draw 125W all the time and your 450W psu does not deliver
> 450W all the time. Your PSU is delivering about 125W or so average which
> is what I expect from that hardware.
>
> But computers are not nice well behaved LED bulbs that draw constant
> power that never varies. The CPU ramps up to full S1 state, hard drives
> spin up and that causes power draw to surge and spike. How much does it
> need? Hard to give a definite answer but easily 5 or 6 times the
> average, especially spinning up drives that spun down. You can see these
> spikes on lab power meters, ones with screens and graphs. That's what
> the headroom is for - how much extra power can be delivered in very
> brief spikes (<100ms or so) when the hardware really needs it?
>
> If the PSU is weak in this area and can't deliver the full power, the
> load will still try to draw the current, and the voltage must drop to
> compensate. Simple physics. Either way, your 450W PSU might not be up to
> the job when push really comes to shove for your hardware.
>
>

a) I know what happens if you have a bad PSU. That is why I am using
BeQuiet.

b) those 27% include the monitor and router.

b) I know how much my computer draws at full load. 300W. Absolut
maximum. All inclusive. Screen, fritzbox, powered usb hubs, computer
itself. 3



[gentoo-user] [OT] Canek's youtube channel

2015-09-24 Thread walt
A few days ago, one of Neil's replies in this list (gentoo-user)
reminded me that Canek disappeared some time ago after being very
active for quite a long time.

Just today (24 Sept) I suddenly remembered Neil's comment and I
decided to ask if anyone here had heard from Canek off-list.

But no.  I decided that asking someone to google it for me is too easy.
I'm all grown up now:  I'll google it for myself:

https://www.youtube.com/user/canekpelaez

Here's the strange part: notice that yesterday (23 Sept) he 'liked' a
video introduction to gnome 3.18 -- after years of posting nothing to
his youtube channel that even remotely relates to computing.

Why did he post that link yesterday, and why did I decide today to
google for canek?  I have no idea, but the timing is, um , interesting.

Canek, are you still lurking here?  Please come back to us :)





Re: [gentoo-user] [OT] Canek's youtube channel

2015-09-24 Thread Canek Peláez Valdés
On Thu, Sep 24, 2015 at 8:07 PM, walt  wrote:
[ ... ]
> Canek, are you still lurking here?  Please come back to us :)

(This is personal and definitely off-topic, so please skip if you are
not interested).

I'm still here, and I sill read almost all top posts (but I don't
follow most threads). Thanks for the concern.

I've got my tenure track at UNAM (which is kinda big deal here in
Mexico). I've been swamped in work for the last five months, and it's
gonna be that way for at least until the end of the year, probably
more.

As for my lack of participation on the list, if you have noticed
almost no GNOME/systemd questions are asked on the list anymore, and I
attribute it to the excellent work done by the corresponding teams of
Gentoo devs. The growing pains we had when systemd was introduced are
basically over, and running Gentoo with it is easy as pie nowadays.
And I still maintain that for years it was easier to run systemd on
Gentoo than on many other distributions.

Certainly I haven't had any problems at all since a very long time.

On top of that, and because of my workload, I set almost all the
packages in all my machines to stable; basically I only have
vanilla-sources and dracut in ~amd64. Therefore, I cannot be of much
help to someone running systemd 227 when I myself run 218. The same
applies to GNOME; I just updated to 3.16 on September 13.

At some point my workload will stabilize (I hope!), and I intend to
get back to experiment with unstable packages and participating on the
list. Also, and since I will have an stable job until I die/retire
(for almost all practical purposes), I hope to finally start the
process to become a Gentoo developer myself.

Thanks again for asking.

Regards.
--
Canek Peláez Valdés
Profesor de asignatura, Facultad de Ciencias
Universidad Nacional Autónoma de México