Re: Kernel options help

2011-04-18 Thread Dave Hajoglou
On Thu, Apr 14, 2011 at 10:00 AM, Bruce Dubbs bruce.du...@gmail.com wrote:

 There is definitely something wrong.  On a production LFS system running
 in a virtual envronment, I get:

 real    0m18.514s
 user    0m8.984s
 sys     0m2.697s

I'm still having the same problems after recompiling the kernel a few
times with different options.  Ken, I don't know how to check against
the 32 v 64 bit.  uname reports:

Linux hojo-lfs-6.8 2.6.38.2-LFS6.8 #1 SMP Mon Apr 18 20:35:16 MDT 2011
x86_64 x86_64 x86_64 GNU/Linux

I have picked out a shell script that runs very slowly from the
configure script from openssh.  On a stable system the script runs as
fast as expected:

Script:
#LS nuisances.
for as_var in \
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  LC_TELEPHONE LC_TIME
do

  if (set +x; test -z `(eval $as_var=C; export $as_var) 21`); then
eval $as_var=C; export $as_var
  else
($as_unset $as_var) /dev/null 21  $as_unset $as_var
  fi
done

The time on the script my box:
real0m5.780s
user0m0.030s
sys 0m5.710s


I have to run this script in a loop roughly 300 times on the stable
box to approximate the LFS run.  If I run this in a loop on the LFS
box top shows the following while bash only consumes around 7 to 9% of
the cpu and a scant of memory.

Cpu(s):  0.0%us, 25.7%sy,  0.2%ni, 74.0%id,  0.0%wa,  0.0%hi,  0.2%si,  0.0%st


 I'm not sure why you want multiple CPUs in a virtual environment when
 you can clone a new one for each task.


I'm not sure how to do that.  Do you have a hint or page to refer me to?


   -- Bruce

 --
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Kernel options help

2011-04-14 Thread Dave Hajoglou
To list,
I built a new LFS 6.8 and everything is kosher save for some
slowness.  I built an x86_64 kernel  (2.6.38.2) all on a Xen host
(5.6.100) on a Quad Proc Xeon.  It boots with no issues until I try to
configure a package.  As an example, if I run the ./configure for the
openssh package, it takes around 5 min just to configure.  Making with
-j4 tends to go well but still not as fast as I think it could. It
shouldn't be a Xen issue as my LFS build system was the LFS live CD.
Configuring under the liveCD proceeded at a normal rate.  I've tried a
few different kernel options but none seem to make any difference.
Any help would be appreciated.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


UDEV and 2.6.38 kernel headers

2011-04-12 Thread Dave Hajoglou
I seem to have encountered this issue (
http://comments.gmane.org/gmane.linux.lfs.devel/10624 )  just now
though it seems the patch isn't in the patch list nor in the
instructions.  Did I miss a step?   I manually applied the patch and
had to copy two headers from the kernel headers in order to get it to
fly.

http://comments.gmane.org/gmane.linux.lfs.devel/10624

Headers I was missing were

/usr/include/linux/videodev2.h
which calls
/usr/include/linux/compiler.h
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: UDEV and 2.6.38 kernel headers

2011-04-12 Thread Dave Hajoglou
On Tue, Apr 12, 2011 at 10:26 AM, Andrew Benton b3n...@gmail.com wrote:
 On Tue, 12 Apr 2011 08:00:35 -0600
 Dave Hajoglou dhajog...@gmail.com wrote:

 I seem to have encountered this issue (
 http://comments.gmane.org/gmane.linux.lfs.devel/10624 )  just now
 though it seems the patch isn't in the patch list nor in the
 instructions.  Did I miss a step?   I manually applied the patch and
 had to copy two headers from the kernel headers in order to get it to
 fly.

 http://comments.gmane.org/gmane.linux.lfs.devel/10624

 Headers I was missing were

 /usr/include/linux/videodev2.h
 which calls
 /usr/include/linux/compiler.h

 Perhaps something went wrong when you installed the kernel headers?
 /usr/include/linux/videodev2.h should have been installed when you
 installed the Linux-2.6.38.2 API Headers on page 6.7. The 2.6.38 kernel
 no longer installs the file videodev.h but that's a different file, you
 say you were missing videodev2.h which is not affected by the patch.

Yeah, I even re-ran the 6.7. Linux-2.6.37 API Headers section (with
2.6.38.2) and it was a no go on videodev2.h.  It was in the kernel
tree but never made it out to /usr/include/linux.


Output from make INSTALL_HDR_PATH=dest headers_install indicates
INSTALL include/linux (360 files).

And there seem to be just that many.  I have a snapshot of my build
chain so I can go back and give it a shot from the ground up and see
if it repeats.


 Andy
 --
 http://linuxfromscratch.org/mailman/listinfo/lfs-support
 FAQ: http://www.linuxfromscratch.org/lfs/faq.html
 Unsubscribe: See the above information page

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


jhalfs build report

2011-04-06 Thread Dave Hajoglou
I ran a jhalfs build last night and was wondering if anyone want's the
report.  I seem to recall that a while back the developers wanted
these reports.  The build took just over 4.5 hours.

-hojo
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: jhalfs build report

2011-04-06 Thread Dave Hajoglou
On Wed, Apr 6, 2011 at 8:33 AM, xinglp xin...@gmail.com wrote:
 2011/4/6 Dave Hajoglou dhajog...@gmail.com:
 I ran a jhalfs build last night and was wondering if anyone want's the
 report.  I seem to recall that a while back the developers wanted
 these reports.  The build took just over 4.5 hours.
                            So slow, on my machine, it took about 5200 seconds


Perhaps I installed it on a TI-84.  Some would consider that fast.


-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: Building a LFS system

2011-03-31 Thread Dave Hajoglou
On Thu, Mar 31, 2011 at 9:02 AM, Andrew Benton b3n...@gmail.com wrote:

 I first posted to this list as I was wondering about building a lfs box
 without using a host linux box to compile the files needed to build a lfs
 box and I do not want to use files with .rpm or .deb files.
 I just want to get the files needed to for the lfs box and be able to just
 install the file on the box and compile the other files needed so I don't
 need to deal with bloat and install only what I want on my box.


LFS, if you already haven't figured, is designed to be built on a
host.  That host does not have to be installed.  See below...



 I just want to build my own linux box.

 Why don't you start with a live CD, boot from the CD and use that to
 compile LFS? You need to have a precompiled gcc, glibc, etc to start
 with but you don't have to install them onto your hard drive if you use
 a live CD.

I've built LFS (aLFS) from the Live CD and it works rather well.


 Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page