Re: Buildworld Benchmarks

2011-05-18 Thread claudiu vasadi
Hi Devin,

Have a look at ccache, it might help (if you do not clean the cache every
time a buildworld is done).

As a comparison, my Intel i7 (8 core) CPU, finished the buildworld (-j16) in
~19 minutes (if I remember correctly).

Cheers.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Skype with sound and video support :)

2011-05-18 Thread Ion-Mihai Tetcu
On Tue, 17 May 2011 21:46:14 +0200
Alexander Leidinger alexan...@leidinger.net wrote:

 On Tue, 17 May 2011 09:01:41 -0700 Kevin Oberman ober...@es.net
 wrote:
 
 
  Please put the information in this message (or at least most of it)
  into ports/UPDATING so a few less people running old kernels will be
  bitten by the installation of the new Skype port.
 
 And what about a wiki page? This way we can extend it in case something
 important is uncovered.

I'm not opposed to it, but I don't see the need for it at this time.
(Plus, I'd like to keep everything inside the port - hence the longish
pkg-message - less steps to go through this way).

-- 
Ion-Mihai Tetcu ite...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


FreeBSD compatible mini-itx board

2011-05-18 Thread Erik Nørgaard

Hi:

I am looking for a new low power mini-itx board for my firewall/home 
server. I've had VIA boards but flacky disk controller and other 
problems have made me look for something else.


So, going all Intel, I hope there will be no hardware problems. I'm 
looking at The Intel D945GSEJT with an Atom N270 processor and the 
following specs:


Mobile Intel 945GSE Express Chipset
Intel 82945GSE Express Chipset Graphics/Memory Controller Hub
Intel 82801GBM I/O Controller Hub (ICH7-M)
Intel GMA950
RealTek 8111DL Gigabit Ethernet Controller

Does FBSD support this?

I don't care about graphics basic VGA is enough as this will be a 
headless server. But I do care that the disk controller is fully 
supported as well as the NIC.


Any suggestions of alternative boards? AFAIK the N270 is single core 
32bit, a dual core and/or 64bit alternative would be interesting.


Also: The Intel manual mentions: Support for DDR2 533 MHz SO-DIMMs 
(DDR2 800 MHz and DDR2 667 MHz validated to run at 533 MHz only)


Will faster RAM result in a less stable system?

And what is Serial Presence Detect RAM? I've never seen this advertised.

Lots of questions, I know...

Thanks, Erik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


editors/libreoffice: can not compile, crash on FreeBSD 9.0-CUR/amd64

2011-05-18 Thread O. Hartmann
On all of my FreeBSD 9.0-CURRENT/amd64 boxes LibreOffice 3.3.X crashes 
after starting and dumping core with signal 8. The boxes are all FreeBSD 
9.0-CURRENT/amd64, the most recent version. The ports are up to date, I 
also tried to recompile every necessary port without success.


On all FreeBSD 9.0-CURRENT/amd64 boxes compiling LibreOffice 3.3.2 fails 
with the following error message.


Any hints?


Entering 
/usr/ports/editors/libreoffice/work/libreoffice-build-3.3.2.2/build/libreoffice/sw/util


Compiling: sw/unxfbsdx.pro/misc/sw_dflt_version.c
Compiling: sw/unxfbsdx.pro/misc/swd_dflt_version.c
Compiling: sw/unxfbsdx.pro/misc/swui_dflt_version.c
Compiling: sw/unxfbsdx.pro/misc/msword_dflt_version.c
Compiling: sw/unxfbsdx.pro/misc/vbaswobj_dflt.uno_version.c
Making:swall.lib
Making:swui.lib
Making:libswfx.so
Making:libswdfx.so
Making:libswuifx.so
Making:libmswordfx.so
Making:libvbaswobjfx.uno.so
Making:swen-US.res
Making:swde.res
Compiling: rsc_sw
sw deliver
Module 'sw' delivered successfully. 245 files copied, 0 files unchanged

---
Oh dear - something failed during the build - sorry !
  For more help with debugging build errors, please see the section in:
http://wiki.documentfoundation.org/Development

  internal build errors:

ERROR: error 65280 occurred while making 
/usr/ports/editors/libreoffice/work/libreoffice-build-3.3.2.2/build/libreoffice/pyuno/source/loader


 it seems that the error is inside 'pyuno', please re-run build
 inside this module to isolate the error and/or test your fix:
---

/usr/local/bin/bash
cd 
/usr/ports/editors/libreoffice/work/libreoffice-build-3.3.2.2/build/libreoffice

source ./FreeBSDAMDEnv.Set.sh
cd pyuno
build

when the problem is isolated and fixed exit and re-run 'make' from the 
top-level

sometimes (sadly) it is necessary to rm -Rf unxfbsdx.pro in a module.
gmake: *** [stamp/build] Error 1
*** Error code 1

Stop in /usr/ports/editors/libreoffice.
*** Error code 1

Stop in /usr/ports/editors/libreoffice.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: editors/libreoffice: can not compile, crash on FreeBSD 9.0-CUR/amd64

2011-05-18 Thread Andriy Gapon
on 18/05/2011 12:10 O. Hartmann said the following:
 ---
 Oh dear - something failed during the build - sorry !
   For more help with debugging build errors, please see the section in:
 http://wiki.documentfoundation.org/Development
 
   internal build errors:
 
 ERROR: error 65280 occurred while making
 /usr/ports/editors/libreoffice/work/libreoffice-build-3.3.2.2/build/libreoffice/pyuno/source/loader
 
 
  it seems that the error is inside 'pyuno', please re-run build
  inside this module to isolate the error and/or test your fix:
 ---
 
 /usr/local/bin/bash
 cd 
 /usr/ports/editors/libreoffice/work/libreoffice-build-3.3.2.2/build/libreoffice
 source ./FreeBSDAMDEnv.Set.sh
 cd pyuno
 build

What happens if you try to follow this advice?

 when the problem is isolated and fixed exit and re-run 'make' from the 
 top-level
 sometimes (sadly) it is necessary to rm -Rf unxfbsdx.pro in a module.
 gmake: *** [stamp/build] Error 1
 *** Error code 1
 
 Stop in /usr/ports/editors/libreoffice.
 *** Error code 1
 
 Stop in /usr/ports/editors/libreoffice.

-- 
Andriy Gapon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


FreeBSD 8.2 and Lenovo X300 WWAN Modem

2011-05-18 Thread crsnet.pl

Hello.
Have here anyone run this modem/GPS under FreeBSD 8.2 ? Modem is 
recognized, but when i try to run ppp -ddial iplus i get this error :


/var/log/messages
May 18 11:20:59 x60s ppp[1656]: tun0: Warning: Chat script failed

/var/log/ppp
May 18 11:20:53 x60s ppp[1656]: tun0: Phase: deflink: opening - dial
May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Send: AT^M
May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Expect(2): OK
May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: AT^M^M
May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: OK^M
May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Send: AT+CFUN=1^M
May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Expect(2): OK
May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: AT+CFUN=1^M^M
May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: ERROR^M


For GPS i try to use
gpsdrive-2.09_11A GPS navigation system
viking-1.0.2Program to manage GPS data (tracks, waypoints, etc)
But any of them can use X300 GPS;/

#uname -a
FreeBSD x60s 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 
UTC 2011 r...@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  
i386


#dmesg
ugen6.3: vendor 0x17ef at usbus6
ugen4.2: Sierra Wireless, Incorporated at usbus4
u3g0: Data Interface on usbus4
u3g0: Found 3 ports.

#sudo usbconfig
ugen4.2: Sierra Wireless MC5725 Modem Sierra Wireless, Incorporated 
at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON
ugen6.4: Wimedia device ManfID at usbus6, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=ON


#ls -la /dev/cuaU*
crw-rw  1 uucp  dialer0, 123 18 maj 09:39 /dev/cuaU0.0
crw-rw  1 uucp  dialer0, 124 18 maj 09:39 /dev/cuaU0.0.init
crw-rw  1 uucp  dialer0, 125 18 maj 09:39 /dev/cuaU0.0.lock
crw-rw  1 uucp  dialer0, 129 18 maj 09:39 /dev/cuaU0.1
crw-rw  1 uucp  dialer0, 130 18 maj 09:39 /dev/cuaU0.1.init
crw-rw  1 uucp  dialer0, 131 18 maj 09:39 /dev/cuaU0.1.lock
crw-rw  1 uucp  dialer0, 135 18 maj 09:39 /dev/cuaU0.2
crw-rw  1 uucp  dialer0, 136 18 maj 09:39 /dev/cuaU0.2.init
crw-rw  1 uucp  dialer0, 137 18 maj 09:39 /dev/cuaU0.2.lock

#cat /etc/ppp/ppp.conf
iplus:
 set log Phase Chat LCP IPCP CCP tun command
 ident user-ppp VERSION (built COMPILATIONDATE)

 set device /dev/cuaU0.0
 set speed 460800
 #set speed 115200
 set dial ABORT BUSY TIMEOUT 2 \
\\ \
AT OK-AT-OK \
AT+CFUN=1 OK-AT-OK \
AT+CMEE=2 OK-AT-OK \
AT+CSQ OK \
AT+CGDCONT=1,\\\IP\\\,\\\internet\\\ OK \
AT+CGACT? OK-AT-OK \
AT+CGATT? OK \
AT+CGCLASS? OK \
AT+COPS? OK \
ATD*99***1# CONNECT

 set timeout 180
 enable dns
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR

Regards, Adrian.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Buildworld Benchmarks

2011-05-18 Thread Bernt Hansson

2011-05-18 02:50, Devin Teske:

Hi List,

What's the fastest anyone has every completed buildworld on a single machine?


No idea.


The reason I ask is because we just got some new hardware in and decided to
benchmark it using buildworld.


Nice!


Just as a quick test, we decided to perform make -j 48 buildworld. We finished
in approximately 9 minutes.


For me on the desktopsystem 33 min with make -j 24 buildworld

Half an hour is half the lunchbreak.

FreeBSD 8.2-STABLE #0
CPU: AMD Athlon(tm) II X2 250 Processor (3013.63-MHz K8-class CPU)
Origin = AuthenticAMD  Id = 0x100f62  Family = 10  Model = 6  Stepping = 2

real memory  = 17179869184 (16384 MB)
avail memory = 16530083840 (15764 MB)

FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)


I think that we can improve upon that, but am having a bit of difficulty.

Can anyone offer any pointers in how to achieve the fastest buildworld possible?
No particular reason... we're just trying to push the boundaries of what's
possible.


Check the handbook, single user comes to mind.


For reference the machine we're compiling on is a dual-socket Nehalem Xeon
(six-core per proc; HTT enabled; 24 total CPUs presented by APIC) with 48GB of
RAM, an LSI MegaSAS RAID controller, and an LSI 2Gbps Fibre Channel HBA going to
an 8TB NEC D-4 array.

ASIDE: Doing the same buildworld on a 4-disk ZFS raidz yielded approximately
11-minutes. Performing the buildworld on the NEC D-4 over the 2Gbps FC HBA
yielded approximately 12 minutes. And for some unknown reason, performing
buildworld on tmpfs yielded 13 minutes.

We thought going tmpfs would make things faster, but that resulted in over 13
minutes (huh? you'd think a RAM disk would be smoking compared to even the SSDs
that we used to achieve ~9 min; do note that we did make sure to nullfs mount a
tmpfs-based directory onto /usr/obj -- though the performance of that nullfs
mount might have hurt the test, not sure).

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Buildworld Benchmarks

2011-05-18 Thread Reko Turja
We thought going tmpfs would make things faster, but that resulted 
in over 13
minutes (huh? you'd think a RAM disk would be smoking compared to 
even the SSDs
that we used to achieve ~9 min; do note that we did make sure to 
nullfs mount a
tmpfs-based directory onto /usr/obj -- though the performance of 
that nullfs

mount might have hurt the test, not sure).


I think that doing huge parallel build and using part of memory bus 
bandwidth for storage is the culprit. DMA offloading the storage 
operations directly from memory to the disks is giving the advantage 
to builds using disk IO.


-Reko 


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD 8.2 and Lenovo X300 WWAN Modem

2011-05-18 Thread Jeremy Chadwick
On Wed, May 18, 2011 at 11:40:36AM +0200, crsnet.pl wrote:
 Hello.
 Have here anyone run this modem/GPS under FreeBSD 8.2 ? Modem is
 recognized, but when i try to run ppp -ddial iplus i get this error
 :
 
 /var/log/messages
 May 18 11:20:59 x60s ppp[1656]: tun0: Warning: Chat script failed
 
 /var/log/ppp
 May 18 11:20:53 x60s ppp[1656]: tun0: Phase: deflink: opening - dial
 May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Send: AT^M
 May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Expect(2): OK
 May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: AT^M^M
 May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: OK^M
 May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Send: AT+CFUN=1^M
 May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Expect(2): OK
 May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: AT+CFUN=1^M^M
 May 18 11:20:53 x60s ppp[1656]: tun0: Chat: Received: ERROR^M

I'm not familiar with GPS modem units, but I am familiar with classic
modems and a little bit with chat scripts from my Linux days.

A couple things -- and possibly these GPS modems behave differently than
what I was used to back in the early 90s:

1) Based on the chat logs above, it looks like echo mode is enabled on
the modem.  The client should be sending AT\r, and it should receive
the response OK\r.  Instead, the log indicates what you're getting
back is AT\r\rOK\r.

2) Regardless of #1, the AT+CFUN=1 command you're sending to the modem
results in the modem itself responding with ERROR.  This isn't coming
from ppp, chat, or anything else -- the modem is literally responding
with ERROR itself.  Meaning, that command (obviously not Hayes!) the
modem firmware doesn't know how to interpret.  I have no idea what
+CFUN=1 does, but then again the modem doesn't seem to either.  :-)

So I guess my advice would be: fix your chat script to work properly
with your modem.  :-)  Your script is here:

  set dial ABORT BUSY TIMEOUT 2 \
 \\ \
 AT OK-AT-OK \
 AT+CFUN=1 OK-AT-OK \
 AT+CMEE=2 OK-AT-OK \
 AT+CSQ OK \
 AT+CGDCONT=1,\\\IP\\\,\\\internet\\\ OK \
 AT+CGACT? OK-AT-OK \
 AT+CGATT? OK \
 AT+CGCLASS? OK \
 AT+COPS? OK \
 ATD*99***1# CONNECT

-- 
| Jeremy Chadwick   j...@parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.   PGP 4BD6C0CB |

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Firebird 2.5 and SysV Semaphores

2011-05-18 Thread Leonardo M . Ramé
Hi, I have a problem with Firebird 2.5, and posted the issue in their mailing 
list. They suggested that I have to recompile the kernel to allow more SysV 
semaphores. Do you recommend this?

Here's a copy of my mail:

 I recently installed Firebird 2.5 on a FreeBSD, it was running ok
 until this moring when suddendly it stopped accepting connections.

 The server runs via inetd.

 Here is a copy of the last lines of firebird.log:

 ---
 server.rame.local Tue May 17 16:15:33 2011
   ISC_event_wait: semop failed with errno =3D 22


 server.rame.local Tue May 17 16:15:33 2011
   create_semaphores failed:
   operating system directive semget failed
   No space left on device


 server.rame.local Tue May 17 16:15:33 2011
   ISC_event_wait: semop failed with errno =3D 22


 server.rame.local Tue May 17 16:15:33 2011
   create_semaphores failed:
   operating system directive semget failed
   No space left on device

Should rebuild kernel with more SysV semaphores.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


FreeBSD 7.4-STABLE server behind an isa server

2011-05-18 Thread Jack Raats
I am setting up a FreeBSD 7.4 server behind an ISA server. The purpose of this 
server is to serve as an intranet web server.
But I would like to update the ports of course.
I have a login and password for the isa server.
I would like to know how to implement this so that I can usr portupgrade to 
update the ports and to use make install

excuses for the bad english

thanks

Jack

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Inquiry about The FreeBSD Project

2011-05-18 Thread Zoe Davis
Hi!

This is Zoe and I work for Hosting Observer. 

I recently visited your site at freebsd.org and I'm wondering if you’re
interested in having a partnership with our site. Our site is a trusted
directory for various web hosting needs that will be very helpful to your
readers. 

Would you like to hear more about this? 

Cheers,
Zoe Davis
hostingobserver.com


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD 7.4-STABLE server behind an isa server

2011-05-18 Thread George Liaskos
On Wed, May 18, 2011 at 3:54 PM, Jack Raats j...@jarasoft.net wrote:
 I am setting up a FreeBSD 7.4 server behind an ISA server. The purpose of 
 this server is to serve as an intranet web server.
 But I would like to update the ports of course.
 I have a login and password for the isa server.
 I would like to know how to implement this so that I can usr portupgrade to 
 update the ports and to use make install

 excuses for the bad english

 thanks

 Jack


Install www/cntlm from ports, it has a simple config file that you must edit.

It authenticates to ISA and listens on a specified local port, you can
set http/ftp_proxy to localhost:port and fetch(1) will roll.

Regards
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


kwik way?

2011-05-18 Thread Gary Kline
should i use tr or sed to turn \t into  ?  --i.e., tabs into spaces.

tx!


-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
The 7.98a release of Jottings: http://jottings.thought.org/index.php
   http://journey.thought.org
 ethic 
   Just released: http://transfinite.thought.org/17da.html
 Where's that bloody .357?!




___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: kwik way?

2011-05-18 Thread Devin Teske
 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of Gary Kline
 Sent: Wednesday, May 18, 2011 10:42 AM
 To: FreeBSD Mailing List
 Subject: kwik way?
 
 should i use tr or sed to turn \t into  ?  --i.e., tabs into spaces.

Depends on how you do it in sed. The y/// operator is faster than s/// when
transliterating a single character globally.

If you use y/// instead of s///, then sed performance should be on-par with tr.

Below are some performance metrics involving a 100,000 line contrived text file
containing 1M tabs and 1.8M spaces:

$ wc -l foo
  10 foo
$ du -h foo
2.8Mfoo
$ file foo
foo: ASCII text

$ time sh -c sed -e 's// /g'  foo  bar
real0m2.479s
user0m1.047s
sys 0m0.105s
$ md5 bar
MD5 (bar) = f0187bcbc37cd6d84c6f5cadc6443843

$ time sh -c tr '\t' ' '  foo  bar
real0m0.261s
user0m0.120s
sys 0m0.026s
$ md5 bar
MD5 (bar) = f0187bcbc37cd6d84c6f5cadc6443843

$ time sh -c sed -e 'y// /'  foo  bar
real0m0.261s
user0m0.116s
sys 0m0.087s
$ md5 bar
MD5 (bar) = f0187bcbc37cd6d84c6f5cadc6443843
-- 
Devin

_

The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
_
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: kwik way?

2011-05-18 Thread Devin Teske
 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of Devin Teske
 Sent: Wednesday, May 18, 2011 11:19 AM
 To: 'Gary Kline'; 'FreeBSD Mailing List'
 Subject: RE: kwik way?
 
  -Original Message-
  From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
  questi...@freebsd.org] On Behalf Of Gary Kline
  Sent: Wednesday, May 18, 2011 10:42 AM
  To: FreeBSD Mailing List
  Subject: kwik way?
 
  should i use tr or sed to turn \t into  ?  --i.e., tabs into spaces.
 
 Depends on how you do it in sed. The y/// operator is faster than s/// when
 transliterating a single character globally.
 
 If you use y/// instead of s///, then sed performance should be on-par with
tr.
 
 Below are some performance metrics involving a 100,000 line contrived text
file
 containing 1M tabs and 1.8M spaces:
 
 $ wc -l foo
   10 foo
 $ du -h foo
 2.8Mfoo
 $ file foo
 foo: ASCII text
 
 $ time sh -c sed -e 's// /g'  foo  bar
 real0m2.479s
 user0m1.047s
 sys 0m0.105s
 $ md5 bar
 MD5 (bar) = f0187bcbc37cd6d84c6f5cadc6443843
 
 $ time sh -c tr '\t' ' '  foo  bar
 real0m0.261s
 user0m0.120s
 sys 0m0.026s
 $ md5 bar
 MD5 (bar) = f0187bcbc37cd6d84c6f5cadc6443843
 
 $ time sh -c sed -e 'y// /'  foo  bar
 real0m0.261s
 user0m0.116s
 sys 0m0.087s
 $ md5 bar
 MD5 (bar) = f0187bcbc37cd6d84c6f5cadc6443843

In case you were thinking of either awk or perl, I'd recommend against those
given the following results:

$ time sh -c awk '{gsub(/\t/,\ \);print}'  foo  bar
real0m2.769s
user0m1.498s
sys 0m0.140s
$ md5 bar
MD5 (bar) = f0187bcbc37cd6d84c6f5cadc6443843

$ time sh -c perl -pe 'tr/\t/ /'  foo  bar
real0m0.565s
user0m0.277s
sys 0m0.137s
$ md5 bar
MD5 (bar) = f0187bcbc37cd6d84c6f5cadc6443843



 --
 Devin
 
 _
 
 The information contained in this message is proprietary and/or confidential.
If
 you are not the intended recipient, please: (i) delete the message and all
copies;
 (ii) do not disclose, distribute or use the message in any manner; and (iii)
notify
 the sender immediately. In addition, please be aware that any message
 addressed to our domain is subject to archiving and review by persons other
than
 the intended recipient. Thank you.
 _
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

_

The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
_
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


How to update build tools

2011-05-18 Thread Коньков Евгений
Hi

I am compile freebsd from source, but get error 2
some time ago somebody advice me to update build tools or etc.
But I do not remember (

please remind me which command to use to update build tools?

thank you


-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to update build tools

2011-05-18 Thread Chuck Swiger
On May 18, 2011, at 12:01 PM, Коньков Евгений wrote:
 I am compile freebsd from source, but get error 2
 some time ago somebody advice me to update build tools or etc.
 But I do not remember (
 
 please remind me which command to use to update build tools?

cd /usr/src ; make buildworld

(See /usr/src/UPDATING and/or the FreeBSD Handbook)

Regards,
-- 
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Re[2]: How to update build tools

2011-05-18 Thread Chuck Swiger
On May 18, 2011, at 12:07 PM, Коньков Евгений wrote:
 no, I upgrade from freebsd current 201101 to 201105
 and there was command without buildworld

The compiler toolchain is rebuilt with buildworld/installworld.  Perhaps it 
would be more useful to see what kind of error you are experiencing which makes 
you think that updating the build tools would help?

Regards,
-- 
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Expanding tabs (was Re: kwik way?)

2011-05-18 Thread Gary Kline
On Wed, May 18, 2011 at 01:09:36PM -0500, Dan Nelson wrote:
 Date: Wed, 18 May 2011 13:09:36 -0500
 From: Dan Nelson dnel...@allantgroup.com
 Subject: Re: Expanding tabs (was Re: kwik way?)
 To: Gary Kline kl...@thought.org
 Cc: FreeBSD Mailing List freebsd-questions@freebsd.org
 
 In the last episode (May 18), Gary Kline said:
  should i use tr or sed to turn \t into  ?  --i.e., tabs into spaces.
 
 tr or expand (depending on whether you want to honor the intent of the tab
 or not).  sed is overkill.


yeah, agree.  i grabbed an old `for k in *;do' script and used tr on 
80+ files.  [facing reality, i'm throwing in the towel on hacking.
wanted something easy!]

aapreciate it.
 
 -- 
   Dan Nelson
   dnel...@allantgroup.com

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 7.98a release of Jottings: http://jottings.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Re[4]: How to update build tools

2011-05-18 Thread Chuck Swiger
On May 18, 2011, at 12:21 PM, Коньков Евгений wrote:
 CS The compiler toolchain is rebuilt with buildworld/installworld. 
 CS Perhaps it would be more useful to see what kind of error you are
 CS experiencing which makes you think that updating the build tools would 
 help?
 
 error 2 when compile zlib. Sorry, I clean already and do not mind details.

Hmm-- FreeBSD should already provide an up-to-date zlib...?

 While googling I am making buildworld.
 If error will repeat I will post it here.
 thank you.

OK.

-- 
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re[2]: How to update build tools

2011-05-18 Thread Коньков Евгений
Здравствуйте, Chuck.

Вы писали 18 мая 2011 г., 22:03:49:

CS On May 18, 2011, at 12:01 PM, Коньков Евгений wrote:
 I am compile freebsd from source, but get error 2
 some time ago somebody advice me to update build tools or etc.
 But I do not remember (
 
 please remind me which command to use to update build tools?

CS cd /usr/src ; make buildworld

CS (See /usr/src/UPDATING and/or the FreeBSD Handbook)

CS Regards,

no, I upgrade from freebsd current 201101 to 201105
and there was command without buildworld

-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re[4]: How to update build tools

2011-05-18 Thread Коньков Евгений
Здравствуйте, Chuck.

Вы писали 18 мая 2011 г., 22:09:26:

CS On May 18, 2011, at 12:07 PM, Коньков Евгений wrote:
 no, I upgrade from freebsd current 201101 to 201105
 and there was command without buildworld

CS The compiler toolchain is rebuilt with buildworld/installworld. 
CS Perhaps it would be more useful to see what kind of error you are
CS experiencing which makes you think that updating the build tools would help?

error 2 when compile zlib. Sorry, I clean already and do not mind
details.
While googling I am making buildworld.
If error will repeat I will post it here.
thank you.


-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re[6]: How to update build tools

2011-05-18 Thread Коньков Евгений
Здравствуйте, Chuck.

Вы писали 18 мая 2011 г., 22:23:26:

CS On May 18, 2011, at 12:21 PM, Коньков Евгений wrote:
 CS The compiler toolchain is rebuilt with buildworld/installworld. 
 CS Perhaps it would be more useful to see what kind of error you are
 CS experiencing which makes you think that updating the build tools would 
 help?
 
 error 2 when compile zlib. Sorry, I clean already and do not mind details.

CS Hmm-- FreeBSD should already provide an up-to-date zlib...?

 While googling I am making buildworld.
 If error will repeat I will post it here.
 thank you.

CS OK.

compiled without problem. after make buildworld

-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Buildworld Benchmarks

2011-05-18 Thread krad
On 18 May 2011 01:50, Devin Teske dte...@vicor.com wrote:

 Hi List,

 What's the fastest anyone has every completed buildworld on a single
 machine?

 The reason I ask is because we just got some new hardware in and decided to
 benchmark it using buildworld.

 Just as a quick test, we decided to perform make -j 48 buildworld. We
 finished
 in approximately 9 minutes.

 I think that we can improve upon that, but am having a bit of difficulty.

 Can anyone offer any pointers in how to achieve the fastest buildworld
 possible?
 No particular reason... we're just trying to push the boundaries of what's
 possible.

 For reference the machine we're compiling on is a dual-socket Nehalem Xeon
 (six-core per proc; HTT enabled; 24 total CPUs presented by APIC) with 48GB
 of
 RAM, an LSI MegaSAS RAID controller, and an LSI 2Gbps Fibre Channel HBA
 going to
 an 8TB NEC D-4 array.

 ASIDE: Doing the same buildworld on a 4-disk ZFS raidz yielded
 approximately
 11-minutes. Performing the buildworld on the NEC D-4 over the 2Gbps FC HBA
 yielded approximately 12 minutes. And for some unknown reason, performing
 buildworld on tmpfs yielded 13 minutes.

 We thought going tmpfs would make things faster, but that resulted in over
 13
 minutes (huh? you'd think a RAM disk would be smoking compared to even the
 SSDs
 that we used to achieve ~9 min; do note that we did make sure to nullfs
 mount a
 tmpfs-based directory onto /usr/obj -- though the performance of that
 nullfs
 mount might have hurt the test, not sure).
 --
 Devin

 _

 The information contained in this message is proprietary and/or
 confidential. If you are not the intended recipient, please: (i) delete the
 message and all copies; (ii) do not disclose, distribute or use the message
 in any manner; and (iii) notify the sender immediately. In addition, please
 be aware that any message addressed to our domain is subject to archiving
 and review by persons other than the intended recipient. Thank you.
 _
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org


to make it fair you would have to have a generic src.conf
and specify whether you used clang or gcc. As well as the release as well
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: kwik way?

2011-05-18 Thread Warren Block

On Wed, 18 May 2011, Devin Teske wrote:


In case you were thinking of either awk or perl, I'd recommend against those
given the following results:


...


$ time sh -c perl -pe 'tr/\t/ /'  foo  bar
real0m0.565s
user0m0.277s
sys 0m0.137s
$ md5 bar
MD5 (bar) = f0187bcbc37cd6d84c6f5cadc6443843


While Perl is a quarter of a second slower than best-case sed, it does 
offer the ability to directly understand \t (and \n, and lots of other 
escapes).

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org