Re: [gentoo-user] Re: evdev broken?

2011-07-20 Thread Mick
On Wednesday 20 Jul 2011 04:38:37 Francisco Ares wrote:
 On Wed, Jul 20, 2011 at 12:10 AM, Francisco Ares fra...@gmail.com wrote:
  On Wed, Jul 20, 2011 at 12:05 AM, Grant Edwards
  grant.b.edwa...@gmail.com
  
   wrote:
  On 2011-07-20, Francisco Ares fra...@gmail.com wrote:
   Hi, All
   
   Recently, after blindingly emerging world, X11/Xorg stopped to accept
  
  mouse
  
   and keyboard events. After some ways to figure out what was going on,
   I found that it seems related to evdev.
   
   Anybody noticed something like that? The xorg-server package (or
   xorg-drivers, can't remember nor check now, because I had to use
   Windows
   
  :-(  ) is being built with evdev flag, but there is an error in the
  :log
  :
   file about evdev could not be found, as long as dri and dri2. I am
  
  using
  
   nvidia proprietary video driver.
  
  You probably just need to re-emerge the xf86-input packages that you
  have installed. That happens after every update to the Xorg server,
  and there are probably messages in the portage log to that effect.
  
  --
  Grant
  
  Thank you, gonna try it
  
  --
  Francisco
 
 It worked. Thanks a lot!! Back to Gentoo / X11 again ;-)

Every time after you emerge xorg you're meant to remerge its drivers (evdev 
being one of them).  Usually there is some elog message telling you to run 
qfile to find what is need to be reinstalled:

  qlist -I -C x11-drivers/

-- 
Regards,
Mick


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


Re: [gentoo-user] Re: evdev broken?

2011-07-20 Thread Dale

Mick wrote:


Every time after you emerge xorg you're meant to remerge its drivers (evdev
being one of them).  Usually there is some elog message telling you to run
qfile to find what is need to be reinstalled:

   qlist -I -C x11-drivers/

   


I think this works too:

emerge -1av @x11-module-rebuild

Correct me if I am wrong here.

Dale

:-)  :-)



Re: [gentoo-user] new notebook

2011-07-20 Thread Mick
On Tuesday 19 Jul 2011 21:47:38 Alan McKinnon wrote:
 Notebook renewal time has rolled around again, I've had the old one
 for 3 years now. Amazing how much can change in 3 years. I don't do
 notebook support so my knowledge is always out of date...
 
 I'm tending towards a Dell Precision M4600 partly because I've had 4
 Dells in a row all troublefree but mostly because the company discount
 is a big number that can only be properly described as obscenely big
 
 I'd like to get some input from folks who might have used this
 hardware.
 
 Screens; a choice between
 1920x1080 WLED
 1920x1080 RGBLED IPS
 
 The IPS screen only comes with an NVIDIA Quadro 2000M with 2GB GDDR3,
 The regular screen comes with these choices of video card:
 
 AMD FirePro M5950 Mobility Pro with 1GB GDDR5 dedicated memory
 NVIDIA Quadro 1000M with 2GB GDDR3 dedicated memory
 NVIDIA Quadro 2000M with 2GB GDDR3 dedicated memory
 
 The price difference is substantial. Considering that my usage is
 nothing more stressful than KDE eye-candy and mplayer, is the IPS
 screen worth the extra price? OTOH the machine has VGA, HDMI and
 DisplayPort as well as internal screen and I believe the ATI can drive
 all 4 at the same time whereas the nVidia is pick any two. Up to 4
 screens might be more useful than outright performance.

I don't think it is.  When I bought my XPS (a year and a half ago) the RGBLED 
screen was c. £150 on top of what was a rather expensive machine by my 
affordability standards.

Perhaps it was an early version back then, but although it was claimed by 
those who bought it that the RGBLED has somewhat superior picture quality, it 
also had 2 more drawbacks besides the price:

1. You need to calibrate the monitor to get best picture and may need to 
repeat that every now and then.
2. It will suck your battery dry (much?) faster than the WLED.

If you're always on mains then the latter may be less of a problem.

A word of warning:  the 1920x1080 resolution on a 16 monitor is *small*.  
Trying to read a typical website or even the content of my desktop menu would 
cause eye strain!  Ha!  Fantastic picture if you just want to watch videos in 
full 1080p HD, but if you are also thinking of productivity you may need to 
readjust your desktop settings to make reading comfortable.  On e17 I had to 
change the Scaling setting to 80 DPI.

A final note about Dell's build quality:  This is meant to be a top of the 
range laptop.  However, there are no substantial rubber stops to keep the 
screen surface away from the keyboard.  Even with 3 additional self-adhesive 
rubber stops that I added, the keyboard is still touching and scratching the 
screen.  For the sort of money I paid to buy it I would expect some more 
thought to have gone into the design and build of it.  I guess all laptops 
these days are being churned out of some Chinese sweat shop, but for the money 
I expect a better product.
-- 
Regards,
Mick


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


[gentoo-user] xfce (window manager)

2011-07-20 Thread András Csányi
Dear All,

I would like to ask the community anybody has experienced any problems
regarding xfce?
My problem is that after update the window decorators (window border,
header the buttons on the left side [close, minimize, etc]) are
missing. I'm sorry I'm not sure the window decorators definition is
the proper for them.

I've deleted my xfce settings to start a session with default settings
without any success.

Anybody has any idea or suggestion what should I do?

Thanks in advance!

András

-- 
- -
--  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
http://facebook.com/andras.csanyi
--  Trust in God and keep your gunpowder dry! - Cromwell



Re: [gentoo-user] Any way around Argument list too long?

2011-07-20 Thread Joost Roeleveld
Top-posting IMPORTANT NOTE ON TOP

Do NOT create the file I mention below unless you WANT to risk deleting ALL 
your files.

On Tuesday 19 July 2011 15:58:44 Florian Philipp wrote:
 The double dash will prevent mv from interpreting weird file names like
 -h as parameters. Just about every standard GNU tool supports this.

Or worse, a file called  -rf .

If anyone wants to try what happens when  rm *  finds that file, please do so 
ONLY on a machine you want to wipe anyway...

-- 
Joost



Re: [gentoo-user] Anyone got any older Portage snapshots kicking around?

2011-07-20 Thread Joost Roeleveld
On Saturday 16 July 2011 17:53:48 Stroller wrote:
 A bit of a long shot, this, but has anyone got any older Portage snapshots
 kicking around, by any chance?
 
 I have a box which hasn't been updated in 2 - 3 years. It would normally be
 easiest to format and reinstall, but in this case the box in question is a
 PS3 which was installed using the experimental PS3 stages which are (I
 think) no longer available.
 
 I'm pretty sure this machine has some PS3-specific hacks applied, so I think
 an attempt to upgrade the hard way is worthwhile. If it doesn't work I'll
 probably try Debian, or something.
 
 I have no illusions that attempting this *will* be a pain the ass, because
 in the past I've updated machines which have been ignored for 18 months,
 and that required lots of manually digging in the Portage CVS attic and
 copying files into the local overlay by hand.
 
 So if anyone has any Portage snapshots that are sufficiently old left lying
 around from an old install, it would save me that grunt work.
 
 Alternatively, if you, too, have a machine that hasn't been updated a long
 time, maybe you'll be able to help me by tarring up a copy of the Portage
 tree.
 
 Thanks for looking,
 
 Stroller.

Stroller, 

If you are still looking, I have the following:

portage-20100128.tar.bz2
portage-latest.tar.bz2 (dated Feb 23, 2010)
portage-20090701.tar.bz2

(Find is still searching the rest of my system, but I think these are probably 
it.

--
Joost



Re: [gentoo-user] xfce (window manager)

2011-07-20 Thread jdm
Sometimes found re emerge xfce packages have helped with problems in particular

xfce4-panel xfce4-session xfdesktop xfwm4

Jdm
--Original Message--
From: András Csányi
To: Gentoo
ReplyTo: Gentoo
Subject: [gentoo-user] xfce (window manager)
Sent: 20 Jul 2011 09:49

Dear All,

I would like to ask the community anybody has experienced any problems
regarding xfce?
My problem is that after update the window decorators (window border,
header the buttons on the left side [close, minimize, etc]) are
missing. I'm sorry I'm not sure the window decorators definition is
the proper for them.

I've deleted my xfce settings to start a session with default settings
without any success.

Anybody has any idea or suggestion what should I do?

Thanks in advance!

András

-- 
- -
--  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
http://facebook.com/andras.csanyi
--  Trust in God and keep your gunpowder dry! - Cromwell



Sent from my BlackBerry® smartphone on O2

Re: [gentoo-user] ulogd fails to start

2011-07-20 Thread Kfir Lavi
On Tue, Jul 19, 2011 at 11:38 PM, Paul Hartman 
paul.hartman+gen...@gmail.com wrote:

 Hi,

 I emerged ulogd-2.0.0_beta4 and using the ulogd.conf that was
 installed by portage, it fails to start. I get this message in the
 log:

 Tue Jul 19 15:32:08 2011 8 ulogd.c:1179 not even a single working plugin
 stack

 Does anyone know what that's about? ULOG stuff is enabled in my
 kernel, and the plugins are on disk where the config file says. So I
 don't know what's wrong...

 Thanks,
 Paul

 What use flags did you use when installing this software?
It seems that you didn't specify any plugins like mysql, pcap, postgres...

Kfir


Re: [gentoo-user] Can't find reiser4 patch for kernel-2.6.39

2011-07-20 Thread Michael Mol
On Wed, Jul 20, 2011 at 1:55 AM, Volker Armin Hemmann
volkerar...@googlemail.com wrote:
 On Tuesday 19 July 2011 13:48:45 Bill Longman wrote:
 On 07/19/2011 07:43 AM, Volker Armin Hemmann wrote:
  On Tuesday 19 July 2011 12:39:09 Stroller wrote:
  On 19 July 2011, at 00:36, Volker Armin Hemmann wrote:
  Unless there is some family or intimate connection the rest of us are
  unaware of, there are no grounds for you to be offended on behalf of a
  convicted murderer.
 
  I am not offended because of a murderer. I am offended by your weak
  trolling. Somebody asks some raiser4 related questions and little
  trolls like you pop up and spout their crap. All the fucking time.

 Volker! This is the heart of the problem and you fail to see it.
 Stroller is *hardly* a troll but, as others have pointed out, you took
 his humor to be trolling. No one else did, so take another look.

 it is either trolling or tasteless.

 Does it become ok because it was a tasteless joke instead of an answer to a
 serious question?

Sure; humor is subjective. People who 'get' the joke are welcome to
dislike it, but it's still understood to be in jest, and not taken
seriously.

-- 
:wq



Re: [gentoo-user] Anyone got any older Portage snapshots kicking around?

2011-07-20 Thread Thanasis
http://dl.dropbox.com/u/14040344/7-Oct-2010_portage.tar.bz2



Re: [gentoo-user] Re: evdev broken?

2011-07-20 Thread Francisco Ares
On Wed, Jul 20, 2011 at 3:05 AM, Mick michaelkintz...@gmail.com wrote:

 On Wednesday 20 Jul 2011 04:38:37 Francisco Ares wrote:
  On Wed, Jul 20, 2011 at 12:10 AM, Francisco Ares fra...@gmail.com
 wrote:
   On Wed, Jul 20, 2011 at 12:05 AM, Grant Edwards
   grant.b.edwa...@gmail.com
  
wrote:
   On 2011-07-20, Francisco Ares fra...@gmail.com wrote:
Hi, All
   
Recently, after blindingly emerging world, X11/Xorg stopped to
 accept
  
   mouse
  
and keyboard events. After some ways to figure out what was going
 on,
I found that it seems related to evdev.
   
Anybody noticed something like that? The xorg-server package (or
xorg-drivers, can't remember nor check now, because I had to use
Windows
   
   :-(  ) is being built with evdev flag, but there is an error in the
   :log
   :
file about evdev could not be found, as long as dri and dri2. I
 am
  
   using
  
nvidia proprietary video driver.
  
   You probably just need to re-emerge the xf86-input packages that you
   have installed. That happens after every update to the Xorg server,
   and there are probably messages in the portage log to that effect.
  
   --
   Grant
  
   Thank you, gonna try it
  
   --
   Francisco
 
  It worked. Thanks a lot!! Back to Gentoo / X11 again ;-)

 Every time after you emerge xorg you're meant to remerge its drivers (evdev
 being one of them).  Usually there is some elog message telling you to run
 qfile to find what is need to be reinstalled:

  qlist -I -C x11-drivers/

 --
 Regards,
 Mick



qlist works, too, thanks, that will be very useful in the future.

Best regards
Francisco


Re: [gentoo-user] Re: evdev broken?

2011-07-20 Thread Francisco Ares
On Wed, Jul 20, 2011 at 3:20 AM, Dale rdalek1...@gmail.com wrote:

 Mick wrote:


 Every time after you emerge xorg you're meant to remerge its drivers
 (evdev
 being one of them).  Usually there is some elog message telling you to run
 qfile to find what is need to be reinstalled:

   qlist -I -C x11-drivers/




 I think this works too:

 emerge -1av @x11-module-rebuild

 Correct me if I am wrong here.

 Dale

 :-)  :-)



Thanks for replying, but emerge tells me there are no sets to satisfy
'x11-module-rebuild' . Where would it come from? As far as I could tell,
those sets are manually set, isn't it?

And by the way, what is the use of 'xorg-drivers' package ?

Best regards
Francisco


[gentoo-user] Re: Can't find reiser4 patch for kernel-2.6.39

2011-07-20 Thread Nikos Chantziaras

On 07/18/2011 11:45 PM, Bill Longman wrote:

On 07/18/2011 06:50 AM, Volker Armin Hemmann wrote:

On Monday 18 July 2011 14:30:28 Stroller wrote:

On 18 July 2011, at 12:18, Mick wrote:

Is it a matter of waiting a bit longer?


Yes, I think he'll be eligible for parole beginning 2023.


please refrain yourself from idiotic remarks like this.


Everyone *knows* he's got full internet access, Stroller.sheesh.
File a bug report and the warden will pass it his way.


Given that he invented his own file system, I wonder why the prison bars 
are able to keep him locked up...





Re: [gentoo-user] Re: evdev broken?

2011-07-20 Thread Alex Schuster
Francisco Ares writes:

 On Wed, Jul 20, 2011 at 3:20 AM, Dale rdalek1...@gmail.com wrote:
  Mick wrote:
  Every time after you emerge xorg you're meant to remerge its drivers
  (evdev being one of them).  Usually there is some elog message telling
  you to run
  
  qfile to find what is need to be reinstalled:
qlist -I -C x11-drivers/
  
  I think this works too:
  
  emerge -1av @x11-module-rebuild
  
  Correct me if I am wrong here.

 Thanks for replying, but emerge tells me there are no sets to satisfy
 'x11-module-rebuild' . Where would it come from? As far as I could tell,
 those sets are manually set, isn't it?

No, you just need a newer portage, probably a version = 2.2. This seems to 
be safe and is often suggested here on this list. Although there are 
frequent updates and I wonder if some big bug might slide into portage one 
day.

If you want to do so, put

sys-apps/portage- **

in /etc/portage/package.accept_keywords. Or something like 

=sys-apps/portage-2.2.0_alpha45

to install this version only, but I guess when it moves out of the portage 
tree it will be downgraded, so you'd need to put the ebuild into your local 
overlay then.

 And by the way, what is the use of 'xorg-drivers' package ?

I think it's just some sort of meta package pulling in the real drivers. At 
least the output of equery files xorg-drivers is empty.

Wonko



Re: [gentoo-user] Anyone got any older Portage snapshots kicking around?

2011-07-20 Thread Stroller

On 20 July 2011, at 10:03, Joost Roeleveld wrote:
 On Saturday 16 July 2011 17:53:48 Stroller wrote:
 A bit of a long shot, this, but has anyone got any older Portage snapshots
 kicking around, by any chance?
 
 ...
 If you are still looking, I have the following:
 
 portage-20100128.tar.bz2
 portage-latest.tar.bz2 (dated Feb 23, 2010)
 portage-20090701.tar.bz2
 
 (Find is still searching the rest of my system, but I think these are 
 probably 
 it.

Those might be handy, thanks, Joost.

Could you possibly put them on a web or ftp server, or on rapidshare, or 
something, and then mail me off-list to let me have the URL?

Stroller.




Re: [gentoo-user] Anyone got any older Portage snapshots kicking around?

2011-07-20 Thread Stroller

On 20 July 2011, at 12:20, Thanasis wrote:

 http://dl.dropbox.com/u/14040344/7-Oct-2010_portage.tar.bz2

Got it! Thanks!

Stroller.




[gentoo-user] Re: evdev broken?

2011-07-20 Thread Grant Edwards
On 2011-07-20, Mick michaelkintz...@gmail.com wrote:

 Every time after you emerge xorg you're meant to remerge its drivers (evdev 
 being one of them).  Usually there is some elog message telling you to run 
 qfile to find what is need to be reinstalled:

   qlist -I -C x11-drivers/

I've always wondered why, if portage knows that has to be done, can't
portage just go ahead and do it?

-- 
Grant Edwards   grant.b.edwardsYow! Let's send the
  at   Russians defective
  gmail.comlifestyle accessories!




Re: [gentoo-user] Can't find reiser4 patch for kernel-2.6.39

2011-07-20 Thread Stroller

On 19 July 2011, at 15:43, Volker Armin Hemmann wrote:
 …
 But we should put up with you trolling around and then acting all
 insulted and whiney when told to stop it?
 
 Unless there is some family or intimate connection the rest of us are
 unaware of, there are no grounds for you to be offended on behalf of a
 convicted murderer. 
 
 I am not offended because of a murderer. I am offended by your weak trolling. 
 Somebody asks some raiser4 related questions and little trolls like you pop 
 up 
 and spout their crap. All the fucking time.

Ok, maybe I should just excuse you for your disability. It's clear you're not 
properly calibrated to social interactions. 

The whole point of trolling is that it *is* an attempt to offend or disturb. 
So if you have no reason to be offended or disturbed, then my joke couldn't 
possibly have been trolling.


 You had to use the word idiotic, apparently because it makes you feel big,
 like in your head you have more stature, when you slap someone else down.
 
 no, I used it because your 'joke' was idiotic. Beware: I did not call 
 yourself 
 an idiot. A suble difference you should have thought about.

Are you trying to backpedal now? Because anyone can see that idiocy is 
inherently associated with idiots, and you're likely to antagonise people just 
the same whichever way you phrase it.

 I am sick of people who troll around and then go all whiney when put down. 
 You 
 can either handle the flames or you restrain yourself. It seems that you 

You're really not worth the time.

Stroller.




Re: [gentoo-user] Problem with xf86-video-ati nvidia-drivers

2011-07-20 Thread Stroller

On 19 July 2011, at 20:41, Grant wrote:
 ...
 I found this:
 
 We recommend using the Just Scan mode with 1080i and 1080p material,
 which assures zero overscan and proper 1:1 pixel matching for this
 1080p display.
 
 http://reviews.cnet.com/flat-panel-tvs/lg-47lh90/4505-6482_7-33485570.html#reviewPage1
 
 Just Scan is what I've always used which has the ghosting problem.  I
 think I'm back to square one.

I think the Windows versions of the nVidia drivers have options to over- or 
under-scan.

This compensates for (older?) TVs which have no way to switch to a just scan 
mode. So the graphics card will, I think, output a slightly over-sized picture, 
then the telly will scale it down a bit back to normal size. This will not 
produce a perfect picture, but if overscan on the TV cannot be disabled, then 
there is no better choice.

Is it possible they have recently added this feature to the Linux nVidia driver?

Stroller.




Re: [gentoo-user] ulogd fails to start

2011-07-20 Thread Paul Hartman
On Wed, Jul 20, 2011 at 5:43 AM, Kfir Lavi lavi.k...@gmail.com wrote:


 On Tue, Jul 19, 2011 at 11:38 PM, Paul Hartman
 paul.hartman+gen...@gmail.com wrote:

 Hi,

 I emerged ulogd-2.0.0_beta4 and using the ulogd.conf that was
 installed by portage, it fails to start. I get this message in the
 log:

 Tue Jul 19 15:32:08 2011 8 ulogd.c:1179 not even a single working plugin
 stack

 Does anyone know what that's about? ULOG stuff is enabled in my
 kernel, and the plugins are on disk where the config file says. So I
 don't know what's wrong...

 Thanks,
 Paul

 What use flags did you use when installing this software?
 It seems that you didn't specify any plugins like mysql, pcap, postgres...

Hi, thanks for the idea. I tried all combinations and, unfortunately,
it fails with exactly the same error whether the USE flags are enabled
or not. I guess I will file a bug report.



Re: [gentoo-user] Re: evdev broken?

2011-07-20 Thread Mick
On Wednesday 20 Jul 2011 15:16:06 Grant Edwards wrote:
 On 2011-07-20, Mick michaelkintz...@gmail.com wrote:
  Every time after you emerge xorg you're meant to remerge its drivers
  (evdev being one of them).  Usually there is some elog message telling
  you to run
  
  qfile to find what is need to be reinstalled:
qlist -I -C x11-drivers/
 
 I've always wondered why, if portage knows that has to be done, can't
 portage just go ahead and do it?

Because as a gentoo user you may have some very good reason NOT to do it (i.e. 
you want to only emerge certain drivers and not others, unmask and emerge 
particular versions, etc.)

Now portage could offer the choice of doing it (I have found these drivers, 
would sir/madam like me to remerge them?) but it could confuse newbies or halt 
emerges when run on a cron job.
-- 
Regards,
Mick


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


Re: [gentoo-user] ulogd fails to start

2011-07-20 Thread Paul Hartman
On Wed, Jul 20, 2011 at 9:31 AM, Paul Hartman
paul.hartman+gen...@gmail.com wrote:
 On Wed, Jul 20, 2011 at 5:43 AM, Kfir Lavi lavi.k...@gmail.com wrote:


 On Tue, Jul 19, 2011 at 11:38 PM, Paul Hartman
 paul.hartman+gen...@gmail.com wrote:

 Hi,

 I emerged ulogd-2.0.0_beta4 and using the ulogd.conf that was
 installed by portage, it fails to start. I get this message in the
 log:

 Tue Jul 19 15:32:08 2011 8 ulogd.c:1179 not even a single working plugin
 stack

 Does anyone know what that's about? ULOG stuff is enabled in my
 kernel, and the plugins are on disk where the config file says. So I
 don't know what's wrong...

 Thanks,
 Paul

 What use flags did you use when installing this software?
 It seems that you didn't specify any plugins like mysql, pcap, postgres...

 Hi, thanks for the idea. I tried all combinations and, unfortunately,
 it fails with exactly the same error whether the USE flags are enabled
 or not. I guess I will file a bug report.

Solved it. It was a stupid mistake of mine. :)

In /etc/ulogd.conf all of the stack lines were commented out by
default. After I uncommented one, now it works.



Re: [gentoo-user] new notebook

2011-07-20 Thread Stroller

On 19 July 2011, at 21:47, Alan McKinnon wrote:
 ...
 Screens; a choice between
 1920x1080 WLED
 1920x1080 RGBLED IPS
 
 The IPS screen only comes with an NVIDIA Quadro 2000M with 2GB GDDR3,
 The regular screen comes with these choices of video card:
 
 AMD FirePro M5950 Mobility Pro with 1GB GDDR5 dedicated memory
 NVIDIA Quadro 1000M with 2GB GDDR3 dedicated memory
 NVIDIA Quadro 2000M with 2GB GDDR3 dedicated memory
 
 The price difference is substantial. Considering that my usage is 
 nothing more stressful than KDE eye-candy and mplayer, is the IPS 
 screen worth the extra price? 

I *believe* that the difference between IPS screen and the other may manifest 
itself in things like viewing angle, accuracy or consistency of colour 
reproduction (for photographers / graphics designers) and clarity of viewing in 
daylight.

This thread is 5 years old, so there may well have been developments since:
http://forum.notebookreview.com/asus/44510-what-ips-screen.html

This may not matter at all to you, and maybe you're just asking about the GPU, 
but I thought I'd address the question you actually posed. ;)

Stroller.




Re: [gentoo-user] ulogd fails to start

2011-07-20 Thread Kfir Lavi
On Wed, Jul 20, 2011 at 6:01 PM, Paul Hartman paul.hartman+gen...@gmail.com
 wrote:

 On Wed, Jul 20, 2011 at 9:31 AM, Paul Hartman
 paul.hartman+gen...@gmail.com wrote:
  On Wed, Jul 20, 2011 at 5:43 AM, Kfir Lavi lavi.k...@gmail.com wrote:
 
 
  On Tue, Jul 19, 2011 at 11:38 PM, Paul Hartman
  paul.hartman+gen...@gmail.com wrote:
 
  Hi,
 
  I emerged ulogd-2.0.0_beta4 and using the ulogd.conf that was
  installed by portage, it fails to start. I get this message in the
  log:
 
  Tue Jul 19 15:32:08 2011 8 ulogd.c:1179 not even a single working
 plugin
  stack
 
  Does anyone know what that's about? ULOG stuff is enabled in my
  kernel, and the plugins are on disk where the config file says. So I
  don't know what's wrong...
 
  Thanks,
  Paul
 
  What use flags did you use when installing this software?
  It seems that you didn't specify any plugins like mysql, pcap,
 postgres...
 
  Hi, thanks for the idea. I tried all combinations and, unfortunately,
  it fails with exactly the same error whether the USE flags are enabled
  or not. I guess I will file a bug report.

 Solved it. It was a stupid mistake of mine. :)

 In /etc/ulogd.conf all of the stack lines were commented out by
 default. After I uncommented one, now it works.

 File a bug to issue a warning at the end of the emerge, so people know it
will fail.
As the error line is not in the old Ulog, this is new to version 2.0.0, so
it is good you
found this problem now.

Regards,
Kfir


Re: [gentoo-user] Problem with xf86-video-ati nvidia-drivers

2011-07-20 Thread Michael Mol
On Wed, Jul 20, 2011 at 10:29 AM, Stroller
strol...@stellar.eclipse.co.uk wrote:

 On 19 July 2011, at 20:41, Grant wrote:
 ...
 I found this:

 We recommend using the Just Scan mode with 1080i and 1080p material,
 which assures zero overscan and proper 1:1 pixel matching for this
 1080p display.

 http://reviews.cnet.com/flat-panel-tvs/lg-47lh90/4505-6482_7-33485570.html#reviewPage1

 Just Scan is what I've always used which has the ghosting problem.  I
 think I'm back to square one.

 I think the Windows versions of the nVidia drivers have options to over- or 
 under-scan.

 This compensates for (older?) TVs which have no way to switch to a just 
 scan mode. So the graphics card will, I think, output a slightly over-sized 
 picture, then the telly will scale it down a bit back to normal size. This 
 will not produce a perfect picture, but if overscan on the TV cannot be 
 disabled, then there is no better choice.

 Is it possible they have recently added this feature to the Linux nVidia 
 driver?

Possibly related observation: On my 720p TV, if I output (via HDMI)
720p to it, I lose the outer ten or so pixels off of each side of the
screen. NVidia video card configuration tool indicated a higher
resolution was available, 13??x???, which resulted in a fine picture
with no missing pixels, once I switched to it. This was about a year
ago. (Can't easily test, now, because I no longer have a PC hooked up
to that TV)

-- 
:wq



Re: [gentoo-user] new notebook

2011-07-20 Thread Alan McKinnon
On Wednesday 20 July 2011 16:09:58 Stroller did opine thusly:
 On 19 July 2011, at 21:47, Alan McKinnon wrote:
  ...
  Screens; a choice between
  1920x1080 WLED
  1920x1080 RGBLED IPS
  
  The IPS screen only comes with an NVIDIA Quadro 2000M with 2GB
  GDDR3, The regular screen comes with these choices of video
  card:
  
  AMD FirePro M5950 Mobility Pro with 1GB GDDR5 dedicated memory
  NVIDIA Quadro 1000M with 2GB GDDR3 dedicated memory
  NVIDIA Quadro 2000M with 2GB GDDR3 dedicated memory
  
  The price difference is substantial. Considering that my usage
  is
  nothing more stressful than KDE eye-candy and mplayer, is the
  IPS
  screen worth the extra price?
 
 I *believe* that the difference between IPS screen and the other may
 manifest itself in things like viewing angle, accuracy or
 consistency of colour reproduction (for photographers / graphics
 designers) and clarity of viewing in daylight.
 
 This thread is 5 years old, so there may well have been developments
 since:
 http://forum.notebookreview.com/asus/44510-what-ips-screen.html
 
 This may not matter at all to you, and maybe you're just asking
 about the GPU, but I thought I'd address the question you actually
 posed. ;)

Another admin just had his new notebook delivered with an IPS screen, 
so we sat for 3 hours inspecting it while an installer removed 
Windows. 

It's true that the IPS does have a fantastic viewing angle. I only 
started seeing bothersome colour shifts at about a 70degree angle 
viewed from the 10 o'clock position. Which is all great except that 
no-one in their right mind looks at a notebook from that acute angle. 
And I've never needed hugely accurate colour reproduction in 20 years, 
so I doubt that will change either anytime soon.

My current machine is 1920x1200 with a regular display, and it's 
plenty good enough for me so I can't honestly say I see a need for the 
latest and greatest. But there's always a chance someone who's used 
one for a while will report significantly reduced eye strain or 
similar (impossible to detect this in the first short trial), hence my 
original question.

I'm tending to think the ATI and a regular screen is the way forward, 
now to google how good the linux driver support is (my last ATI GPU 
was 6 years ago)

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] ulogd fails to start

2011-07-20 Thread Paul Hartman
On Wed, Jul 20, 2011 at 10:14 AM, Kfir Lavi lavi.k...@gmail.com wrote:


 On Wed, Jul 20, 2011 at 6:01 PM, Paul Hartman
 paul.hartman+gen...@gmail.com wrote:

 On Wed, Jul 20, 2011 at 9:31 AM, Paul Hartman
 paul.hartman+gen...@gmail.com wrote:
  On Wed, Jul 20, 2011 at 5:43 AM, Kfir Lavi lavi.k...@gmail.com wrote:
 
 
  On Tue, Jul 19, 2011 at 11:38 PM, Paul Hartman
  paul.hartman+gen...@gmail.com wrote:
 
  Hi,
 
  I emerged ulogd-2.0.0_beta4 and using the ulogd.conf that was
  installed by portage, it fails to start. I get this message in the
  log:
 
  Tue Jul 19 15:32:08 2011 8 ulogd.c:1179 not even a single working
  plugin
  stack
 
  Does anyone know what that's about? ULOG stuff is enabled in my
  kernel, and the plugins are on disk where the config file says. So I
  don't know what's wrong...
 
  Thanks,
  Paul
 
  What use flags did you use when installing this software?
  It seems that you didn't specify any plugins like mysql, pcap,
  postgres...
 
  Hi, thanks for the idea. I tried all combinations and, unfortunately,
  it fails with exactly the same error whether the USE flags are enabled
  or not. I guess I will file a bug report.

 Solved it. It was a stupid mistake of mine. :)

 In /etc/ulogd.conf all of the stack lines were commented out by
 default. After I uncommented one, now it works.

 File a bug to issue a warning at the end of the emerge, so people know it
 will fail.
 As the error line is not in the old Ulog, this is new to version 2.0.0, so
 it is good you
 found this problem now.

Done.

https://bugs.gentoo.org/show_bug.cgi?id=375777

Thanks,
Paul



Re: [gentoo-user] new notebook

2011-07-20 Thread Alan McKinnon
On Wednesday 20 July 2011 07:30:11 Mick did opine thusly:
 On Tuesday 19 Jul 2011 21:47:38 Alan McKinnon wrote:
  Notebook renewal time has rolled around again, I've had the old
  one for 3 years now. Amazing how much can change in 3 years. I
  don't do notebook support so my knowledge is always out of
  date...
  
  I'm tending towards a Dell Precision M4600 partly because I've
  had 4 Dells in a row all troublefree but mostly because the
  company discount is a big number that can only be properly
  described as obscenely big
  
  I'd like to get some input from folks who might have used this
  hardware.
  
  Screens; a choice between
  1920x1080 WLED
  1920x1080 RGBLED IPS
  
  The IPS screen only comes with an NVIDIA Quadro 2000M with 2GB
  GDDR3, The regular screen comes with these choices of video
  card:
  
  AMD FirePro M5950 Mobility Pro with 1GB GDDR5 dedicated memory
  NVIDIA Quadro 1000M with 2GB GDDR3 dedicated memory
  NVIDIA Quadro 2000M with 2GB GDDR3 dedicated memory
  
  The price difference is substantial. Considering that my usage
  is
  nothing more stressful than KDE eye-candy and mplayer, is the
  IPS
  screen worth the extra price? OTOH the machine has VGA, HDMI and
  DisplayPort as well as internal screen and I believe the ATI can
  drive all 4 at the same time whereas the nVidia is pick any
  two. Up to 4 screens might be more useful than outright
  performance.
 
 I don't think it is.  When I bought my XPS (a year and a half ago)
 the RGBLED screen was c. £150 on top of what was a rather expensive
 machine by my affordability standards.
 
 Perhaps it was an early version back then, but although it was
 claimed by those who bought it that the RGBLED has somewhat
 superior picture quality, it also had 2 more drawbacks besides the
 price:

I *can* see a difference with the RGBLED screen (see why answer to 
Stroller where someone in the office got one today), but its not a 
compelling difference and not big enough to make me go Wow! yet

 1. You need to calibrate the monitor to get best picture and may
 need to repeat that every now and then.

I will likely never do this :-)
Mostly coz I'm lazy...

 2. It will suck your battery dry (much?) faster than the WLED.
 
 If you're always on mains then the latter may be less of a problem.

Mostly on mains, but I'd like to stay at more than 2 hours battery 
life from a full charge for 2.5 years

 A word of warning:  the 1920x1080 resolution on a 16 monitor is
 *small*. Trying to read a typical website or even the content of my
 desktop menu would cause eye strain!  Ha!  Fantastic picture if you
 just want to watch videos in full 1080p HD, but if you are also
 thinking of productivity you may need to readjust your desktop
 settings to make reading comfortable.  On e17 I had to change the
 Scaling setting to 80 DPI.

Currently I have 1920x1200, 96dpi and konsole fonts set at 8pt. I'm 
used to people looking over my shoulder saying how the blazes do you 
read those tiny letters?

 A final note about Dell's build quality:  This is meant to be a top
 of the range laptop.  However, there are no substantial rubber
 stops to keep the screen surface away from the keyboard.  Even with
 3 additional self-adhesive rubber stops that I added, the keyboard
 is still touching and scratching the screen.  For the sort of money
 I paid to buy it I would expect some more thought to have gone into
 the design and build of it.  I guess all laptops these days are
 being churned out of some Chinese sweat shop, but for the money I
 expect a better product.

I can't honestly fault this XPS's build quality. The palm rest area 
has warped, but it does run hot almost 24/7. The keyboard always felt 
a tad lower quality than it should have been, but did take 2.5 years 
for the legends to start wearing through.

From what I've seen, the Precisions are better (there's quite a lot in 
the office of varying ages). They are almost as good as ThinkPads - 
not as good, but close.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] new notebook

2011-07-20 Thread Thanasis
on 07/20/2011 07:06 PM Alan McKinnon wrote the following:

 now to google how good the linux driver support is (my last ATI GPU 
 was 6 years ago)
 

I would choose nvidia, just for the driver support, but also make sure
the thing doesn't suffer overheating...



[gentoo-user] Failure to compile 2.6.39-gentoo-r3

2011-07-20 Thread Michael
Hello,

Just upgrading from 2.6.38-gentoo-r6 to 2.6.39-gentoo-r3 and I'm getting the 
following error:

LD  .tmp_vmlinux1
arch/x86/built-in.o: In function `microcode_init':
microcode_core.c:(.init.text+0xaeb5): undefined reference to 
`init_intel_microcode'
make: *** [.tmp_vmlinux1] Error 1

Any ideas?

-Michael




Re: [gentoo-user] new notebook

2011-07-20 Thread Michael Mol
On Wed, Jul 20, 2011 at 12:06 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
 On Wednesday 20 July 2011 16:09:58 Stroller did opine thusly:

 It's true that the IPS does have a fantastic viewing angle. I only
 started seeing bothersome colour shifts at about a 70degree angle
 viewed from the 10 o'clock position. Which is all great except that
 no-one in their right mind looks at a notebook from that acute angle.

It's good for pair programming scenarios, really. Although if you
don't need to worry about that kind of scenario, having only a narrow
accurate view angle might be a kind of privacy benefit. :)

-- 
:wq



Re: [gentoo-user] Re: evdev broken?

2011-07-20 Thread Alan McKinnon
On Wednesday 20 July 2011 14:16:06 Grant Edwards did opine thusly:
 On 2011-07-20, Mick michaelkintz...@gmail.com wrote:
  Every time after you emerge xorg you're meant to remerge its
  drivers (evdev being one of them).  Usually there is some elog
  message telling you to run
  
  qfile to find what is need to be reinstalled:
qlist -I -C x11-drivers/
 
 I've always wondered why, if portage knows that has to be done,
 can't portage just go ahead and do it?

Actually not. Portage doesn't know it has to be done, the ebuild dev 
knows and stuck a literal message in one of the post_() functions.

To do what you mention, the driver would have to depend on xorg, but 
in fact xorg-server depends on the xorg-drivers meta package, which in 
turn depends on the drivers defined in USE.

In theory, one could use PDEPEND I suppose, but I also suspect that 
would cause circular dependencies. The other option is to put an 
emerge call in pkg_postinst() but that would be heavily frowned upon 
as

- it's a highly unusual solution and just an ugly hack
- it wreaks the dep graph that emerge generates
- stuff will get emerged that isn't visible at the beginning
- portage can't definitively tell you before you start that the 
drivers will be remerged


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: evdev broken?

2011-07-20 Thread Neil Bothwick
On Wed, 20 Jul 2011 14:16:06 + (UTC), Grant Edwards wrote:

  Every time after you emerge xorg you're meant to remerge its drivers
  (evdev being one of them).  Usually there is some elog message
  telling you to run qfile to find what is need to be reinstalled:
 
qlist -I -C x11-drivers/  
 
 I've always wondered why, if portage knows that has to be done, can't
 portage just go ahead and do it?

Now that we have a set to do this, I see no reason why this could not be
an option, enabled by a USE flag.


-- 
Neil Bothwick

COMMAND: A suggestion made to a computer.


signature.asc
Description: PGP signature


Re: [gentoo-user] new notebook

2011-07-20 Thread Alan McKinnon
On Wednesday 20 July 2011 12:28:49 Michael Mol did opine thusly:
 On Wed, Jul 20, 2011 at 12:06 PM, Alan McKinnon 
alan.mckin...@gmail.com wrote:
  On Wednesday 20 July 2011 16:09:58 Stroller did opine thusly:
  
  It's true that the IPS does have a fantastic viewing angle. I
  only started seeing bothersome colour shifts at about a
  70degree angle viewed from the 10 o'clock position. Which is
  all great except that no-one in their right mind looks at a
  notebook from that acute angle.
 
 It's good for pair programming scenarios, really. Although if you
 don't need to worry about that kind of scenario, having only a
 narrow accurate view angle might be a kind of privacy benefit. :)

We all have 24 Samsung flat panels for pair programming :-) 
From 2 feet away at that size viewing angle isn't an issue.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] new notebook

2011-07-20 Thread Michael Mol
On Wed, Jul 20, 2011 at 12:46 PM, Alan McKinnon alan.mckin...@gmail.com wrote:
 On Wednesday 20 July 2011 12:28:49 Michael Mol did opine thusly:
 It's good for pair programming scenarios, really. Although if you
 don't need to worry about that kind of scenario, having only a
 narrow accurate view angle might be a kind of privacy benefit. :)

 We all have 24 Samsung flat panels for pair programming :-)
 From 2 feet away at that size viewing angle isn't an issue.

I think I need a better desk; three 23 CRTs at 1600x1200, and my
coworkers can't get close enough to read any but the one furthest from
me.
-- 
:wq



Re: [gentoo-user] Failure to compile 2.6.39-gentoo-r3

2011-07-20 Thread Michael
Hi,

CONFIG_MICROCODE=y
CONFIG_MICROCODE_INTEL=y
# CONFIG_MICROCODE_AMD is not set
CONFIG_MICROCODE_OLD_INTERFACE=y


-Michael



[gentoo-user] nginx init script dependencies

2011-07-20 Thread Giedrius Kudelis
Hello,

I'm new to this mailing list, so greetings to everyone!

I am having some trouble starting nginx while some of the network interfaces
are down. Running /etc/init.d/nginx ineed gives me

fsck localmount dhcpcd net.eth0 net.eth1 net.lo

I guess this means that all the net.* interfaces have to be up for nginx to
start. Wouldn't it be more logical to require only one (like the loopback
interface) to be up? The problem is that if I stop net.eth1 and start nginx
it tries to start net.eth1, which I'd rather it did not do. Is there any way 
to avoid this? Thank you!

Best regards,
Giedrius Kudelis



Re: [gentoo-user] new notebook

2011-07-20 Thread kashani

On 7/19/2011 1:47 PM, Alan McKinnon wrote:


The price difference is substantial. Considering that my usage is
nothing more stressful than KDE eye-candy and mplayer, is the IPS
screen worth the extra price? OTOH the machine has VGA, HDMI and
DisplayPort as well as internal screen and I believe the ATI can drive
all 4 at the same time whereas the nVidia is pick any two. Up to 4
screens might be more useful than outright performance.




	I have the slightly older Dell E6410 with the NVS 3100M. It won't drive 
move than two displays though it does do two 1920x1200's quite nicely. 
I've found the display port less useful than I'd hoped mostly because I 
haven't bought a display port to HDMI cable. I don't think I've come 
across a display with a display port yet. Oddly VGA is the only common 
interface on all my display devices.


	As far as power I get 2.5 hours before needing to plug in. I'd expect 
to see about the same on the M4600.


	You might head over to your local big box electronic store. Dell seems 
to be well represented at most and hopefully they'd have a model with 
the IPS. I skipped the upgrade at the time and haven't felt the lack 
though if you like to work outside and it's bright enough it might be 
worth it.


kashani



Re: [gentoo-user] nginx init script dependencies

2011-07-20 Thread Thanasis
on 07/20/2011 09:32 PM Giedrius Kudelis wrote the following:
 Hello,
 
 I'm new to this mailing list, so greetings to everyone!
 
 I am having some trouble starting nginx while some of the network interfaces
 are down. Running /etc/init.d/nginx ineed gives me
 
 fsck localmount dhcpcd net.eth0 net.eth1 net.lo
 
 I guess this means that all the net.* interfaces have to be up for nginx to
 start. Wouldn't it be more logical to require only one (like the loopback
 interface) to be up? The problem is that if I stop net.eth1 and start nginx
 it tries to start net.eth1, which I'd rather it did not do. Is there any way 
 to avoid this? Thank you!
 
 Best regards,
 Giedrius Kudelis
 
 
 

set rc_depend_strict=NO in /etc/rc.conf




Re: [gentoo-user] nginx init script dependencies

2011-07-20 Thread Giedrius Kudelis
Hi,

Thanks very much, that works!

Best regards,
Giedrius Kudelis



Re: [gentoo-user] Problem with xf86-video-ati nvidia-drivers

2011-07-20 Thread Grant
  --snip--
 
  The TV is an LG 47LH90 and and it is said to do 1080p.  I looked for
  ghosting in 16:9 mode instead of Just Scan mode and strangely the
  shadows are there, but they're oriented top and bottom instead of left
  and right.  I can take another photo if anyone would like to see.
 
  Why do I need to select Just Scan in order to prevent all 4 edges of
  the screen from being cut off?
 
  - Grant
 
  BTW I think you're on to something Stroller because the overall
  picture is definitely improved in 16:9 mode compared to Just Scan
  mode.  I just need to figure out how to prevent the edges of the
  screen from being cut off.
 
  - Grant
 
  Grant,
 
  By default most TVs overscan inputs due to broadcast signals at the
  edges as the picture there is not well defined and can have white
  overscan lines and such. The TV compensates by overscanning which
  basically zooms in on the picture making (on my 46 Samsung TV) the
  outer 1-1.5 of the picture disappear.
 
  On my TV it was fairly simple to turn this off, I just had to label the
  HDMI input as DVI PC and it automatically turned off any picture
  processing/overscanning. Yours may be similar.
 
  Sorry if there's typos, I have a bandaged finger and it's a PITA to type
  with. I think I fixed all of them.
 
  Dan

 I found this:

 We recommend using the Just Scan mode with 1080i and 1080p material,
 which assures zero overscan and proper 1:1 pixel matching for this
 1080p display.

 http://reviews.cnet.com/flat-panel-tvs/lg-47lh90/4505-6482_7-33485570.html#
 reviewPage1

 Just Scan is what I've always used which has the ghosting problem.  I
 think I'm back to square one.

 Just a thought:  have you approached the OEM for the TV?  If you could get to
 some technical department they would hopefully advise if this is a setting or
 hardware issue.

That may be.  I'll try that.  Please let me know if you think this may
be a software issue of some sort.

- Grant



Re: [gentoo-user] {OT} Time for hardware upgrade(s)

2011-07-20 Thread Joost Roeleveld
On Monday 04 July 2011 09:30:27 Grant wrote:
 I'm reading that ASUS and Gigabyte are the way to go for reliability.

Don't forget Tyan. The workstation board I have here has been rock-solid even 
in really bad atmospheric conditions (large temperature and humidity 
differences) and a dodgy power supply from the utility company.

They're just a bit more expensive then ASUS.

--
Joost



[gentoo-user] Re: evdev broken?

2011-07-20 Thread Grant Edwards
On 2011-07-20, Alan McKinnon alan.mckin...@gmail.com wrote:
 On Wednesday 20 July 2011 14:16:06 Grant Edwards did opine thusly:
 On 2011-07-20, Mick michaelkintz...@gmail.com wrote:
  Every time after you emerge xorg you're meant to remerge its
  drivers (evdev being one of them).  Usually there is some elog
  message telling you to run
  
  qfile to find what is need to be reinstalled:
qlist -I -C x11-drivers/
 
 I've always wondered why, if portage knows that has to be done,
 can't portage just go ahead and do it?

 Actually not. Portage doesn't know it has to be done, the ebuild dev 
 knows and stuck a literal message in one of the post_() functions.

Ah, I see.

 To do what you mention, the driver would have to depend on xorg, but 
 in fact xorg-server depends on the xorg-drivers meta package, which
 in turn depends on the drivers defined in USE.

To paraphrase...

The data structures and algorithms used to represent dependancies by
portage can't deal with two packages that depend on each-other. That
is the case with xorg and xorg-drivers, so the dependencies in one
direction are ignore by Portage itself (but not by the devs who have
put the message in the ebuild) and have to be handled out-of-band as
special cases.

Fair enough.  If this is something peculiar to Xorg (it seems there
are a lot of things that are) and doesn't crop up in other places,
it's probably not worth trying to make Portage handle it.

-- 
Grant Edwards   grant.b.edwardsYow! Does someone from
  at   PEORIA have a SHORTER
  gmail.comATTENTION span than me?




Re: [gentoo-user] Failure to compile 2.6.39-gentoo-r3

2011-07-20 Thread victor romanchuk

 LD  .tmp_vmlinux1
 arch/x86/built-in.o: In function `microcode_init':
 microcode_core.c:(.init.text+0xaeb5): undefined reference to 
 `init_intel_microcode'
 make: *** [.tmp_vmlinux1] Error 1


this should not happen: if you selected any module from the kernel tree to be
built into the kernel (you did it for cpu firmware loader as it comes from
previous message), the compiled code for every module pretended to be built into
the kernel image is additively placed into built-in.o - actually the kernel tree
contains built-in.o files for every kernel component, arch, mm, drivers, net
etc. at the final build stage, all the object files are linked together
producing vmlinux elf binary. i just tried to build test kernel with built-in
firmware loader for x86 and x86_64 arches: both completed successfully

so i guess you've got error due to some inconsistencies in the kernel directory.
try it again from the scratch:

  * save somewhere out of kernel tree your current /usr/src/linux/.config
  * wipe out compeled and generated code from the kernel tree: cd
/usr/src/linux; make mrproper
  * restore .config
  * make silentoldconfig
  * make

words below are not directly related to the case, but proper behavior is to
build cpu firmware loader as module (i presume the kernel is configured to load
and unload modules:

CONFIG_MICROCODE=m
CONFIG_MICROCODE_INTEL=y
CONFIG_MICROCODE_OLD_INTERFACE=y
CONFIG_FW_LOADER=y

  * as you probably know microcode loader runs in userspace once at boot time
(you have to emerge sys-apps/microcode-ctl and rc-update microcode_ctl boot)
  * microcode service script /etc/init.d/microcode_ctl at start loads kernel
module 'microcode'
  * then the script starts microcode loader (data is in sys-apps/microcode-data)
  * at the end the script unloads microcode module thus freeing kernel resources
(loaded data remains into cpu cache until reset)

hth,
victor



[gentoo-user] mysqld invoked oom-killer

2011-07-20 Thread Grant
I ran into an out of memory problem.  The first mention of it in the
kernel log is mysqld invoked oom-killer.  I haven't run into this
before.  I do have a swap partition but I don't activate it based on
something I read previously that I later found out was wrong so I
suppose I should activate it.  Is fstab the way to do that?  I have a
commented line in there for swap.

Can anyone tell how much swap this is:

/dev/sda2   80325 1140614  530145   82  Linux swap / Solaris

If it's something like 512MB, that may not have prevented me from
running out of memory since I have 4GB RAM.  Is there any way to find
out if there was a memory leak or other problem that should be
investigated?

- Grant



Re: [gentoo-user] Re: Problem with xf86-video-ati nvidia-drivers

2011-07-20 Thread Grant
 ...
  I was thinking about this.  The digital HDMI signal must be converted
  into an analog signal at some point if it's being represented as light
  on a TV screen.  Electrical interference generated by the computer and
  traveling up the HDMI wire should have its chance to affect things
  (i.e. create weird shadows) at that point, right?
 
  Not with DFPs.  Those work digital even internally.  I assume of course
  that his HDMI TV *is* a DFP.

 But at some point the 1s and 0s must be converted to some sort of an
 analog signal if only right behind the diode.  A diode must be
 presented with a signal in some sort of analog form in order to
 illuminate, right?

 no.

 If your tv is a standard flat panel, the sub pixels only go from on to off 
 and
 back. Nothing else. There is no analog signal, no transformation nothing. 
 And
 off means 'let light through' and on 'black'

 Every digital signal is encoded into an analog signal.  I think it
 would take some serious EMI to sufficiently change the characteristics
 of an analog signal so as to create an error in the overlying digital
 signal if that signal is traveling along a wire.  I can imagine it
 happens but I would think it's rare.  Even if that signal were
 altered, I would think it just about impossible that anything but an
 error could be produced.

 Whether an LED is on or off is determined by whether or not it is
 forward biased.  Biasing is established by analog voltages and/or
 currents, and those can be altered by EMI.  Again, I would think it's
 very rare that EMI could affect an LED's forward biasing and change
 its state from on to off or off to on.

 However, what color an LED emits is determined by the energy gap of
 the semiconductor which is very much an analog process.  How could it
 be anything else?  How do you tell a photon to emit a certain color by
 feeding it 1's and 0's?  There has to be at least one D/A conversion
 somewhere between the digital signal and the emittance of the LED, and
 that is the most likely point for EMI to affect the final output.

 If you have an led display it is pretty much the same. All the levels you 
 see
 are achieved with fast switching. There are no analog levels.

 Stroller is probably correct with overscan/underscan.

 But that has nothing to do with digital/analog conversion.


 Digital is just a figment of our imagination after
 all.

 emm, no, seriously not.

 It is though.  It only exists in the conceptual world, not the
 physical world.  If you want to do anything with your digital signal
 besides change it, store it, or transfer it, there must be a D/A
 conversion.

 You're thinking of PCM. (And that's what I was thinking of, earlier,
 too). I assume Stroller and Volker are talking about PWM, where a
 perceived analog value is achieved by rapidly turning a signal from
 full-on to full-off.

 (Yes, there's no such thing as pure-digital in the physical world. The
 confusion here appears to be in PWM vs PCM.)
 --
 :wq

Everything I said above applies to both PCM and PWM.  They are only
conceptual layers built on top of a physical/analog base.  PWM
switching from full-on to full-off and back is an analog process
representing digital data in order to represent an analog signal.

- Grant



Re: [gentoo-user] mysqld invoked oom-killer

2011-07-20 Thread Paul Hartman
On Wed, Jul 20, 2011 at 3:30 PM, Grant emailgr...@gmail.com wrote:
 I ran into an out of memory problem.  The first mention of it in the
 kernel log is mysqld invoked oom-killer.  I haven't run into this
 before.  I do have a swap partition but I don't activate it based on
 something I read previously that I later found out was wrong so I
 suppose I should activate it.  Is fstab the way to do that?  I have a
 commented line in there for swap.

Yes, just uncomment it and should be automatic. (you can use swapon
to enable it without rebooting)

 Can anyone tell how much swap this is:

 /dev/sda2           80325     1140614      530145   82  Linux swap / Solaris

 If it's something like 512MB, that may not have prevented me from
 running out of memory since I have 4GB RAM.  Is there any way to find
 out if there was a memory leak or other problem that should be
 investigated?

That's 512MB. You can also create a swap file to supplement the swap
partition if you don't want to or aren't able to repartition.

I'd check the MySQL logs to see if it shows anything. Maybe check the
settings with regard to memory upper limits (Google it, there's a lot
of info about MySQL RAM management).

If you're running any other servers that utilize MySQL like Apache or
something, check its access logs to see if you had an abnormal number
of connections. Bruteforce hacking or some kind of flooding/DOS attack
might cause it to use more memory than it ordinarily would.

A Basic what's using up my memory? technique is to log the output of
top by using the -b command. Something like top -b  toplog.txt.
Then you can go back to the time when the OOM occurred and see what
was using a lot of RAM at that time.



Re: [gentoo-user] {OT} Time for hardware upgrade(s)

2011-07-20 Thread Bill Longman
On 07/20/2011 11:49 AM, Joost Roeleveld wrote:
 On Monday 04 July 2011 09:30:27 Grant wrote:
 I'm reading that ASUS and Gigabyte are the way to go for reliability.
 
 Don't forget Tyan. The workstation board I have here has been rock-solid even 
 in really bad atmospheric conditions (large temperature and humidity 
 differences) and a dodgy power supply from the utility company.
 
 They're just a bit more expensive then ASUS.

+1

I had a DP Xeon mobo from them (S2665UANF) when the Xeon first got HT.
Great machine.



[gentoo-user] Using KVM, what about clocks?

2011-07-20 Thread Stefan G. Weichinger

Maybe a bit OT, but otherwise close to gentoo as well (as we all
configure our kernels individually ) (see ps below):

When I configure my gentoo-server for Linux KVM, how to get the
clock-issues right, in terms of correctness and performance?

I assume that I am not the only one scratching his head ... but maybe
some of us simply hesitate to ask ;-)

HPET, RTC, TSC, blah ...

A new server with a Xeon-CPU tells me:

kvm: SMP vm created on host with unstable TSC; guest TSC will not be
reliable

Ah, ok.

Is that bad? Could I do something? Should I?

My question is // questions are:

Are there any recommended kernel-config-settings for a performant and
non-drifting KVM-server?

Is there a best practise?

What is your experience, your recommendation?

Maybe it should find its way into the gentoo wiki :-)

Thanks in advance, Stefan

ps: yeah, I know, this should go to the linux-kvm-ml in an ideal world.
We all know that we would end up subscribed to dozens of mailing-lists
just to get our jobs done  so pls be tolerant in terms of what is
off-topic. thx.



Re: [gentoo-user] Using KVM, what about clocks?

2011-07-20 Thread Kfir Lavi
On Thu, Jul 21, 2011 at 12:43 AM, Stefan G. Weichinger li...@xunil.atwrote:


 Maybe a bit OT, but otherwise close to gentoo as well (as we all
 configure our kernels individually ) (see ps below):

 When I configure my gentoo-server for Linux KVM, how to get the
 clock-issues right, in terms of correctness and performance?

 I assume that I am not the only one scratching his head ... but maybe
 some of us simply hesitate to ask ;-)

 HPET, RTC, TSC, blah ...

 A new server with a Xeon-CPU tells me:

 kvm: SMP vm created on host with unstable TSC; guest TSC will not be
 reliable

 Ah, ok.

 Is that bad? Could I do something? Should I?

 My question is // questions are:

 Are there any recommended kernel-config-settings for a performant and
 non-drifting KVM-server?

 Is there a best practise?

 What is your experience, your recommendation?

 Maybe it should find its way into the gentoo wiki :-)

 Thanks in advance, Stefan

 ps: yeah, I know, this should go to the linux-kvm-ml in an ideal world.
 We all know that we would end up subscribed to dozens of mailing-lists
 just to get our jobs done  so pls be tolerant in terms of what is
 off-topic. thx.


This question is totally related to Gentoo!
Try -cpu ? and run with different cpu's to see if this can solve the
problem.

Kfir


Re: [gentoo-user] mysqld invoked oom-killer

2011-07-20 Thread Alan McKinnon
On Wednesday 20 July 2011 13:30:05 Grant did opine thusly:
 I ran into an out of memory problem.  The first mention of it in the
 kernel log is mysqld invoked oom-killer.  I haven't run into this
 before.  I do have a swap partition but I don't activate it based
 on something I read previously that I later found out was wrong so
 I suppose I should activate it.  Is fstab the way to do that?  I
 have a commented line in there for swap.
 
 Can anyone tell how much swap this is:
 
 /dev/sda2   80325 1140614  530145   82  Linux swap /
 Solaris
 
 If it's something like 512MB, that may not have prevented me from
 running out of memory since I have 4GB RAM.  Is there any way to
 find out if there was a memory leak or other problem that should be
 investigated?

To activate swap, put a line in fstab like so:

/dev/sda2   noneswapsw 0 0

However, you do not want to use it. it is not the life-saver some 
howto authors on the internet claim it to be.

When a linux machine hits swap, it does so very aggressively, there is 
nothing nice about it at all. The entire machine slows to a 
painstaking crawl for easily a minute at a time while the kernel 
writes pages out to disk, and disk is thousands of times slower than 
RAM.

It gets so bad that you can't even run a shell properly to try and see 
what's going on and kill the actual memory hog.

My personal rule of thumb: if you hit swap, the bad thing has already 
gone very very south, usually to the point where you can't do much 
about it and it's already too late. Besides, that bastard deomon spawn 
of satan called the oom-killer is likely about to kick in and REALLY 
make your day. Anyone else notice how oom-killer seems to be hard 
coded to zap the most inconvenient process of all?.

What you need to be doing is monitor your memory usage during normal 
conditions and deal with issues before they become problems.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] new notebook

2011-07-20 Thread Alan McKinnon
On Wednesday 20 July 2011 10:39:00 kashani did opine thusly:
 On 7/19/2011 1:47 PM, Alan McKinnon wrote:
  The price difference is substantial. Considering that my usage
  is
  nothing more stressful than KDE eye-candy and mplayer, is the
  IPS
  screen worth the extra price? OTOH the machine has VGA, HDMI and
  DisplayPort as well as internal screen and I believe the ATI can
  drive all 4 at the same time whereas the nVidia is pick any
  two. Up to 4 screens might be more useful than outright
  performance.
 
   I have the slightly older Dell E6410 with the NVS 3100M. It 
won't
 drive move than two displays though it does do two 1920x1200's
 quite nicely. 

Google confirms :-) Apparently the nVidia GPU has two DACs so although 
it may have more than 2 output sockets, it's pick any two display 
ports

 I've found the display port less useful than I'd
 hoped mostly because I haven't bought a display port to HDMI cable.
 I don't think I've come across a display with a display port yet.
 Oddly VGA is the only common interface on all my display devices.

Agreed. Macs have infested our techie areas, the things seem to breed 
under the desks overnight. Macs use DisplayPort and our techies can 
have their pick of just about any display device they feel like having 
(within reason). No-one has a native DisplayPort device, everyone has 
converter dongles (usual to VGA!)

   As far as power I get 2.5 hours before needing to plug in. I'd
 expect to see about the same on the M4600.

This XPS M1530 gave me 2.5 hours when new with extended battery. A 
colleague with a one-year old Precision gets 4 on a standard battery!

   You might head over to your local big box electronic store. 
Dell
 seems to be well represented at most and hopefully they'd have a
 model with the IPS. I skipped the upgrade at the time and haven't
 felt the lack though if you like to work outside and it's bright
 enough it might be worth it.

Ummm, I'm an Internets sysadmin. I long ago forgot what that exploding 
ball of hydrogen in the sky looks like in real life :-)





-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: evdev broken?

2011-07-20 Thread Michael Orlitzky
On 07/20/2011 12:37 PM, Neil Bothwick wrote:
 On Wed, 20 Jul 2011 14:16:06 + (UTC), Grant Edwards wrote:
 
 Every time after you emerge xorg you're meant to remerge its drivers
 (evdev being one of them).  Usually there is some elog message
 telling you to run qfile to find what is need to be reinstalled:

   qlist -I -C x11-drivers/  

 I've always wondered why, if portage knows that has to be done, can't
 portage just go ahead and do it?
 
 Now that we have a set to do this, I see no reason why this could not be
 an option, enabled by a USE flag.
 
 

The last time I complained about this, someone sent me here:

  https://bugs.gentoo.org/show_bug.cgi?id=192319



[gentoo-user] no_root_squash equivalent for virtualbox shared folders?

2011-07-20 Thread walt
I've been trying to share /usr/portage on a gentoo host with a
virtualbox gentoo guest, but I'm having an identity crisis ;)

The /usr/portage/ share mounts perfectly on the gentoo guest,
but even root (on the gentoo guest) can't write to the shared
portage directory.

After hours of googling and putzing around with mount options,
I'm pretty sure that root on the host is not the same user as
root on the virtualbox guest.

This seems analogous to an NFS mount without the 'no_squash_root'
mount option, but I haven't discovered the analogous solution
for vboxfs mounts.

Any applications of the cluestick would be most welcome :)




Re: [gentoo-user] Re: Can't find reiser4 patch for kernel-2.6.39

2011-07-20 Thread Michael Orlitzky
On 07/20/2011 07:53 AM, Nikos Chantziaras wrote:
 On 07/18/2011 11:45 PM, Bill Longman wrote:
 On 07/18/2011 06:50 AM, Volker Armin Hemmann wrote:
 On Monday 18 July 2011 14:30:28 Stroller wrote:
 On 18 July 2011, at 12:18, Mick wrote:
 Is it a matter of waiting a bit longer?

 Yes, I think he'll be eligible for parole beginning 2023.

 please refrain yourself from idiotic remarks like this.

 Everyone *knows* he's got full internet access, Stroller.sheesh.
 File a bug report and the warden will pass it his way.
 
 Given that he invented his own file system, I wonder why the prison bars 
 are able to keep him locked up...

If using a filesystem written by a murderer is wrong, I don't want to
read/write!




Re: [gentoo-user] no_root_squash equivalent for virtualbox shared folders?

2011-07-20 Thread Alan McKinnon
On Wednesday 20 July 2011 15:33:48 walt did opine thusly:
 I've been trying to share /usr/portage on a gentoo host with a
 virtualbox gentoo guest, but I'm having an identity crisis ;)
 
 The /usr/portage/ share mounts perfectly on the gentoo guest,
 but even root (on the gentoo guest) can't write to the shared
 portage directory.
 
 After hours of googling and putzing around with mount options,
 I'm pretty sure that root on the host is not the same user as
 root on the virtualbox guest.
 
 This seems analogous to an NFS mount without the 'no_squash_root'
 mount option, but I haven't discovered the analogous solution
 for vboxfs mounts.
 
 Any applications of the cluestick would be most welcome :)

What are the relevant entries in 

/etc/exports on the host
/etc/fstab on the guest

root on one is not different to root on another; root is root. Well 
actually it's EUID=0 is EUID=0 but you get the idea. 

Your problem is one of
root_squash active on the host
mounted ro on the guest
exported ro on the host
some weird new funkyness courtesy of NFS4

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] mysqld invoked oom-killer

2011-07-20 Thread Grant
 I ran into an out of memory problem.  The first mention of it in the
 kernel log is mysqld invoked oom-killer.  I haven't run into this
 before.  I do have a swap partition but I don't activate it based on
 something I read previously that I later found out was wrong so I
 suppose I should activate it.  Is fstab the way to do that?  I have a
 commented line in there for swap.

 Yes, just uncomment it and should be automatic. (you can use swapon
 to enable it without rebooting)

Got it.

 Can anyone tell how much swap this is:

 /dev/sda2           80325     1140614      530145   82  Linux swap / Solaris

 If it's something like 512MB, that may not have prevented me from
 running out of memory since I have 4GB RAM.  Is there any way to find
 out if there was a memory leak or other problem that should be
 investigated?

 That's 512MB. You can also create a swap file to supplement the swap
 partition if you don't want to or aren't able to repartition.

So I'm sure I have the concept right, is adding a 1GB swap partition
functionally identical to adding 1GB RAM with regard to the potential
for out-of-memory conditions?

 I'd check the MySQL logs to see if it shows anything. Maybe check the
 settings with regard to memory upper limits (Google it, there's a lot
 of info about MySQL RAM management).

Nothing in the log and from what I read online, an error should be
logged if I reach mysql's memory limit.

 If you're running any other servers that utilize MySQL like Apache or
 something, check its access logs to see if you had an abnormal number
 of connections. Bruteforce hacking or some kind of flooding/DOS attack
 might cause it to use more memory than it ordinarily would.

It runs apache and I found some info there.

 A Basic what's using up my memory? technique is to log the output of
 top by using the -b command. Something like top -b  toplog.txt.
 Then you can go back to the time when the OOM occurred and see what
 was using a lot of RAM at that time.

The kernel actually logged some top-like output and it looks like I
had a large number of apache2 processes running, likely 256 processes
which is the default MaxClients.  The specified total_vm for each
process was about 67000 which means 256 x 67MB = 17GB???

I looked over my apache2 log and I was hit severely by a single IP
right as the server went down.  However, that IP looks to be a
residential customer in the US and they engaged in normal browsing
behavior both before and after the disruption.  I think that IP may
have done the refresh-100-times thing out of frustration as the server
started to go down.

Does it sound like apache2 was using up all the memory?  If so, should
I look further for a catalyst or did this likely happen slowly?  What
can I do to prevent it from happening again?  Should I switch apache2
from prefork to threads?

- Grant



Re: [gentoo-user] Can't find reiser4 patch for kernel-2.6.39

2011-07-20 Thread Volker Armin Hemmann
On Wednesday 20 July 2011 15:20:43 Stroller wrote:
 On 19 July 2011, at 15:43, Volker Armin Hemmann wrote:
  …
  But we should put up with you trolling around and then acting all
  insulted and whiney when told to stop it?
  
  Unless there is some family or intimate connection the rest of us are
  unaware of, there are no grounds for you to be offended on behalf of a
  convicted murderer.
  
  I am not offended because of a murderer. I am offended by your weak
  trolling. Somebody asks some raiser4 related questions and little
  trolls like you pop up and spout their crap. All the fucking time.
 
 Ok, maybe I should just excuse you for your disability. It's clear you're
 not properly calibrated to social interactions.

oh sure, because I have called you for your trolling, I am unable to interact. 
You know me really well. Wow, thanks for your distant-analyzation of my mind. 
You must be a genius.

 
 The whole point of trolling is that it *is* an attempt to offend or
 disturb. So if you have no reason to be offended or disturbed, then my joke
 couldn't possibly have been trolling.

You offended and you disturbed. Instead of an answer you sent a tasteless 
joke. Which is a disturbance. Follwing your own sentence above that is 
trolling.

Really, try better.

  You had to use the word idiotic, apparently because it makes you
  feel big, like in your head you have more stature, when you slap
  someone else down. 
  no, I used it because your 'joke' was idiotic. Beware: I did not call
  yourself an idiot. A suble difference you should have thought about.
 
 Are you trying to backpedal now?

no. I stand by my word. Your 'joke' was bad trolling and idiotic.

 Because anyone can see that idiocy is
 inherently associated with idiots, and you're likely to antagonise people
 just the same whichever way you phrase it.

I really do not care about your esteem for me. Or what anybody else on this 
list think about me.
If you were among my 'real life' friends - yeah, I would care. But some 
anonymous troll on a mailing list? Seriously, you aren't even man enough to 
post using your name - and I shall regard your person highly?

  I am sick of people who troll around and then go all whiney when put
  down. You can either handle the flames or you restrain yourself. It
  seems that you
 You're really not worth the time.


because you got burnt it seems.

--
#163933



Re: [gentoo-user] Re: Can't find reiser4 patch for kernel-2.6.39

2011-07-20 Thread Volker Armin Hemmann
On Wednesday 20 July 2011 18:36:39 Michael Orlitzky wrote:
 On 07/20/2011 07:53 AM, Nikos Chantziaras wrote:
  On 07/18/2011 11:45 PM, Bill Longman wrote:
  On 07/18/2011 06:50 AM, Volker Armin Hemmann wrote:
  On Monday 18 July 2011 14:30:28 Stroller wrote:
  On 18 July 2011, at 12:18, Mick wrote:
  Is it a matter of waiting a bit longer?
  
  Yes, I think he'll be eligible for parole beginning 2023.
  
  please refrain yourself from idiotic remarks like this.
  
  Everyone *knows* he's got full internet access, Stroller.sheesh.
  File a bug report and the warden will pass it his way.
  
  Given that he invented his own file system, I wonder why the prison bars
  are able to keep him locked up...
 
 If using a filesystem written by a murderer is wrong, I don't want to
 read/write!

so you guys decided to jump on Stroller's bandwagon. Please, continue. Helps a 
lot when to decide which threads to ignore.

-- 
#163933



Re: [gentoo-user] mysqld invoked oom-killer

2011-07-20 Thread Adam Carter
 Does it sound like apache2 was using up all the memory?  If so, should
 I look further for a catalyst or did this likely happen slowly?  What
 can I do to prevent it from happening again?  Should I switch apache2
 from prefork to threads?

Do you need the full 256 instances?

How many simultaneous connections do you have?

Are you running keep alive (connection persistence, and i *think* it
also implies connection pipelining). Its the default these days but if
you're been upgrading through older versions the config might have it
disabled.

Also, WRT swap you can set vm.swappiness in /etc/sysctl.conf from the
default of 60 to something lower, to reduce the propensity to use
swap.



Re: [gentoo-user] mysqld invoked oom-killer

2011-07-20 Thread kashani

On 7/20/2011 4:08 PM, Grant wrote:

I ran into an out of memory problem.  The first mention of it in the
kernel log is mysqld invoked oom-killer.  I haven't run into this
before.  I do have a swap partition but I don't activate it based on
something I read previously that I later found out was wrong so I
suppose I should activate it.  Is fstab the way to do that?  I have a
commented line in there for swap.


Yes, just uncomment it and should be automatic. (you can use swapon
to enable it without rebooting)


Got it.


Can anyone tell how much swap this is:

/dev/sda2   80325 1140614  530145   82  Linux swap / Solaris

If it's something like 512MB, that may not have prevented me from
running out of memory since I have 4GB RAM.  Is there any way to find
out if there was a memory leak or other problem that should be
investigated?


That's 512MB. You can also create a swap file to supplement the swap
partition if you don't want to or aren't able to repartition.


So I'm sure I have the concept right, is adding a 1GB swap partition
functionally identical to adding 1GB RAM with regard to the potential
for out-of-memory conditions?


I'd check the MySQL logs to see if it shows anything. Maybe check the
settings with regard to memory upper limits (Google it, there's a lot
of info about MySQL RAM management).


Nothing in the log and from what I read online, an error should be
logged if I reach mysql's memory limit.


If you're running any other servers that utilize MySQL like Apache or
something, check its access logs to see if you had an abnormal number
of connections. Bruteforce hacking or some kind of flooding/DOS attack
might cause it to use more memory than it ordinarily would.


It runs apache and I found some info there.


A Basic what's using up my memory? technique is to log the output of
top by using the -b command. Something like top -b  toplog.txt.
Then you can go back to the time when the OOM occurred and see what
was using a lot of RAM at that time.


The kernel actually logged some top-like output and it looks like I
had a large number of apache2 processes running, likely 256 processes
which is the default MaxClients.  The specified total_vm for each
process was about 67000 which means 256 x 67MB = 17GB???

I looked over my apache2 log and I was hit severely by a single IP
right as the server went down.  However, that IP looks to be a
residential customer in the US and they engaged in normal browsing
behavior both before and after the disruption.  I think that IP may
have done the refresh-100-times thing out of frustration as the server
started to go down.

Does it sound like apache2 was using up all the memory?  If so, should
I look further for a catalyst or did this likely happen slowly?  What
can I do to prevent it from happening again?  Should I switch apache2
from prefork to threads?


	Switching from prefork to threads and vice versa can be very difficult 
depending on which modules and libraries your site uses. It is not on 
the list of things you should try first. Or second. Maybe 37th.
	I wouldn't expect adding swap to do much in this case. Your site gets 
hit hard, Mysql is a bit slow, Apache processes start stacking up, the 
system starts swapping, disk is really slow compared to RAM, and 
everything grinds to a complete halt possibly locking the machine up.


	The easiest thing to try is to turn off keepalives so child processes 
aren't hanging around keeping connections up. Also lower the number of 
Apache children to 8 * number of processors or a minimum of 32. Test a 
bit. Turning off keep alive can cause problems for Flash based uploaders 
to your site and code that expect the connection to stay up. For most 
sites this shouldn't matter.


	Next I'd look at tuning your Mysql config. If you've never touched 
my.cnf, by default it's set to use 64MB IIRC. You may need to raise this 
to get better performance. key_buffer and innodb_buffer_pool_size are 
the only two I'd modify without knowing more.


kashani



Re: [gentoo-user] Using KVM, what about clocks?

2011-07-20 Thread Albert Hopkins


On Wednesday, July 20 at 23:43 (+0200), Stefan G. Weichinger said:

[...]
 Are there any recommended kernel-config-settings for a performant and
 non-drifting KVM-server?

Well, KVM_CLOCK obviously:

KVM_CLOCK
bool KVM paravirtualized clock
select PARAVIRT
select PARAVIRT_CLOCK

  Turning on this option will allow you to run a paravirtualized clock
  when running over the KVM hypervisor. Instead of relying on a PIT
  (or probably other) emulation by the underlying device model, the host
  provides the guest with timing infrastructure such as time of day, and
  system time





Re: [gentoo-user] mysqld invoked oom-killer

2011-07-20 Thread Adam Carter
   The easiest thing to try is to turn off keepalives so child processes
 aren't hanging around keeping connections up.

KeepAliveTimeout defaults to 5 seconds, so that shouldn't be a
significant problem, and you get the efficiency of persistence and
probably pipelining too.

Could be worth reducing some of the tcp timers (the *_WAIT ones) if
your netstat is full of CLOSE_WAIT/TIME_WAIT etc sessions (which will
be more of a problem if you turn off keepalives).

But completely agree, if your mysql is sluggish, it will mean apache
processes hang around for longer than they need to and therefore build
up and use more memory. Use top then shift-m for quick overview of
memory use.



Re: [gentoo-user] Problems with Nvidia fake raid array

2011-07-20 Thread Jeff Cranmer
On Tue, 2011-07-19 at 09:06 -0400, Michael Orlitzky wrote:
 On 07/18/2011 11:08 PM, Jeff Cranmer wrote:
  
  
  Pardon my additional questions before taking the plunge here.  
  
  So, given that I have three devices, /dev/sda, /dev/sdb and /dev/sdc, if
  I run the command mdadm --assemble --scan, would this find all the
  components and create a /dev/md0 disk without damaging the contents of
  the original RAID array?
 
 If you've got the space and time, a backup can't hurt. Using --scan will
 make it check the config file, but right now, there's probably nothing
 useful in it. This looks like what you want to do to me:
 
   If the --scan option is not given, then only devices and identities
   listed on the command line are considered.
 
   The first device will be the array device, and the remainder will be
   examined when looking for components.
 
 but I'd figure out where that md0 is coming from (below) first.
 
When I tried mdadm --assemble --scan with nothing uncommented in the
configuration file, I got
mdadm: No arrays found in config file or automatically.
Typing dmesg | grep md0 returned no lines.

There are a couple of lines in dmesg when I run dmesg | grep md:, but
they read
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays
md: Scanned 0 and added 0 devices
md: autorun...
md: ... autorun DONE.

I think this means that raid5 is set up correctly in the kernel, but it
can't find the raid array.

Next I tried adding a line to the config file:

DEVICE /dev/sda /dev/sdb /dev/sdc
mdadm --assemble --scan returned the same results as before

Next, I tried commenting out the previously added DEVICE line, and
adding
ARRAY /dev/md0 devices=/dev/sda,/dev/sdb,/dev/sdc

mdadm --assemble --scan returns something different
mdadm: /dev/sdb has no superblock - assembly aborted.
 
  The only item in /dev/mapper is th default 'control' entry.  There is
  a /dev/md0 item already listed, but presently when I try to mount it, it
  reports that it is unable to read the superblock.  Would the command
  above fix this?
 
 Depends. Where'd the md0 come from? You probably have something in your
 logs or dmesg, unless that device was created manually on your old system.
 
 
  Where is the config file mentioned in your e-mail, and do I need to edit
  it first to add the three raid disks?
 
 It's /etc/mdadm.conf. You don't need it to create or use the array, but
 you'll want to run mdadm when the machine boots and the config file
 tells it what to do. Once the array is working, you can just do,
 
   mdadm --detail --scan  /etc/mdadm.conf
 
mdadm --detail --scan returns no output.

Also, I just checked /dev and md0 is now gone from the list.

Since there are also /dev/sg0, /dev/sg1 and /dev/sg1, I also tried those
instead of /dev/sda, /dev/sdb and /dev/sdc in the ARRAY line, but mdadm
--assemble --scan returned no output

I tried re-booting, but /dev/md0 is now permanently gone.

Does this give you any ideas what I can try next??

Thanks

Jeff





Re: [gentoo-user] mysqld invoked oom-killer

2011-07-20 Thread Michael Mol
On Wed, Jul 20, 2011 at 7:54 PM, kashani kashani-l...@badapple.net wrote:
 On 7/20/2011 4:08 PM, Grant wrote:

 I ran into an out of memory problem.  The first mention of it in the
 kernel log is mysqld invoked oom-killer.  I haven't run into this
 before.  I do have a swap partition but I don't activate it based on
 something I read previously that I later found out was wrong so I
 suppose I should activate it.  Is fstab the way to do that?  I have a
 commented line in there for swap.

 Yes, just uncomment it and should be automatic. (you can use swapon
 to enable it without rebooting)

 Got it.

 Can anyone tell how much swap this is:

 /dev/sda2           80325     1140614      530145   82  Linux swap /
 Solaris

 If it's something like 512MB, that may not have prevented me from
 running out of memory since I have 4GB RAM.  Is there any way to find
 out if there was a memory leak or other problem that should be
 investigated?

 That's 512MB. You can also create a swap file to supplement the swap
 partition if you don't want to or aren't able to repartition.

 So I'm sure I have the concept right, is adding a 1GB swap partition
 functionally identical to adding 1GB RAM with regard to the potential
 for out-of-memory conditions?

 I'd check the MySQL logs to see if it shows anything. Maybe check the
 settings with regard to memory upper limits (Google it, there's a lot
 of info about MySQL RAM management).

 Nothing in the log and from what I read online, an error should be
 logged if I reach mysql's memory limit.

 If you're running any other servers that utilize MySQL like Apache or
 something, check its access logs to see if you had an abnormal number
 of connections. Bruteforce hacking or some kind of flooding/DOS attack
 might cause it to use more memory than it ordinarily would.

 It runs apache and I found some info there.

 A Basic what's using up my memory? technique is to log the output of
 top by using the -b command. Something like top -b  toplog.txt.
 Then you can go back to the time when the OOM occurred and see what
 was using a lot of RAM at that time.

 The kernel actually logged some top-like output and it looks like I
 had a large number of apache2 processes running, likely 256 processes
 which is the default MaxClients.  The specified total_vm for each
 process was about 67000 which means 256 x 67MB = 17GB???

 I looked over my apache2 log and I was hit severely by a single IP
 right as the server went down.  However, that IP looks to be a
 residential customer in the US and they engaged in normal browsing
 behavior both before and after the disruption.  I think that IP may
 have done the refresh-100-times thing out of frustration as the server
 started to go down.

 Does it sound like apache2 was using up all the memory?  If so, should
 I look further for a catalyst or did this likely happen slowly?  What
 can I do to prevent it from happening again?  Should I switch apache2
 from prefork to threads?

        Switching from prefork to threads and vice versa can be very
 difficult depending on which modules and libraries your site uses. It is not
 on the list of things you should try first. Or second. Maybe 37th.
        I wouldn't expect adding swap to do much in this case. Your site gets
 hit hard, Mysql is a bit slow, Apache processes start stacking up, the
 system starts swapping, disk is really slow compared to RAM, and everything
 grinds to a complete halt possibly locking the machine up.

        The easiest thing to try is to turn off keepalives so child processes
 aren't hanging around keeping connections up. Also lower the number of
 Apache children to 8 * number of processors or a minimum of 32. Test a bit.
 Turning off keep alive can cause problems for Flash based uploaders to your
 site and code that expect the connection to stay up. For most sites this
 shouldn't matter.

        Next I'd look at tuning your Mysql config. If you've never touched
 my.cnf, by default it's set to use 64MB IIRC. You may need to raise this to
 get better performance. key_buffer and innodb_buffer_pool_size are the only
 two I'd modify without knowing more.

Also, run a caching proxy if at all possible. That made the single
biggest difference for my server.

Other useful things:
* Set the MaxRequestsPerChild to something like 450. As part of their
caching, things like mod_php will grow the process size a bit as the
apache process gets old in the tooth. Setting MaxRequestsPerChild
lower causes the process to expire and be replaced sooner. On my
server, I see apache processes consume about 60MB towards the end, and
then cycle back and consume about 22MB.
* On my server, I have MinSpareServers at 10, and MaxSpareServers at
12. I handle spikes pretty well, and free the memory quickly.
* If you're using PHP, set memory_limit in php.ini as low as your
applications can survive.

I'm assuming you're running on a VPS or similar. At 512MB of RAM with
a web server and database server, you need to keep 

[gentoo-user] New computer and Gentoo

2011-07-20 Thread CJoeB
Hi everyone,

Today, I ordered a new desktop from Dell (offer too good to pass up!). 
The system is a Dell XPS 8300 with an Intel Core i7 processor.  I was
reading the Gentoo wiki about safe CFLAGS and it said that march=native
is recommended if I use gcc = 4.2.3.

I looked at processor specific CFLAGS and if I am understanding this
correctly, for an Intel i7, I would use march=prescott for a 32 bit OS. 
It also mentions march=core2 if using gcc  4.3 for a 64-bit OS. 
However, it has amd64 in brackets.  So would this be for an amd system?

Should I stick with march=native?

Advice would be appreciated. 

Regards,

Colleen


-- 

Registered Linux User #411143 with the Linux Counter, http://counter.li.org





Re: [gentoo-user] New computer and Gentoo

2011-07-20 Thread Adam Carter
amd64 means any x86 64bit platform, so Intel too.

march=native is good if you're not using distcc, or if you're only
using distcc on core2 boxes. Otherwise be specific.