Re: [gentoo-user] libpng15: fltk graphicsmagick failed to build

2011-10-17 Thread Bill Kenworthy
https://bugs.gentoo.org/show_bug.cgi?id=384257

Search an ye shall find ...

On Mon, 2011-10-17 at 04:42 +0200, meino.cra...@gmx.de wrote:
 Hi,
 
 after updating to lipng15 and rebuilding all needed stuff, fltk
 and graphicsmagick exhibit build failures:
 
 === FLTK ===





Re: [gentoo-user] Another Install Issue

2011-10-17 Thread Florian Philipp
Am 17.10.2011 00:46, schrieb Alex Schuster:
 Florian Philipp is not up to date yet:
 
 I agree that the problem should be solved but just in case Colleen wants
 to continue with his installation (I know, he is installing Gentoo for
~~~   ~~~
 
 the first time so I doubt he values his time very high ;-) ), I suggest
   ~~~~~~~
 
 Read the rest of this thread, you'll be quite surprised :-)
 
   Wonko
 

Ups, sorry Colleen! :-D



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] How to cross compile Perl for ARM?

2011-10-17 Thread Raffaele BELARDI
On 10/14/2011 05:15 PM, czernitko wrote:
 AFAIK the biggest disadvantage of crossdev-created toolchain, compared
 to other cross compilation tools, is that without usage of emulator
 (like qemu-user) it is not possible to compile things that use in their
 configure scipts checks that need to be run on the target architecture
 (like Perl).

I don't know how the CodeSourcery toolchain was generated so I'm
probably missing your point, but  with buildroot I easily build the
whole rootfs on Gentoo x86 PC. No target emulation at all.

buildroot takes off of you the burden of patching the configure scripts
to properly cross-compile. But, the version of buildroot I used does not
include Perl, only 'microperl' (which I did not need so I never compiled).


Re: [gentoo-user] Re: How to cross compile Perl for ARM?

2011-10-17 Thread czernitko
Thank you James! I totally missed the existence of gentoo-embedded list, I
I'll post my questions there.

2011/10/16 James wirel...@tampabay.rr.com

 czernitko czernitko at gmail.com writes:


  Hello!I started playing a little bit with cross compilation
  for ARM architecture. Using crossdev I created a toolchain
  for arm-none-linux-gnueabi tuple.Now I'd like to emerge
  some more packages, but perl constantly refuses to emerge
  and it is needed by many packages.

 You have the right idea using the gentoo embedded handbook as your guide.

 http://www.gentoo.org/proj/en/base/embedded/handbook/

 You may want to join/post to the gentoo-embedded list where
 you'll find much more expertise on ARM and cross-compiling
 issues.

 hth,
 James







Re: [gentoo-user] Another Install Issue

2011-10-17 Thread Neil Bothwick
On Mon, 17 Oct 2011 00:35:35 +0200, Florian Philipp wrote:

 preup() {
 if [ $IFACE = eth0 ]; then
 ebegin Reloading broadcom and tg3 modules
 modprobe -r foo bar 
 modprobe broadcom 
 modprobe tg3
 ewend $? Failed to reload modules
 fi
 return 0
 }

This seems more elegant than a separate init script, but do you want it
to return 0 unconditionally? If the modules fail to load, surely you want
the attempt to bring the interface up to abort?


-- 
Neil Bothwick

Famed tautologist dies of suicide in distressing tragedy


signature.asc
Description: PGP signature


Re: [gentoo-user] Another Install Issue

2011-10-17 Thread Mick
On 17 October 2011 09:15, Neil Bothwick n...@digimed.co.uk wrote:
 On Mon, 17 Oct 2011 00:35:35 +0200, Florian Philipp wrote:

 preup() {
     if [ $IFACE = eth0 ]; then
         ebegin Reloading broadcom and tg3 modules
         modprobe -r foo bar 
         modprobe broadcom 
         modprobe tg3
         ewend $? Failed to reload modules
     fi
     return 0
 }

 This seems more elegant than a separate init script, but do you want it
 to return 0 unconditionally? If the modules fail to load, surely you want
 the attempt to bring the interface up to abort?

In my head I find it less elegant to be honest.  Is it up to a network
configuration script to load the *kernel* module for the hardware?
-- 
Regards,
Mick



Re: [gentoo-user] Another Install Issue

2011-10-17 Thread Neil Bothwick
On Mon, 17 Oct 2011 12:19:16 +0100, Mick wrote:

  This seems more elegant than a separate init script, but do you want
  it to return 0 unconditionally? If the modules fail to load, surely
  you want the attempt to bring the interface up to abort?  
 
 In my head I find it less elegant to be honest.  Is it up to a network
 configuration script to load the *kernel* module for the hardware?

Is it up to an init script to do that either? I'd say no. either way
seems wrong, but having the network config check that the interface is
available before trying to bring it up seems somewhat less wrong.


-- 
Neil Bothwick

I can picture in my mind a world without war, a world without hate. And I
can picture us attacking that world, because they'd never expect it.


signature.asc
Description: PGP signature


Re: [gentoo-user] Another Install Issue

2011-10-17 Thread Florian Philipp
Am 17.10.2011 13:30, schrieb Neil Bothwick:
 On Mon, 17 Oct 2011 12:19:16 +0100, Mick wrote:
 
 This seems more elegant than a separate init script, but do you want
 it to return 0 unconditionally? If the modules fail to load, surely
 you want the attempt to bring the interface up to abort?  

 In my head I find it less elegant to be honest.  Is it up to a network
 configuration script to load the *kernel* module for the hardware?
 
 Is it up to an init script to do that either? I'd say no. either way
 seems wrong, but having the network config check that the interface is
 available before trying to bring it up seems somewhat less wrong.
 
 

Yes, I intended it to return 0 unconditionally. My reasoning was that
a) trying anyway doesn't hurt.
b) when you change your kernel config or hardware and don't need that
workaround anymore, it is better to have a working network and a warning
rather than no network and an error.
c) for something that is potentially important for the user to get
access to the system, you should try as hard as possible to get it
running before giving up. Of course, this is more important for a
headless server than a desktop but scripts tend to get copied around.

Concerning what is more elegant: no clue. I guess you could even use
udev for this stuff but I don't know the syntax.

One thing that I worry more about is that there might be a race
condition. Maybe after loading the module, some time is necessary for
the interface to appear. I ran into an issue like that while playing
around with the zram module. In such a case, the separate init script
has a higher chance to succeed than a bash function called some
milliseconds before the interface initialization.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Another Install Issue

2011-10-17 Thread J. Roeleveld
On Mon, October 17, 2011 12:35 am, Florian Philipp wrote:

snipped


 I agree that the problem should be solved but just in case Colleen wants
 to continue with his installation (I know, he is installing Gentoo for
 the first time so I doubt he values his time very high ;-) ), I suggest
 he either implements my proposal outlined above or adds similar code to
 /etc/conf.d/net:

 preup() {
 if [ $IFACE = eth0 ]; then
 ebegin Reloading broadcom and tg3 modules
 modprobe -r foo bar 
 modprobe broadcom 
 modprobe tg3
 ewend $? Failed to reload modules
 fi
 return 0
 }

For correctness, please change the 4th line above from:
 modprobe -r foo bar  
to:
 modprobe -r broadcom tg3  

I somehow doubt there will be a module called foo or bar :)

--
Joost




Re: [gentoo-user] Apologize to everyone for my nonprofessional

2011-10-17 Thread du yang
On Saturday 10/15/11 00:05:35 CST, Lavender wrote:
 It's my fault, there're no line-breaks because I wrote the letters
 exactly like what the screenshot shows . I will write just like
 this letter. No more questions , good evening and tomorrow is
 a nice day !
  

A little tip about your mail client.
It handles mail thread references incorrectly, and changes mail titles.

Maybe you could try a mail agent like gmail which does a good job for mailling 
lists.
-- 
oooO:
(..):
:\.(:::Oooo::
::\_)::(..)::
:::)./:::
::(_/


signature.asc
Description: Digital signature


Re: [gentoo-user] Another Install Issue

2011-10-17 Thread Neil Bothwick
On Mon, 17 Oct 2011 14:39:40 +0200, Florian Philipp wrote:

  Is it up to an init script to do that either? I'd say no. either way
  seems wrong, but having the network config check that the interface is
  available before trying to bring it up seems somewhat less wrong.

 Yes, I intended it to return 0 unconditionally. My reasoning was that
 a) trying anyway doesn't hurt.

Fair enough.

 One thing that I worry more about is that there might be a race
 condition. Maybe after loading the module, some time is necessary for
 the interface to appear. I ran into an issue like that while playing
 around with the zram module. In such a case, the separate init script
 has a higher chance to succeed than a bash function called some
 milliseconds before the interface initialization.

You could add a sleep 1 to preup().


-- 
Neil Bothwick

By the time you can make ends meet, they move the ends.


signature.asc
Description: PGP signature


Re: [gentoo-user] Another Install Issue

2011-10-17 Thread Florian Philipp
Am 17.10.2011 14:40, schrieb J. Roeleveld:
 On Mon, October 17, 2011 12:35 am, Florian Philipp wrote:
 
 snipped
 

 I agree that the problem should be solved but just in case Colleen wants
 to continue with his installation (I know, he is installing Gentoo for
 the first time so I doubt he values his time very high ;-) ), I suggest
 he either implements my proposal outlined above or adds similar code to
 /etc/conf.d/net:

 preup() {
 if [ $IFACE = eth0 ]; then
 ebegin Reloading broadcom and tg3 modules
 modprobe -r foo bar 
 modprobe broadcom 
 modprobe tg3
 ewend $? Failed to reload modules
 fi
 return 0
 }
 
 For correctness, please change the 4th line above from:
  modprobe -r foo bar  
 to:
  modprobe -r broadcom tg3  
 
 I somehow doubt there will be a module called foo or bar :)
 
 --
 Joost
 
 

I should stop writing replies at midnight ;) First I call Colleen a male
newcomer, then I fail to change my own test code.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re:Don’t doubt! It really works! It can help you right now!

2011-10-17 Thread Michael Mol
Can Dennis be dropped from the mailing list? I sent him an email
off-list a week ago, but we're still seeing these.

On Mon, Oct 17, 2011 at 3:34 AM, Dennis Preus mig_25_fox...@hotmail.com wrote:
 ...Experiment in your sexual life
 more!  http://www.letm.fr/com.friend.php?ukid_hotmail=03u4




-- 
:wq



Re: [gentoo-user] Re:Don’t doubt! It really works! It can help you right now!

2011-10-17 Thread Torsten Veller
* Michael Mol mike...@gmail.com:
 Can Dennis be dropped from the mailing list?

Should have happened: bug #387401



[gentoo-user] Re: My X11 mouse icons have acquired unwanted borders. Help!

2011-10-17 Thread walt
On 10/16/2011 03:11 PM, Jesús J. Guerrero Botella wrote:


 I have no idea if the default X pointer theme has changed lately.

Yes, gnome-themes-standard just updated to gnome3, which I don't
much like.  The gnome control center doesn't have any way to set
a mouse pointer theme AFAICT, but the optional gcursor package does
the job.






Re: [gentoo-user] Re: My X11 mouse icons have acquired unwanted borders. Help!

2011-10-17 Thread Alan Mackenzie
On Sun, Oct 16, 2011 at 05:08:51AM -0700, walt wrote:
 On 10/16/2011 03:15 AM, Alan Mackenzie wrote:
  Hello, Gentoo!

  I'm using Gnome 2.32.1 in X11.

  My mouse pointers have all acquired unwanted borders.  That is to say,
  where there used just to be a solid black arrow, it is now surrounded by
  a black outline enclosing a white outline around the arrow.

  I don't like this!  I didn't ask for it!

  I first noticed this problem while starting Firefox.  It seemed to hiccup
  a bit (I think), and then all pointers (in all applications) went bad.

  I've looked inside Gnome preferences, but can't find a way to change
  the pointers back.  I suspect this is an X setting rather than a Gnome
  one.

 Have a look at gnome-extra/gcursor.

Just done that.  I've installed it, and it gives just four choices, all
of which have the border I don't like or (even worse) a shadow.  Other
than that it gives a file selector, which doesn't seem to be of any use.

What I want is to just to get back the plain black icons I had before.

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] libpng15: fltk graphicsmagick failed to build

2011-10-17 Thread Mark Knecht
On Sun, Oct 16, 2011 at 7:42 PM,  meino.cra...@gmx.de wrote:
 Hi,

 after updating to lipng15 and rebuilding all needed stuff, fltk
 and graphicsmagick exhibit build failures:


I got similar errors for some other package on my wife's machine last
night. In that case they were solved by using the ~amd64 version of
the package.

- Mark



Re: [gentoo-user] libpng15: fltk graphicsmagick failed to build

2011-10-17 Thread meino . cramer
Mark Knecht markkne...@gmail.com [11-10-17 18:40]:
 On Sun, Oct 16, 2011 at 7:42 PM,  meino.cra...@gmx.de wrote:
  Hi,
 
  after updating to lipng15 and rebuilding all needed stuff, fltk
  and graphicsmagick exhibit build failures:
 
 
 I got similar errors for some other package on my wife's machine last
 night. In that case they were solved by using the ~amd64 version of
 the package.
 
 - Mark
 

...and I thought, the credo is dont mix 'em

Best regards,
mcc





Re: [gentoo-user] libpng15: fltk graphicsmagick failed to build

2011-10-17 Thread Michael Mol
On Mon, Oct 17, 2011 at 12:59 PM,  meino.cra...@gmx.de wrote:
 Mark Knecht markkne...@gmail.com [11-10-17 18:40]:
 On Sun, Oct 16, 2011 at 7:42 PM,  meino.cra...@gmx.de wrote:
  Hi,
 
  after updating to lipng15 and rebuilding all needed stuff, fltk
  and graphicsmagick exhibit build failures:
 

 I got similar errors for some other package on my wife's machine last
 night. In that case they were solved by using the ~amd64 version of
 the package.

 - Mark


 ...and I thought, the credo is dont mix 'em

Unless you know what you're doing, or can avoid annoying someone who does.

This is a transition period for libpng, and those are always messy.
They're still working on getting things stabilized, as a lot of
currently masked versions are the only versions with libpng15 support.

-- 
:wq



Re: [gentoo-user] libpng15: fltk graphicsmagick failed to build

2011-10-17 Thread Michael Mol
On Mon, Oct 17, 2011 at 1:03 PM, Michael Mol mike...@gmail.com wrote:
 On Mon, Oct 17, 2011 at 12:59 PM,  meino.cra...@gmx.de wrote:
 Mark Knecht markkne...@gmail.com [11-10-17 18:40]:
 On Sun, Oct 16, 2011 at 7:42 PM,  meino.cra...@gmx.de wrote:
  Hi,
 
  after updating to lipng15 and rebuilding all needed stuff, fltk
  and graphicsmagick exhibit build failures:
 

 I got similar errors for some other package on my wife's machine last
 night. In that case they were solved by using the ~amd64 version of
 the package.

 - Mark


 ...and I thought, the credo is dont mix 'em

 Unless you know what you're doing, or can avoid annoying someone who does.

 This is a transition period for libpng, and those are always messy.
 They're still working on getting things stabilized, as a lot of
 currently masked versions are the only versions with libpng15 support.

Hm. Actually, there's a phrase someone I know likes to say: There are
universal principles, but there are no universal applications. So you
shouldn't mix 'em, except when you have to.

(Though, if you find you have to, it's probably worthwhile filing a
bug asking for a stabilization request.)

-- 
:wq



Re: [gentoo-user] libpng15: fltk graphicsmagick failed to build

2011-10-17 Thread Mark Knecht
On Mon, Oct 17, 2011 at 9:59 AM,  meino.cra...@gmx.de wrote:
 Mark Knecht markkne...@gmail.com [11-10-17 18:40]:
 On Sun, Oct 16, 2011 at 7:42 PM,  meino.cra...@gmx.de wrote:
  Hi,
 
  after updating to lipng15 and rebuilding all needed stuff, fltk
  and graphicsmagick exhibit build failures:
 

 I got similar errors for some other package on my wife's machine last
 night. In that case they were solved by using the ~amd64 version of
 the package.

 - Mark


 ...and I thought, the credo is dont mix 'em

 Best regards,
 mcc

BTW - It was dev-lang/R that I had this problem with.

In general, don't mix 'em. I agree.

However things gotta work and there doesn't seem to be a consistent
release process so that when the Gentoo devs release a common library
as 'stable' they also ensure that _every_ app that uses the library
runs with that library. I think that's what's happened here. It's
mostly OK, but there are a few things that still point at 1.4,

Now, in general, don't mix 'em, but here's my package.keywords file
for my compute server::

mark@c2stable ~ $ cat /etc/portage/package.keywords
sys-kernel/gentoo-sources ~amd64
sys-apps/portage ~*
app-portage/eix ~amd64
app-emulation/virtualbox ~amd64
app-emulation/virtualbox-modules ~amd64
app-emulation/virtualbox-additions ~amd64
app-emulation/virtualbox-extpack-oracle ~amd64
x11-drivers/xf86-video-virtualbox ~amd64
x11-drivers/xf86-input-virtualbox ~amd64
app-emulation/vmware-modules ~amd64
app-emulation/vmware-tools ~amd64
app-emulation/vmware-player ~amd64
x11-libs/libview ~amd64
sci-libs/ta-lib ~amd64
sys-power/cpufrequtils ~amd64
media-libs/tiff ~amd64
dev-util/nvidia-cuda-toolkit ~amd64
dev-util/nvidia-cuda-sdk ~amd64
x11-drivers/nvidia-drivers ~amd64
media-video/nvidia-settings ~amd64
dev-util/codeblocks ~amd64
x11-misc/read-edid ~amd64
net-im/skype ~amd64
app-forensics/chkrootkit ~amd64
dev-lang/R ~amd64
dev-util/kbuild ~amd64
mark@c2stable ~ $

Most of this is due to me wanting newer versions but I think a few may
not have stable versions at all, or didn't when I first installed
them.

- Mark



Re: [gentoo-user] Re:Don’t doubt! It really works! It can help you right now!

2011-10-17 Thread Pandu Poluan
On Oct 17, 2011 8:50 PM, Torsten Veller t...@gentoo.org wrote:

 * Michael Mol mike...@gmail.com:
  Can Dennis be dropped from the mailing list?

 Should have happened: bug #387401


Whoa... never knew you can /dev/null someone through b.g.o ... O_o

Can I /dev/null my boss using a locally-installed bugzilla? ;-)

Rgds,


Re: [gentoo-user] libpng15: fltk graphicsmagick failed to build

2011-10-17 Thread justin
On 10/17/11 6:59 PM, meino.cra...@gmx.de wrote:
 Mark Knecht markkne...@gmail.com [11-10-17 18:40]:
 On Sun, Oct 16, 2011 at 7:42 PM,  meino.cra...@gmx.de wrote:
 Hi,

 after updating to lipng15 and rebuilding all needed stuff, fltk
 and graphicsmagick exhibit build failures:


 I got similar errors for some other package on my wife's machine last
 night. In that case they were solved by using the ~amd64 version of
 the package.

 - Mark

 
 ...and I thought, the credo is dont mix 'em
 
 Best regards,
 mcc
 
 
 

It is on the way to stable

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



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] libpng15: fltk graphicsmagick failed to build

2011-10-17 Thread Pandu Poluan
On Oct 18, 2011 12:22 AM, Mark Knecht markkne...@gmail.com wrote:

 On Mon, Oct 17, 2011 at 9:59 AM,  meino.cra...@gmx.de wrote:
  Mark Knecht markkne...@gmail.com [11-10-17 18:40]:
  On Sun, Oct 16, 2011 at 7:42 PM,  meino.cra...@gmx.de wrote:
   Hi,
  
   after updating to lipng15 and rebuilding all needed stuff, fltk
   and graphicsmagick exhibit build failures:
  
 
  I got similar errors for some other package on my wife's machine last
  night. In that case they were solved by using the ~amd64 version of
  the package.
 
  - Mark
 
 
  ...and I thought, the credo is dont mix 'em
 
  Best regards,
  mcc

 BTW - It was dev-lang/R that I had this problem with.

 In general, don't mix 'em. I agree.

 However things gotta work and there doesn't seem to be a consistent
 release process so that when the Gentoo devs release a common library
 as 'stable' they also ensure that _every_ app that uses the library
 runs with that library. I think that's what's happened here. It's
 mostly OK, but there are a few things that still point at 1.4,

 Now, in general, don't mix 'em, but here's my package.keywords file
 for my compute server::

 mark@c2stable ~ $ cat /etc/portage/package.keywords
 sys-kernel/gentoo-sources ~amd64
 sys-apps/portage ~*
 app-portage/eix ~amd64
 app-emulation/virtualbox ~amd64
 app-emulation/virtualbox-modules ~amd64
 app-emulation/virtualbox-additions ~amd64
 app-emulation/virtualbox-extpack-oracle ~amd64
 x11-drivers/xf86-video-virtualbox ~amd64
 x11-drivers/xf86-input-virtualbox ~amd64
 app-emulation/vmware-modules ~amd64
 app-emulation/vmware-tools ~amd64
 app-emulation/vmware-player ~amd64
 x11-libs/libview ~amd64
 sci-libs/ta-lib ~amd64
 sys-power/cpufrequtils ~amd64
 media-libs/tiff ~amd64
 dev-util/nvidia-cuda-toolkit ~amd64
 dev-util/nvidia-cuda-sdk ~amd64
 x11-drivers/nvidia-drivers ~amd64
 media-video/nvidia-settings ~amd64
 dev-util/codeblocks ~amd64
 x11-misc/read-edid ~amd64
 net-im/skype ~amd64
 app-forensics/chkrootkit ~amd64
 dev-lang/R ~amd64
 dev-util/kbuild ~amd64
 mark@c2stable ~ $

 Most of this is due to me wanting newer versions but I think a few may
 not have stable versions at all, or didn't when I first installed
 them.

 - Mark


That seems short ;-)

My package.accepted_keyword file is already longer than 80 lines... without
X or any GUI :-P

I'm such a control freak -.-

Rgds,


Re: [gentoo-user] libpng15: fltk graphicsmagick failed to build

2011-10-17 Thread Mark Knecht
On Mon, Oct 17, 2011 at 11:09 AM, Pandu Poluan pa...@poluan.info wrote:

 On Oct 18, 2011 12:22 AM, Mark Knecht markkne...@gmail.com wrote:
SNIP
 Now, in general, don't mix 'em, but here's my package.keywords file
 for my compute server::

SNIP

 Most of this is due to me wanting newer versions but I think a few may
 not have stable versions at all, or didn't when I first installed
 them.

 - Mark


 That seems short ;-)

 My package.accepted_keyword file is already longer than 80 lines... without
 X or any GUI :-P

 I'm such a control freak -.-

 Rgds,


Yeah, I imagine for lots of people this list looks short. For Meino it
might look huge. In my case all my machines (8 of them) run stable
mainly because I like the stability it gives me. I then add only the
few ~amd64 things I think I that specific machine needs, and in the
case of this thread, a package or two that require babysitting until
the devs get caught up.

I try to run eix-test-obsolete after every update to catch when they
fix things, as in the case of dev-lang/R. When the version I have
installed becomes stable I try to remember to remove the corresponding
entry from package.keywords, but I don't always remember.

- Mark



Re: [gentoo-user] Re:Don’t doubt! It really works! It can help you right now!

2011-10-17 Thread Dale

Pandu Poluan wrote:



On Oct 17, 2011 8:50 PM, Torsten Veller t...@gentoo.org 
mailto:t...@gentoo.org wrote:


 * Michael Mol mike...@gmail.com mailto:mike...@gmail.com:
  Can Dennis be dropped from the mailing list?

 Should have happened: bug #387401


Whoa... never knew you can /dev/null someone through b.g.o ... O_o

Can I /dev/null my boss using a locally-installed bugzilla? ;-)

Rgds,



I did that to my ex.  I didn't have to file a bug report either.  lol

Dale

:-)  :-)


Re: [gentoo-user] Re: Which sound codecs do I need?

2011-10-17 Thread Walter Dnes
On Thu, Oct 13, 2011 at 04:58:24AM +0300, Nikos Chantziaras wrote
 On 10/13/2011 02:35 AM, Walter Dnes wrote:
  I'm installing Gentoo on an older Intel Core2 Duo machine from Dell
  for some testing.  Checking with lspci -v from the install CD shows...
 
  00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio 
  Controller (rev 02)
Subsystem: Dell Inspiron 530
 
 Well, since you're too busy to use Google, let me do that for you ;-)
 
 http://support.dell.com/support/edocs/systems/inspd530/en/OM/HTML/appendix.htm
 
 The sound chip is a Realtek ALC888.  I'm sure this is all the info 
 needed to select the correct driver.

  Your Google-fu is stronger than mine.  I did try Google, but it didn't
occur to me to use that specific search.  Anyhow, thanks for the info.

-- 
Walter Dnes waltd...@waltdnes.org



[gentoo-user] Did I not get the memo about perl python?

2011-10-17 Thread Mark Knecht
Sort of strange. One of my machines just showed up wanting to rebuild
about 25 packages due to a USE flag change? All the packages were
showing -perl and/or -python. Seemed like a strange change at this
point in the life of a desktop PC so I added both flags to make.conf
and the machine is once again content to update just a couple of
packages.

I don't recall seeing any discussion about this.Was there??

Cheers,
Mark



Re: [gentoo-user] Re: Which sound codecs do I need?

2011-10-17 Thread Walter Dnes
On Wed, Oct 12, 2011 at 10:52:54PM -0500, Dale wrote

 Or lspci -k would tell what driver the CD was using, if sound worked 
 which I bet it did.

  That tells me which *DRIVER* is in use (so does lspci -v for that
matter).  It does *NOT* tell me the *AUDIO CODEC*.  lspci -k shows...

00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio 
Controller (rev 02)
Subsystem: Dell Device 020d
Kernel driver in use: HDA Intel

-- 
Walter Dnes waltd...@waltdnes.org



Re: [gentoo-user] Did I not get the memo about perl python?

2011-10-17 Thread Michael Orlitzky
On 10/17/2011 05:07 PM, Mark Knecht wrote:
 Sort of strange. One of my machines just showed up wanting to rebuild
 about 25 packages due to a USE flag change? All the packages were
 showing -perl and/or -python. Seemed like a strange change at this
 point in the life of a desktop PC so I added both flags to make.conf
 and the machine is once again content to update just a couple of
 packages.
 
 I don't recall seeing any discussion about this.Was there??
 

Not really. This is about it:

  http://blog.jolexa.net/

I complained about the lack of USE flag documentation, life goes on. You
can probably do without them set.



[gentoo-user] How to configure eth1:1 ?

2011-10-17 Thread Grant Edwards
I'm trying to configure a second IP address for eth1 using the syntax
I found at

  http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=2#doc_chap1

But, it doesn't work.

Here's my /etc/init.d/net file:

  config_eth0=192.168.8.4/16
  routes_eth0=default via 192.168.0.254
  config_eth1=10.0.0.1/8
  192.168.250.1/24

But, starting eth1 says:

# /etc/init.d/net.eth1 start
 * Bringing up interface eth1
 *   Starting netplug on eth1 ... [ ok ]
 * Backgrounding ...
 * ERROR: net.eth1 failed to start
 
Only eth1 is configured.  eth1:1 isn't configured.




If I configure the interfaces by hand, it works fine:

alpha init.d # ifconfig eth1 10.0.0.1/8
alpha init.d # ifconfig eth1:1 192.168.250.1/24
alpha init.d # ifconfig

[...]

eth1  Link encap:Ethernet  HWaddr 00:16:17:84:a7:b3  
  inet addr:10.0.0.1  Bcast:10.255.255.255  Mask:255.0.0.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:128173 errors:0 dropped:120 overruns:0 frame:0
  TX packets:57741 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:10965596 (10.4 MiB)  TX bytes:39773535 (37.9 MiB)
  Interrupt:20 Base address:0xc000 

eth1:1Link encap:Ethernet  HWaddr 00:16:17:84:a7:b3  
  inet addr:192.168.250.1  Bcast:192.168.250.255 Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  Interrupt:20 Base address:0xc000 

[...]  


How do I configure a second IP address for an interface?

-- 
Grant Edwards   grant.b.edwardsYow! I have the power to
  at   HALT PRODUCTION on all
  gmail.comTEENAGE SEX COMEDIES!!




Re: [gentoo-user] Did I not get the memo about perl python?

2011-10-17 Thread Mark Knecht
On Mon, Oct 17, 2011 at 2:20 PM, Michael Orlitzky mich...@orlitzky.com wrote:
 On 10/17/2011 05:07 PM, Mark Knecht wrote:
 Sort of strange. One of my machines just showed up wanting to rebuild
 about 25 packages due to a USE flag change? All the packages were
 showing -perl and/or -python. Seemed like a strange change at this
 point in the life of a desktop PC so I added both flags to make.conf
 and the machine is once again content to update just a couple of
 packages.

 I don't recall seeing any discussion about this.Was there??


 Not really. This is about it:

  http://blog.jolexa.net/

 I complained about the lack of USE flag documentation, life goes on. You
 can probably do without them set.



hehe So who is this Jeremy guy anyway, thinking he'll just change
USE flag defaults to make _his_ life easier? ;-)

OK, I'm fine with it, and glad to know I wasn't purposely left off the
distribution list. I go into a funk and am hard to be around when that
happens... ;-)

Chaeers,
Mark



Re: [gentoo-user] Did I not get the memo about perl python?

2011-10-17 Thread Alex Schuster
Mark Knecht writes:

 Sort of strange. One of my machines just showed up wanting to rebuild
 about 25 packages due to a USE flag change? All the packages were
 showing -perl and/or -python. Seemed like a strange change at this
 point in the life of a desktop PC so I added both flags to make.conf
 and the machine is once again content to update just a couple of
 packages.
 
 I don't recall seeing any discussion about this.Was there??

There was a message on the gentoo-announce list on Sept. 30th:

--
Hello,

In a few days, USE={python,perl} will be removed from the profile
defaults. There has been sufficient levels of testing so the impact to
users will be small besides a potentially large number of rebuilds
which should not be a cause for alarm. The end result will be
beneficial for a vast majority of people.

See further reading:
http://archives.gentoo.org/gentoo-dev-announce/msg_ae405bb743eeda9dc66773998ee50759.xml

Thanks,
Jeremy
--

It has also been discussed a little here, at least in the 'tabbed
x11-terms/rxvt-unicode' thread. But that only deals with some
implications of the flag removal, not so much about why they have been
removed. I think.

Wonko



Re: [gentoo-user] Did I not get the memo about perl python?

2011-10-17 Thread Dale

Mark Knecht wrote:

On Mon, Oct 17, 2011 at 2:20 PM, Michael Orlitzkymich...@orlitzky.com  wrote:

On 10/17/2011 05:07 PM, Mark Knecht wrote:

Sort of strange. One of my machines just showed up wanting to rebuild
about 25 packages due to a USE flag change? All the packages were
showing -perl and/or -python. Seemed like a strange change at this
point in the life of a desktop PC so I added both flags to make.conf
and the machine is once again content to update just a couple of
packages.

I don't recall seeing any discussion about this.Was there??


Not really. This is about it:

  http://blog.jolexa.net/

I complained about the lack of USE flag documentation, life goes on. You
can probably do without them set.



hehe  So who is this Jeremy guy anyway, thinking he'll just change
USE flag defaults to make _his_ life easier? ;-)

OK, I'm fine with it, and glad to know I wasn't purposely left off the
distribution list. I go into a funk and am hard to be around when that
happens... ;-)

Chaeers,
Mark




I disabled mine a while back.  I had only one package that I had to add 
it back in package.use.  As far as I can tell, everything works fine.  
Package you wonder:


app-mobilephone/gammu python

May want to think about removing them, if it interests you.

Dale

:-)  :-)



[gentoo-user] Re: How to configure eth1:1 ?

2011-10-17 Thread Grant Edwards
On 2011-10-17, Grant Edwards grant.b.edwa...@gmail.com wrote:
 I'm trying to configure a second IP address for eth1 using the syntax
 I found at

   
 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=2#doc_chap1

 But, it doesn't work.

 Here's my /etc/init.d/net file:

   config_eth0=192.168.8.4/16
   routes_eth0=default via 192.168.0.254
   config_eth1=10.0.0.1/8
   192.168.250.1/24

 But, starting eth1 says:

 # /etc/init.d/net.eth1 start
  * Bringing up interface eth1
  *   Starting netplug on eth1 ... [ ok ]
  * Backgrounding ...
  * ERROR: net.eth1 failed to start
  
 Only eth1 is configured.  eth1:1 isn't configured.

I disabled netplug for both interfaces, and that got rid of the error
message:

# /etc/init.d/net.eth1 start
 * Bringing up interface eth1
 *   10.0.0.1/8 ...  [ ok ]
 *   192.168.250.1/24 ...[ ok ]

Now I can ping addresses in the 192.168.250/24 subnet. However, I
still don't see eth1:1 in netstat output the way that I do when I
manually configure it.  According TFM, eth1:1 should have been created
for the second address.  What gives?

How do you see the second IP address that's configured for an
interface if ifconfig won't show it to you?

-- 
Grant Edwards   grant.b.edwardsYow! I own seven-eighths of
  at   all the artists in downtown
  gmail.comBurbank!




Re: [gentoo-user] How to configure eth1:1 ?

2011-10-17 Thread Florian Philipp
Am 17.10.2011 23:25, schrieb Grant Edwards:
 I'm trying to configure a second IP address for eth1 using the syntax
 I found at
 
   
 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=2#doc_chap1
 
 But, it doesn't work.
 
 Here's my /etc/init.d/net file:
 
   config_eth0=192.168.8.4/16
   routes_eth0=default via 192.168.0.254
   config_eth1=10.0.0.1/8
   192.168.250.1/24
 
 But, starting eth1 says:
 
 # /etc/init.d/net.eth1 start
  * Bringing up interface eth1
  *   Starting netplug on eth1 ... [ ok ]
  * Backgrounding ...
  * ERROR: net.eth1 failed to start
  
 Only eth1 is configured.  eth1:1 isn't configured.
 
 

eth1 is the second physical interface (which you don't have). From
/usr/share/doc/openrc-0.8.3-r1/net.example.bz2

# If you need more than one address, you can use something like this
# NOTE: ifconfig creates an aliased device for each extra IPv4 address
#   (eth0:1, eth0:2, etc)
#   iproute2 does not do this as there is no need to
config_eth0=192.168.0.2/24 192.168.0.3/24 192.168.0.4/24
# However, that only works with CIDR addresses, so you can't use
# netmask.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] How to configure eth1:1 ?

2011-10-17 Thread Florian Philipp
Am 17.10.2011 23:42, schrieb Florian Philipp:
 Am 17.10.2011 23:25, schrieb Grant Edwards:
 I'm trying to configure a second IP address for eth1 using the syntax
 I found at

   
 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=2#doc_chap1

 But, it doesn't work.

 Here's my /etc/init.d/net file:

   config_eth0=192.168.8.4/16
   routes_eth0=default via 192.168.0.254
   config_eth1=10.0.0.1/8
   192.168.250.1/24

 But, starting eth1 says:

 # /etc/init.d/net.eth1 start
  * Bringing up interface eth1
  *   Starting netplug on eth1 ... [ ok ]
  * Backgrounding ...
  * ERROR: net.eth1 failed to start
  
 Only eth1 is configured.  eth1:1 isn't configured.


 
 eth1 is the second physical interface (which you don't have). From
 /usr/share/doc/openrc-0.8.3-r1/net.example.bz2
 
 # If you need more than one address, you can use something like this
 # NOTE: ifconfig creates an aliased device for each extra IPv4 address
 #   (eth0:1, eth0:2, etc)
 #   iproute2 does not do this as there is no need to
 config_eth0=192.168.0.2/24 192.168.0.3/24 192.168.0.4/24
 # However, that only works with CIDR addresses, so you can't use
 # netmask.
 
 Regards,
 Florian Philipp
 

Ugh, sorry. Just ignore that. I didn't see the second line in
config_eth1. The odd quoting confused me.



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Did I not get the memo about perl python?

2011-10-17 Thread Mark Knecht
On Mon, Oct 17, 2011 at 2:32 PM, Alex Schuster wo...@wonkology.org wrote:
 Mark Knecht writes:

 Sort of strange. One of my machines just showed up wanting to rebuild
 about 25 packages due to a USE flag change? All the packages were
 showing -perl and/or -python. Seemed like a strange change at this
 point in the life of a desktop PC so I added both flags to make.conf
 and the machine is once again content to update just a couple of
 packages.

 I don't recall seeing any discussion about this.Was there??

 There was a message on the gentoo-announce list on Sept. 30th:

 --
 Hello,

 In a few days, USE={python,perl} will be removed from the profile
 defaults. There has been sufficient levels of testing so the impact to
 users will be small besides a potentially large number of rebuilds
 which should not be a cause for alarm. The end result will be
 beneficial for a vast majority of people.

 See further reading:
 http://archives.gentoo.org/gentoo-dev-announce/msg_ae405bb743eeda9dc66773998ee50759.xml

 Thanks,
 Jeremy
 --

 It has also been discussed a little here, at least in the 'tabbed
 x11-terms/rxvt-unicode' thread. But that only deals with some
 implications of the flag removal, not so much about why they have been
 removed. I think.

        Wonko

Interesting.  I guess I'm no longer subscribed 'cause I haven't seen a
message from there in months. I'll go resubscribe.

Cheers,
Mark



[gentoo-user] Re: How to configure eth1:1 ?

2011-10-17 Thread Grant Edwards
On 2011-10-17, Grant Edwards grant.b.edwa...@gmail.com wrote:
 On 2011-10-17, Grant Edwards grant.b.edwa...@gmail.com wrote:
 I'm trying to configure a second IP address for eth1 using the syntax
 I found at

   
 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=2#doc_chap1

 But, it doesn't work.

 Here's my /etc/init.d/net file:

   config_eth0=192.168.8.4/16
   routes_eth0=default via 192.168.0.254
   config_eth1=10.0.0.1/8
   192.168.250.1/24

 But, starting eth1 says:

 # /etc/init.d/net.eth1 start
  * Bringing up interface eth1
  *   Starting netplug on eth1 ... [ ok ]
  * Backgrounding ...
  * ERROR: net.eth1 failed to start
  
 Only eth1 is configured.  eth1:1 isn't configured.

 I disabled netplug for both interfaces, and that got rid of the error
 message:

 # /etc/init.d/net.eth1 start
  * Bringing up interface eth1
  *   10.0.0.1/8 ...  [ ok ]
  *   192.168.250.1/24 ...[ ok ]
 
 Now I can ping addresses in the 192.168.250/24 subnet. However, I
 still don't see eth1:1 in netstat output the way that I do when I
 manually configure it.  According TFM, eth1:1 should have been created
 for the second address.  What gives?

OK, I think I've figured it out.  The startup system is using iproute2
instead of ifconfig.  The manual says that ifconfig is the default,
and I don't see anywhere where I've overridden it, but the manual also
says that if I were using ifconfig I'd have an eth1:1 device.

Iproute2 knows how to assign multiple IP address to an interface
without creating multiple devices, and using the ip command shows
the second address:

$ /sbin/ip address show
[...]
3: eth1: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state UP 
qlen 1000
link/ether 00:16:17:84:a7:b3 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/8 brd 10.255.255.255 scope global eth1
inet 192.168.250.1/24 brd 192.168.250.255 scope global eth1
[...]

Still haven't figured out where iproute2 is getting enabled instead of
the default ifconfig

-- 
Grant Edwards   grant.b.edwardsYow! Gibble, Gobble, we
  at   ACCEPT YOU ...
  gmail.com




[gentoo-user] Re: How to configure eth1:1 ?

2011-10-17 Thread Grant Edwards
On 2011-10-17, Florian Philipp li...@binarywings.net wrote:

 Ugh, sorry. Just ignore that. I didn't see the second line in
 config_eth1. The odd quoting confused me.

Sorry about that.  I was trying various quoting schemes I'd found in
examples.

My current configuration works:

  modules_eth0=( !plug )
  config_eth0=( 192.168.8.4/16 )
  routes_eth0=( default via 192.168.0.254 )

  modules_eth1=( !plug )
  config_eth1=( 10.0.0.1/8 192.168.250.1/24 )

$ /sbin/ip address show
1: lo: LOOPBACK,UP,LOWER_UP mtu 16436 qdisc noqueue state UNKNOWN 
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth0: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state UP 
qlen 1000
link/ether 00:1b:21:b1:d1:e9 brd ff:ff:ff:ff:ff:ff
inet 192.168.8.4/16 brd 192.168.255.255 scope global eth0
3: eth1: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state UP 
qlen 1000
link/ether 00:16:17:84:a7:b3 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/8 brd 10.255.255.255 scope global eth1
inet 192.168.250.1/24 brd 192.168.250.255 scope global eth1
4: eth2: BROADCAST,MULTICAST,UP,LOWER_UP mtu 1500 qdisc pfifo_fast state 
UNKNOWN qlen 1000
link/ether 00:18:e7:08:20:33 brd ff:ff:ff:ff:ff:ff

  
And the lack of eth1:1 is presumably explained if the system is using
the iproute2 module instead of the ifconfig module.  My current theory
is that iproute2 is getting used because I have openvpn installed with
the iproute2 use flag. [I'm not actually using openvpn, but it's still
istalled from a couple years ago when I was using it.]

Yes, I know that the /24 subnet defined by the second eth1 address
overlaps the /16 subnet defined by the eth0 address. 

For historical reasons, 192.168.250.nnn is on eth1, and
192.168.everything-but-250.nnn is on eth0.

And eth2 is used only by a VM client OS.

Yea, it's a messy, but it's still easier than using 4 different
machines

-- 
Grant Edwards   grant.b.edwardsYow! I appoint you
  at   ambassador to Fantasy
  gmail.comIsland!!!




Re: [gentoo-user] Re: Which sound codecs do I need?

2011-10-17 Thread Andrey Moshbear
On Mon, Oct 17, 2011 at 16:58, Walter Dnes waltd...@waltdnes.org wrote:
 On Thu, Oct 13, 2011 at 04:58:24AM +0300, Nikos Chantziaras wrote
 On 10/13/2011 02:35 AM, Walter Dnes wrote:
  I'm installing Gentoo on an older Intel Core2 Duo machine from Dell
  for some testing.  Checking with lspci -v from the install CD shows...
 
  00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio 
  Controller (rev 02)
        Subsystem: Dell Inspiron 530

 Well, since you're too busy to use Google, let me do that for you ;-)

 http://support.dell.com/support/edocs/systems/inspd530/en/OM/HTML/appendix.htm

 The sound chip is a Realtek ALC888.  I'm sure this is all the info
 needed to select the correct driver.

  Your Google-fu is stronger than mine.  I did try Google, but it didn't
 occur to me to use that specific search.  Anyhow, thanks for the info.

snd_hda_codec_realtek on kernel =2.6.31



Re: [gentoo-user] Did I not get the memo about perl python?

2011-10-17 Thread Alex Schuster
Mark Knecht writes:

 On Mon, Oct 17, 2011 at 2:32 PM, Alex Schuster wo...@wonkology.org wrote:
 Mark Knecht writes:

 I don't recall seeing any discussion about this.Was there??

 There was a message on the gentoo-announce list on Sept. 30th:
[...]

 Interesting.  I guess I'm no longer subscribed 'cause I haven't seen a
 message from there in months. I'll go resubscribe.

The list has been quite dead since June, then came the posting I quoted,
and since October 8th there were some 15 GLSA postings. So it's a good
resource again now.

Wonko



Re: [gentoo-user] Did I not get the memo about perl python?

2011-10-17 Thread Mark Knecht
On Mon, Oct 17, 2011 at 3:59 PM, Alex Schuster wo...@wonkology.org wrote:
 Mark Knecht writes:

 On Mon, Oct 17, 2011 at 2:32 PM, Alex Schuster wo...@wonkology.org wrote:
 Mark Knecht writes:

 I don't recall seeing any discussion about this.Was there??

 There was a message on the gentoo-announce list on Sept. 30th:
 [...]

 Interesting.  I guess I'm no longer subscribed 'cause I haven't seen a
 message from there in months. I'll go resubscribe.

 The list has been quite dead since June, then came the posting I quoted,
 and since October 8th there were some 15 GLSA postings. So it's a good
 resource again now.

        Wonko

Good to know. I've gotten so used to getting important stuff via
eselect news read that I'm a bit surprised they didn't push a message
out about this.

None the less, thanks for the info!

Cheers,
Mark



Re: [gentoo-user] Re: Which sound codecs do I need?

2011-10-17 Thread Michael Mol
On Mon, Oct 17, 2011 at 5:08 PM, Walter Dnes waltd...@waltdnes.org wrote:
 On Wed, Oct 12, 2011 at 10:52:54PM -0500, Dale wrote

 Or lspci -k would tell what driver the CD was using, if sound worked
 which I bet it did.

  That tells me which *DRIVER* is in use (so does lspci -v for that
 matter).  It does *NOT* tell me the *AUDIO CODEC*.  lspci -k shows...

 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio 
 Controller (rev 02)
        Subsystem: Dell Device 020d
        Kernel driver in use: HDA Intel

Yeah, the intel_hda system is pretty funky. My understanding is that
the API is essentially a programmable plugboard connecting the various
DSPs on the chip, and that the codec is a mapping of which pins
connect to which.

Kinda neat, actually. You'd think someone clever would try expressing
that interface more intuitively to the user.

-- 
:wq




Re: [gentoo-user] zram / compcache, anyone?

2011-10-17 Thread Paul Hartman
On Wed, Oct 12, 2011 at 8:52 PM, Pandu Poluan pa...@poluan.info wrote:
 Just stumbled upon this blog:

 http://www.webupd8.org/2011/10/increased-performance-in-linux-with.html

 anyone got any experience with zram/compcache on Gentoo?

I'm using zram in a gentoo server with only 256mb of RAM, only used
for a few weeks so far. It seems to work and the server hasn't crashed
yet. :) I have allocated 128MB of compressed swap (64x2, actually, to
theoretically utilize both CPU cores for compression at the same time)
followed by normal on-disk swap at lower priority. Usually my total
swap used is less than 128MB so the real disk swap is rarely touched.
It's difficult to say if there is any improved performance, but I
haven't experienced any slowdown, which occasionally I did when swap
became heavily used in the past. Keep in mind the 128MB zram is the
uncompressed size, so the actual amount of RAM used by this should be
much less, depending on contents of the swap. Some even recommend
using zram equal to the amount of RAM but that idea scares me.

After enabling the CONFIG_ZRAM module in kernel 3.0.6, I did this:

modprobe zram num_devices=2
echo $((64*1024*1024))  /sys/block/zram0/disksize
echo 1  /sys/block/zram0/reset
mkswap /dev/zram0
swapon -p 11 /dev/zram0

(repeat for /dev/zram1 and so on)

you can then swapoff your disk swap partition to empty it, then swapon
with lower priority than the zram swap devices.

Also note that zram is really just a generic compressed RAM drive. You
don't have to use it for swap, you can mkfs anything you like onto it,
to use as compressed tmp space or whatever... just know that it'll be
gone when you reboot.

I think zram can be beneficial in an environment where CPU power is
plentiful but RAM needs to be conserved (i.e. fitting more virtual
servers onto one physical box). I seem to recall there is a way for a
virtual host to utilize zram automatically/transparently for the
virtualized guests, but I don't personally know anything about that.



Re: [gentoo-user] zram / compcache, anyone?

2011-10-17 Thread Florian Philipp
Am 18.10.2011 07:16, schrieb Paul Hartman:
 On Wed, Oct 12, 2011 at 8:52 PM, Pandu Poluan pa...@poluan.info wrote:
 Just stumbled upon this blog:

 http://www.webupd8.org/2011/10/increased-performance-in-linux-with.html

 anyone got any experience with zram/compcache on Gentoo?
 
 I'm using zram in a gentoo server with only 256mb of RAM, only used
 for a few weeks so far. It seems to work and the server hasn't crashed
 yet. :) I have allocated 128MB of compressed swap (64x2, actually, to
 theoretically utilize both CPU cores for compression at the same time)
 followed by normal on-disk swap at lower priority. Usually my total
 swap used is less than 128MB so the real disk swap is rarely touched.
 It's difficult to say if there is any improved performance, but I
 haven't experienced any slowdown, which occasionally I did when swap
 became heavily used in the past. Keep in mind the 128MB zram is the
 uncompressed size, so the actual amount of RAM used by this should be
 much less, depending on contents of the swap. Some even recommend
 using zram equal to the amount of RAM but that idea scares me.
 
 After enabling the CONFIG_ZRAM module in kernel 3.0.6, I did this:
 
 modprobe zram num_devices=2
 echo $((64*1024*1024))  /sys/block/zram0/disksize
 echo 1  /sys/block/zram0/reset
# sleep 1
 mkswap /dev/zram0
 swapon -p 11 /dev/zram0
 

In my experience, it can be necessary to put a `sleep 1` between reset
and mkswap because the /dev/zram0 disappears and reappears after the
reset command.

Another remark: The kernel docs recommend using /bin/echo instead of
echo because problems are reported as write errors and the echo builtin
of bash doesn't check for that.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature