Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread O. Hartmann
I'm just wondering what's wrong with FreeBSD 8.0/amd64 when I read the 
Benchmarks on Phoronix.org's website. Especially FreeBSD's threaded I/O 
shows in contrast to all claims that have been to be improoved the opposite.


oh
___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread alex
I didn't know these were released already, but I had a look. I was 
disappointed with the results.


If anyone wants to look here is the link:

http://www.phoronix.com/scan.php?page=articleitem=freebsd8_benchmarksnum=1

Linux's ext4 seems to leave UFS and ZFS well behind in a number of 
benchmarks.


O. Hartmann wrote:
I'm just wondering what's wrong with FreeBSD 8.0/amd64 when I read the 
Benchmarks on Phoronix.org's website. Especially FreeBSD's threaded 
I/O shows in contrast to all claims that have been to be improoved the 
opposite.


oh
___
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-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: Why I am getting message: wlan0: ieee80211_new_state_locked: pending SCAN - RUN transition lost in 8.0 with ndis driver?

2009-11-30 Thread Paul B Mahol
On 11/30/09, Yuri y...@rawbw.com wrote:
 After upgrading to 8.0 I am getting a new message: wlan0:
 /ieee80211_new_state_locked: pending SCAN/ - RUN transition lost.
 I use ndis driver with Broadcom WiFi card BCM94312MCGSG.

That is debug message temporarely enabled unconditionally and then forgotten.

There is race in if_ndis driver between how link state event is handled and
how it is passed to net80211, causing such message.
In almost all cases you can ignore it.
___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread Thomas Backman
On Nov 30, 2009, at 9:47 AM, O. Hartmann wrote:

 I'm just wondering what's wrong with FreeBSD 8.0/amd64 when I read the 
 Benchmarks on Phoronix.org's website. Especially FreeBSD's threaded I/O shows 
 in contrast to all claims that have been to be improoved the opposite.
Corrected link: 
http://www.phoronix.com/scan.php?page=articleitem=freebsd8_benchmarksnum=1

And yeah, quite honestly: disk scheduling in FreeBSD appears to suck... The 
only reason I'm not switching from Linux. :(

Regards,
Thomas

(PS. See my thread about horrible console latency during disk IO in the 
archives, very related. DS.)___
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: ZFSROOT / Custom Kernels [or upgrades]

2009-11-30 Thread krad
2009/11/30 Philip M. Gollucci pgollu...@p6m7g8.com

 Hi All,

 1)
 I followed this wiki link to setup our server [sigyn.apache.org]
 (Dell r710 with 4 disks mfid[0123] as raidz2)
 http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/RAIDZ2

 Rebooted all was well.

 2) off on another 'build' box [loki.apache.org], I had compiled
 release/8.0.0 userland+kernel [with LOADER_ZFS_SUPPORT=yes].
 Whats the ETA for MFC from trunk-stable/8 for
 http://svn.freebsd.org/viewvc/base?view=revisionrevision=199714

 ** FWIW, loki is working nicely on 8.0-RELEASE geom+zfs.

 3) I nfs mounted /usr/src, and /usr/obj on sigyn from loki.
 $ cd /usr/src
 $ sudo make installkernel KERNCONF=SIGYN

 It fails to mount from zfs:zroot upon reboot. Via great hoops and magic
 I got back into the fixit on remote console. I didn't see a loader.old
 or a zfsboot. So I repeated the steps in wiki to install zfsboot.
 Rebooted, same diff.

 Jumped backed to fixit and reverted the kernel to a stock GENERIC that
 worked the 1st time.  Same error again.
 cd /boot
 $ mv kernel kernel.cust
 $ mv kernel.old kernel

 So assuming you are lucky enough to get a zfsroot system.  Is there an
 actual upgrade path ? Am I missing something stupid ?

 Any help greatly appreciated.

 I have a few days to play with this machine before we forgoe zfsroot and
 drop back to geom gmirror.

 I'm at a datacenter for $work on Monday/Tuesday so I'll be spare over
 tonight.






 --
 
 1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C
 Philip M. Gollucci (pgollu...@p6m7g8.com) c: 703.336.9354
 VP Apache Infrastructure; Member, Apache Software Foundation
 Committer,FreeBSD Foundation
 Sr. System Admin, Ridecharge Inc.
 Consultant,   P6M7G8 Inc.

 Work like you don't need the money,
 love like you'll never get hurt,
 and dance like nobody's watching.
 ___
 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


if you want to install the loader make sure you do a 'cd /usr/src/sys/boot/;
make install'

also never export the zpool before you reboot as this will clear it from the
zpool.cache file and it wont boot proply
___
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


Transparent proxy using IPFW

2009-11-30 Thread kalpin
Dear All,

Is it possible to do like my requirement below?

1. Setup portfwd in my server listen on port 555 and forward all
connection through this port to another server with same port or different
port
2. All client which connected through this port, then remote server which
landed to the end can see the client's IP.

example:

Client IP: 202.15.15.16
FreeBSD IP: 202.16.17.18 listen on port 555
Remote Server IP: 202.89.89.90

Client IP connect to 202.16.17.18 on port 555, and then FreeBSD forward it
to 202.89.89.90 with same port or different port. Server with IP
202.89.89.90 can see Client's IP 202.15.15.16.

I am using FreeBSD 7.2-stable.

Thank you

Kalpin Erlangga Silaen

___
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


bsnmpd + zfs

2009-11-30 Thread Gergely CZUCZY
Hello,

I've read in the 8.0 detailed release notes [1] that bsnmpd(1) now
supports ZFS OIDs. So far i wasn't able to lure this support out of it,
and I'm neither able to find any information on this in its manual or
among the MIB files, or in the complete snmp walk of the host.

I've enabled mbII nad hostres, and haven't seen any more modules that
could be related in the example config, nor among /usr/lib/snmp_*.so.

Could someone tell me please how to monitor a ZFS system on 8 using
bsnmpd, what am I missing here?

[1] http://www.freebsd.org/releases/8.0R/relnotes-detailed.html#USERLAND

(I've CC'd harti@ because he's the author according to bsnmpd(1) )

-- 
Sincerely,
Gergely CZUCZY
Harmless Digital Bt

+36-30-9702963
___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread O. Hartmann

Thomas Backman wrote:

On Nov 30, 2009, at 9:47 AM, O. Hartmann wrote:


I'm just wondering what's wrong with FreeBSD 8.0/amd64 when I read the 
Benchmarks on Phoronix.org's website. Especially FreeBSD's threaded I/O shows 
in contrast to all claims that have been to be improoved the opposite.

Corrected link: 
http://www.phoronix.com/scan.php?page=articleitem=freebsd8_benchmarksnum=1

And yeah, quite honestly: disk scheduling in FreeBSD appears to suck... The 
only reason I'm not switching from Linux. :(

Regards,
Thomas

(PS. See my thread about horrible console latency during disk IO in the 
archives, very related. DS.)


Hello Thomas.
I recall myself having had similar problems during heavy disk I/O (UFS 
and ZFS) with stuck console, stuck clients and especially stuck 
X11-clients. The discussion was really 'hot', but in the end no clear 
statement was made whether this is disk-i/o related or a deeper problem 
in the scheduler.


Sorry for the lack of the link, I thought Phoronix is well known ...

Oliver
___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread Thomas Backman
On Nov 30, 2009, at 12:38 PM, O. Hartmann wrote:

 Thomas Backman wrote:
 On Nov 30, 2009, at 9:47 AM, O. Hartmann wrote:
 I'm just wondering what's wrong with FreeBSD 8.0/amd64 when I read the 
 Benchmarks on Phoronix.org's website. Especially FreeBSD's threaded I/O 
 shows in contrast to all claims that have been to be improoved the opposite.
 Corrected link: 
 http://www.phoronix.com/scan.php?page=articleitem=freebsd8_benchmarksnum=1
 And yeah, quite honestly: disk scheduling in FreeBSD appears to suck... The 
 only reason I'm not switching from Linux. :(
 Regards,
 Thomas
 (PS. See my thread about horrible console latency during disk IO in the 
 archives, very related. DS.)
 
 Hello Thomas.
 I recall myself having had similar problems during heavy disk I/O (UFS and 
 ZFS) with stuck console, stuck clients and especially stuck X11-clients. The 
 discussion was really 'hot', but in the end no clear statement was made 
 whether this is disk-i/o related or a deeper problem in the scheduler.
 
 Sorry for the lack of the link, I thought Phoronix is well known ...
 
 Oliver
That's too bad, re: the scheduling. It seems to be a quite universal problem, 
yet I haven't seen much effort spent on working on the problem. :/

Re: phoronix, I commented mostly because the site is .com and not .org, so I 
came to a parked domain when I clicked your link. :)
Also, I figured linking directly to the article will help the archives.

Regards,
Thomas___
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 only on MacBook? Having problems...

2009-11-30 Thread Vincent Hoffman
w s wrote:
 (x posted to http://forums.freebsd.org/showthread.php?t=8827, my
 apologies, but no one seems interested there...)

 I am trying to follow the steps to install FreeBSD 8.0 on my MacBook.
 I don't want to dual boot or anything, so I am following along here:

 http://wiki.freebsd.org/AppleMacbook...15739bad407a8a

 (Note that earlier I managed to stomp all over the slices trying to
 partition without reading the directions...)

 However, it doesn't match my experience exactly, and I don't really
 have the FreeBSD background to compensate (long time Linux user, and
 never very hardware focused at all), so here are some starting
 questions (Note I am in the Fixit shell from the livefs CD):

 1. Is gpart the same as gpt?
   
Almost, gpart is the successor of gpt. the wiki still needs a little
updating, (seems to be part gpt and part gpart based)
 2. How can I lose the GPT? When I run # gpart destory ad5 I get
 gpart: Device busy. I presume that it is because / is mounted to run
 the livefs CD. So ...

   
Not quite, if you run gpart show you should get a list of stuff on ad5,
so before you can destroy the GPT you have to delete the stuff using
it,a quick example using an md device:
(reminder just in case, this will remove ANY partitions on the disk, but
you already know that :)

[r...@ostracod /scratch]# gpart show md0
=   34  19933  md0  GPT  (9.8M)
 34  199331  freebsd-ufs  (9.7M)
[r...@ostracod /scratch]# gpart destroy md0
gpart: Device busy
[r...@ostracod /scratch]# gpart delete -i 1 md0
md0p1 deleted
[r...@ostracod /scratch]# gpart destroy md0
md0 destroyed

 3. Umm, what do I do now

 If I run gpart show ad5 I get a bunch of stuff which I would have to
 type in manually -- let me know which pieces are important and I will
 do it.

   
Hope that helps, gpart (and GPT) is great once you get used to it but
its got a learning curve.

Vince

 TIA!
 ___
 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-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: ntpdate on FreeBSD 8.0

2009-11-30 Thread ajtiM
On Sunday 29 November 2009 21:38:04 Warren Block wrote:
 On Sun, 29 Nov 2009, ajtiM wrote:
  I have new installed FreeBSD 8.0 and in rc.conf I have:
 
  ntpdate_enable=YES
  ntpdate_hosts=ntp1.cs.wisc.edu
 
  When I boot computer I get a message there are no this host but when I
  run /usr/sbin/ntpdate ntp1.cs.wisc.edu it works.
 
  I had the same in rc.conf on FreeBSD 7.2 and it works all the time. All
  settings on FreeBSD8.0 are the same as I had on 7.2.
 
 Might you have a Realtek network card?
 
 -Warren Block * Rapid City, South Dakota USA
 

Yes, I have realtek card too but it is not active. DHCP is on sk0 and as I 
wrote I never had problems with that. Maybe is different now?
___
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: problem with Olympus USB camera on 8.0 RELEASE

2009-11-30 Thread Mike Clarke
On Sunday 29 November 2009, krad wrote:

 2009/11/28 Mike Clarke jmc-freeb...@milibyte.co.uk

  The camera in question is an Olympus C-2040Z, I've had no problems
  using it with 6.4. I tried rev. 7 some time ago but plugging the
  camera in always caused a panic and crash so I stayed with 6.4. Now
  that 8.0 is out I'd like to move on and the good news is that with
  8.0 I can connect the camera without a panic but the bad news is
  that although the system detects the camera I'm not able to access
  it. On plugging in the camera I see the following console messages:
 
  ugen0.2: OLYMPUS at usbus0
  umass0: OLYMPUS C-2040ZOOM, class 0/0, rev 1.10/1.00, addr 2 on
  usbus0 umass0:  SCSI over (unknown 0x00); quirks = 0x0100
  umass0: could not setup required transfers, USB_ERR_INVAL
  device_attach: umass0 attach returned 6


[snip]

  try connecting it via a powerd usb hub

Unfortunately I don't have one, perhaps my simplest solution would be to 
get a USB card reader and bypass the camera's USB system.

  or forcing the usb speed down to version 1

I tried this by building a test kernel without ehci but that had no 
effect and the camera was still inaccessible..

-- 
Mike Clarke
___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread Ivan Voras

Thomas Backman wrote:

On Nov 30, 2009, at 9:47 AM, O. Hartmann wrote:


I'm just wondering what's wrong with FreeBSD 8.0/amd64 when I read the 
Benchmarks on Phoronix.org's website. Especially FreeBSD's threaded I/O shows 
in contrast to all claims that have been to be improoved the opposite.

Corrected link: 
http://www.phoronix.com/scan.php?page=articleitem=freebsd8_benchmarksnum=1

And yeah, quite honestly: disk scheduling in FreeBSD appears to suck... The 
only reason I'm not switching from Linux. :(


About the only useful result of the Phoronix benchmark suite in 
general is that benchmarking is hard, and that though tedious, 
statistical analisys and multiple runs actually have a realistic 
purpose. I suspect their runs have a very large variance between tests 
and are only useful in order-of-magnitude sort of comparisons.


Most of their CPU-bound benchmarks therefore show results with 
insignificant differences, and most of the others benchmark the 
compilers. On the other hand, disk IO benchmarks like 
http://www.phoronix.com/scan.php?page=articleitem=freebsd8_benchmarksnum=7 
reflect the real state of the things, which can be easily demonstrated 
by a large number of other benchmarks (e.g. blogbench). AFAIK there is 
some speculation among developers about why is this so, but nothing 
definite yet.


For what it's worth, ZFS effectively does a fair bit of its own IO 
scheduling, so persons interested in this particular aspect should also 
try the tests with ZFS. My own tests (with other benchmarks) show that 
ZFS helps significantly, though the cumulative result is still 
significantly worse than Linux's.


___
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 processes reproducible read same file with different speed

2009-11-30 Thread Ivan Voras

cronfy wrote:

Hello.

I've noticed a very weird behavior of 2 Apache processes that shold read 
the same file to process a request (they configured to read it on every 
request). One spends about 6ms to read the file, and second spends about 
114ms (I used ktrace to find this out). Every time, on every request, 
the problem is reproducible. Apaches are the same, the only difference 
between them that they are working from different users to serve 
different sites. Same binary, same config.


First Apache used to work in the same way some time ago - it spent 
~120ms to read the file. But once it changed and now it is working fast.


Restarts of Apache do not look to affect on anything.

The file that Apache should read is 315k long. Apache reads it by small 
blocks of 4096 bytes each. May be FreeBSD has some memory about how 
process is working with files and after some time enables some 
optimization or caching? I just do not have any clue... :(


Can anyone explain this please?


In addition to the other reply you got, there could also be a problem of 
different link speeds. If one user is connected by a slower link any you 
are doing blocking send()-after-read() operation, this will account for 
requests being processed at different speeds.


___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread Bill Moran
In response to Ivan Voras ivo...@freebsd.org:

 Thomas Backman wrote:
  On Nov 30, 2009, at 9:47 AM, O. Hartmann wrote:
  
  I'm just wondering what's wrong with FreeBSD 8.0/amd64 when I read the 
  Benchmarks on Phoronix.org's website. Especially FreeBSD's threaded I/O 
  shows in contrast to all claims that have been to be improoved the 
  opposite.
  Corrected link: 
  http://www.phoronix.com/scan.php?page=articleitem=freebsd8_benchmarksnum=1
  
  And yeah, quite honestly: disk scheduling in FreeBSD appears to suck... The 
  only reason I'm not switching from Linux. :(

All operating systems were left with their default options during the
installation process...

It's common knowledge that the default value for vfs.read_max is non-
optimal for most hardware and that significant performance improvements
can be made in most cases by raising it.

While it would be nice if FreeBSD shipped with a more performant default
setting, it would also be nice if mindless benchmark drones would quit
assuming that every system ships pre-configured to perform optimally in
their benchmarks.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread Holger Kipp
On Mon, Nov 30, 2009 at 02:49:17PM +0100, Ivan Voras wrote:
 Bill Moran wrote:
 In response to Ivan Voras ivo...@freebsd.org:
 
 Thomas Backman wrote:
 On Nov 30, 2009, at 9:47 AM, O. Hartmann wrote:
 
 I'm just wondering what's wrong with FreeBSD 8.0/amd64 when I read the 
 Benchmarks on Phoronix.org's website. Especially FreeBSD's threaded I/O 
 shows in contrast to all claims that have been to be improoved the 
 opposite.
 Corrected link: 
 http://www.phoronix.com/scan.php?page=articleitem=freebsd8_benchmarksnum=1
 
 And yeah, quite honestly: disk scheduling in FreeBSD appears to suck... 
 The only reason I'm not switching from Linux. :(
 
 All operating systems were left with their default options during the
 installation process...
 
 It's common knowledge that the default value for vfs.read_max is non-
 optimal for most hardware and that significant performance improvements
 can be made in most cases by raising it.
 
 On the other hand, random IO is negatively influenced by readahead :)

Parallel Random I/O gives better results on Raid 5 than a single sequential
read :-) I also found FreeBSD UFS with Softupdates handling directories with
many small files much better than Linux and ReiserFS (same hardware) - at least
a simple ls returned much quicker on FreeBSD (factor 5 to 10).

So it is always a matter of what you intend to do with the filesystem - is it
for logging, for mailserver-storage, for database usage, for fileserver, 
webserver
etc. (with or without changing atime), with redundancy (raid 1, 5, 10) or using
zfs, etc.

With FreeBSD we have a system that works ok out of the box, but for real-world 
usage needs some tuning to be optimised for the specific task.

Regards,
Holger
___
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: problem with Olympus USB camera on 8.0 RELEASE

2009-11-30 Thread Polytropon
On Mon, 30 Nov 2009 12:35:17 +, Mike Clarke jmc-freeb...@milibyte.co.uk 
wrote:
 Unfortunately I don't have one, perhaps my simplest solution would be to 
 get a USB card reader and bypass the camera's USB system.

I found this solution very handy. With my camera (Canon S3 IS),
it's easier to get the card out of the camera than plugging
the cable into the camera. Scripting (automatically moving
pictures from card, placing them into ~/cam, dating and
renumbering) is easy, too.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread Ivan Voras

Holger Kipp wrote:

On Mon, Nov 30, 2009 at 02:49:17PM +0100, Ivan Voras wrote:



On the other hand, random IO is negatively influenced by readahead :)


Parallel Random I/O gives better results on Raid 5 than a single sequential
read :-) I also found FreeBSD UFS with Softupdates handling directories with
many small files much better than Linux and ReiserFS (same hardware) - at least
a simple ls returned much quicker on FreeBSD (factor 5 to 10).


Yes, until ext4 I was always surprised how bad Linux ext2/3 handled 
large metadata operations (file deletions and creations). UFS+SU 
definitely has places where it shines.


With FreeBSD we have a system that works ok out of the box, but for real-world 
usage needs some tuning to be optimised for the specific task.


Of course. But I think the issue at hand is that there really is more 
work to do to catch up on average IO performance.


___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread Robert Huff

Bill Moran writes:

  It's common knowledge that the default value for vfs.read_max is
  non- optimal for most hardware and that significant performance
  improvements can be made in most cases by raising it.

Documentation/discussion where?

Respectfully,


Robert Huff

___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread Bill Moran
In response to Robert Huff roberth...@rcn.com:

 
 Bill Moran writes:
 
   It's common knowledge that the default value for vfs.read_max is
   non- optimal for most hardware and that significant performance
   improvements can be made in most cases by raising it.
 
   Documentation/discussion where?

http://www.google.com/search?q=freebsd+vfs.read_max

... although it doesn't seem to be officially documented anywhere.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread Ivan Voras

Robert Huff wrote:

Bill Moran writes:


 It's common knowledge that the default value for vfs.read_max is
 non- optimal for most hardware and that significant performance
 improvements can be made in most cases by raising it.


Documentation/discussion where?


There is no documentation except for the sysctl documentation itself: 
vfs.read_max: Cluster read-ahead max block count but it depends on the 
load - it helps sequential reads, will probably do nothing for other 
kinds of loads. It is also UFS-only.


___
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


PL_sv_undef and PL_stack_max undefined - FreBSD 8.0, Perl 5.8.9 or 5.10, FreeRADIUS 2.1.6

2009-11-30 Thread Meyers, Dan
We've had a setup for a while where we have a FreeBSD server running
FreeRADIUS 2.1.6 and using the rlm_perl module to examine a database and
do some fairly complex checking of the returned data before deciding
whether to accept or reject the radius request. This works fine on
FreeBSD 7.2 amd64 with Perl 5.8.9 and FreeRADIUS 2.1.6 (all compiled
from source out of the same copy of the ports tree. Perl compiled
without threading support as that causes issues with our database
connections when under high load).

We had need to reinstall one of the servers over the weekend (We went
from i386 to amd64 a while back, and now we're periodically getting
mysql [replicated across multiple servers, but with a ruby on rails app
running on and talking to/updating the mysql master] hanging on what
should be very simple requests and causing our Ruby on Rails apps to
die. We're going back to i386 to see if that resolves the issue, as the
rails code hasn't been changed so it shouldn't be that. As far as we can
tell, it is actually mysql that is hanging, not a lost connection from
rails or similar).

Anyway, as FreeBSD 8.0 is now out we decided to go with that. But now I
can't get radius to start with rlm_perl enabled. Our radius script uses
(among other things) the 'Switch' perl module. On trying to run radius
-X I get the following:

Can't load
'/usr/local/lib/perl5/5.8.9/mach/auto/Filter/Util/Call/Call.so' for
module Filter::Util::Call:
/usr/local/lib/perl5/5.8.9/mach/auto/Filter/Util/Call/Call.so: Undefined
symbol PL_stack_max at /usr/local/lib/perl5/5.8.9/mach/DynaLoader.pm
line 226.
 at /usr/local/lib/perl5/5.8.9/Switch.pm line 11

and radius refuses to start.

I've not got the perl Filter module installed, and installing it makes
no difference. But this seems to be a minor symptom of a larger problem
-

The freeradius provided example script doesn't use Switch, but does use
Data:Dumper. When I install a completely different server (a VM) with
FreeBSD 8.0 and run up perl and FreeRADIUS using the example.pl rlm_perl
script, I get much the same error, but for a slightly different
variable:

Can't load '/usr/local/lib/perl5/5.8.9/mach/auto/Data/Dumper/Dumper.so'
for module Data::Dumper:
/usr/local/lib/perl5/5.8.9/mach/auto/Data/Dumper/Dumper.so: Undefined
symbol PL_sv_undef at /usr/local/lib/perl5/5.8.9/mach/XSLoader.pm line
70.
 at /usr/local/lib/perl5/5.8.9/mach/Data/Dumper.pm line 36

I've tried commenting and uncommenting various modules in the script I
want to run. Time::HiRes also causes a moan about PL_sv_undef.
File::Basename seems to work OK. What's odd is that if I run up a test
perl script that just does a 'use Switch;' and then has a switch
statement in that prints out some text then it works absolutely fine
from the command line. I have to admit to being a bit out of my depth
here. I'm not sure if the issue is with freeradius/rlm_perl, perl
itself, or what.

As a last ditch test, I tried FreeBSD 7.2 i386 in a VM. I was very
surprised when I got the same error, even though this server that is now
having issues was FreeBSD 7.2 (admittedly on amd64) and having no
problems whatsoever. I am completely stumped. Why are these symbols
undefined, and what do I need to do to get things working?

Thanks in advance. Apologies for the wall of text.

--
Dan Meyers
Network Specialist, Lancaster University
E-Mail: d.mey...@lancaster.ac.uk

___
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: ntpdate on FreeBSD 8.0

2009-11-30 Thread Warren Block

On Mon, 30 Nov 2009, ajtiM wrote:


On Sunday 29 November 2009 21:38:04 Warren Block wrote:

On Sun, 29 Nov 2009, ajtiM wrote:

I have new installed FreeBSD 8.0 and in rc.conf I have:

ntpdate_enable=YES
ntpdate_hosts=ntp1.cs.wisc.edu

When I boot computer I get a message there are no this host but when I
run /usr/sbin/ntpdate ntp1.cs.wisc.edu it works.

I had the same in rc.conf on FreeBSD 7.2 and it works all the time. All
settings on FreeBSD8.0 are the same as I had on 7.2.


Might you have a Realtek network card?


Yes, I have realtek card too but it is not active. DHCP is on sk0 and as I
wrote I never had problems with that. Maybe is different now?


The 8.0 if_re code had the card go through a link up/down pair three 
times on startup.  By the time DHCP had gotten to it, other stuff had 
already errored out (sendmail in my case).  yongari fixed it with a 
patch:


http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/re/if_re.c.diff?r1=1.162;r2=1.163

Your problem sounds like it might be similar.

-Warren Block * Rapid City, South Dakota USA
___
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


ports/print/cups-base: failed to update via portmaster since yesterday

2009-11-30 Thread O. Hartmann
portmaster -dav fails updating ports since yesterday, stopping at 
print/cups-base with the following error message:


[...]
client.o(.text+0x1c95): In function `encrypt_client':
/usr/ports/print/cups-base/work/cups-1.4.2/scheduler/client.c:3217: 
undefined reference to `_httpReadGNUTLS'
client.o(.text+0x1ca4):/usr/ports/print/cups-base/work/cups-1.4.2/scheduler/client.c:3218: 
undefined reference to `_httpWriteGNUTLS'

gmake[1]: *** [cupsd] Error 1
gmake[1]: Leaving directory 
`/usr/ports/print/cups-base/work/cups-1.4.2/scheduler'

gmake: *** [all] Error 1
*** Error code 1

Stop in /usr/ports/print/cups-base.
*** Error code 1

Stop in /usr/ports/print/cups-base.

=== make failed for print/cups-base
=== Aborting update

=== Update for cups-base-1.3.10_4 failed
=== Aborting update



Configuration of cups-base is with all but debugging options set, 
disabling all configurational options, especially GNU_TLS also fails 
updating the port. Is there any solution to fix this? What's wrong?


Regards,
Oliver

___
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: Transparent proxy using IPFW

2009-11-30 Thread krad
2009/11/30 kal...@muliahost.com

 Dear All,

 Is it possible to do like my requirement below?

 1. Setup portfwd in my server listen on port 555 and forward all
 connection through this port to another server with same port or different
 port
 2. All client which connected through this port, then remote server which
 landed to the end can see the client's IP.

 example:

 Client IP: 202.15.15.16
 FreeBSD IP: 202.16.17.18 listen on port 555
 Remote Server IP: 202.89.89.90

 Client IP connect to 202.16.17.18 on port 555, and then FreeBSD forward it
 to 202.89.89.90 with same port or different port. Server with IP
 202.89.89.90 can see Client's IP 202.15.15.16.

 I am using FreeBSD 7.2-stable.

 Thank you

 Kalpin Erlangga Silaen

 ___
 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


you can but you will need to do some natting otherwise the return traffic
will go direct to host a from c and not via your box host b

or you could use nc via inetd

eg

some_service stream  tcp nowait  root
/usr/local/bin/nc  nc -n -w 3  hostC port_on_hostc
___
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: bsnmpd + zfs

2009-11-30 Thread krad
2009/11/30 Gergely CZUCZY gergely.czu...@harmless.hu

 Hello,

 I've read in the 8.0 detailed release notes [1] that bsnmpd(1) now
 supports ZFS OIDs. So far i wasn't able to lure this support out of it,
 and I'm neither able to find any information on this in its manual or
 among the MIB files, or in the complete snmp walk of the host.

 I've enabled mbII nad hostres, and haven't seen any more modules that
 could be related in the example config, nor among /usr/lib/snmp_*.so.

 Could someone tell me please how to monitor a ZFS system on 8 using
 bsnmpd, what am I missing here?

 [1] http://www.freebsd.org/releases/8.0R/relnotes-detailed.html#USERLAND

 (I've CC'd harti@ because he's the author according to bsnmpd(1) )

 --
 Sincerely,
 Gergely CZUCZY
 Harmless Digital Bt

 +36-30-9702963
 ___
 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


I saw that and thought something similar. All I could find though is when
you can browse the fs on the box it now reports the fs as 'zfs' rather than
'other', useful but not that exciting 8(
___
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: PL_sv_undef and PL_stack_max undefined - FreBSD 8.0, Perl 5.8.9 or 5.10, FreeRADIUS 2.1.6

2009-11-30 Thread Meyers, Dan
Had a bit more of a poke. Same symptoms under FreeBSD 7.2 amd64. I am
now looking towards there being some kind of issue with the perl or
freeradius in ports/packages. Has anyone else seen this at all? 

 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of Meyers, Dan
 Sent: 30 November 2009 15:00
 To: freebsd-questions@freebsd.org
 Subject: PL_sv_undef and PL_stack_max undefined - FreBSD 8.0,Perl
5.8.9
 or 5.10, FreeRADIUS 2.1.6
 
 We've had a setup for a while where we have a FreeBSD server running
 FreeRADIUS 2.1.6 and using the rlm_perl module to examine a database
 and
 do some fairly complex checking of the returned data before deciding
 whether to accept or reject the radius request. This works fine on
 FreeBSD 7.2 amd64 with Perl 5.8.9 and FreeRADIUS 2.1.6 (all compiled
 from source out of the same copy of the ports tree. Perl compiled
 without threading support as that causes issues with our database
 connections when under high load).
 
 We had need to reinstall one of the servers over the weekend (We went
 from i386 to amd64 a while back, and now we're periodically getting
 mysql [replicated across multiple servers, but with a ruby on rails
app
 running on and talking to/updating the mysql master] hanging on what
 should be very simple requests and causing our Ruby on Rails apps to
 die. We're going back to i386 to see if that resolves the issue, as
the
 rails code hasn't been changed so it shouldn't be that. As far as we
 can
 tell, it is actually mysql that is hanging, not a lost connection from
 rails or similar).
 
 Anyway, as FreeBSD 8.0 is now out we decided to go with that. But now
I
 can't get radius to start with rlm_perl enabled. Our radius script
uses
 (among other things) the 'Switch' perl module. On trying to run radius
 -X I get the following:
 
 Can't load
 '/usr/local/lib/perl5/5.8.9/mach/auto/Filter/Util/Call/Call.so' for
 module Filter::Util::Call:
 /usr/local/lib/perl5/5.8.9/mach/auto/Filter/Util/Call/Call.so:
 Undefined
 symbol PL_stack_max at /usr/local/lib/perl5/5.8.9/mach/DynaLoader.pm
 line 226.
  at /usr/local/lib/perl5/5.8.9/Switch.pm line 11
 
 and radius refuses to start.
 
 I've not got the perl Filter module installed, and installing it makes
 no difference. But this seems to be a minor symptom of a larger
problem
 -
 
 The freeradius provided example script doesn't use Switch, but does
use
 Data:Dumper. When I install a completely different server (a VM) with
 FreeBSD 8.0 and run up perl and FreeRADIUS using the example.pl
 rlm_perl
 script, I get much the same error, but for a slightly different
 variable:
 
 Can't load
'/usr/local/lib/perl5/5.8.9/mach/auto/Data/Dumper/Dumper.so'
 for module Data::Dumper:
 /usr/local/lib/perl5/5.8.9/mach/auto/Data/Dumper/Dumper.so: Undefined
 symbol PL_sv_undef at /usr/local/lib/perl5/5.8.9/mach/XSLoader.pm
 line
 70.
  at /usr/local/lib/perl5/5.8.9/mach/Data/Dumper.pm line 36
 
 I've tried commenting and uncommenting various modules in the script I
 want to run. Time::HiRes also causes a moan about PL_sv_undef.
 File::Basename seems to work OK. What's odd is that if I run up a test
 perl script that just does a 'use Switch;' and then has a switch
 statement in that prints out some text then it works absolutely fine
 from the command line. I have to admit to being a bit out of my depth
 here. I'm not sure if the issue is with freeradius/rlm_perl, perl
 itself, or what.
 
 As a last ditch test, I tried FreeBSD 7.2 i386 in a VM. I was very
 surprised when I got the same error, even though this server that is
 now
 having issues was FreeBSD 7.2 (admittedly on amd64) and having no
 problems whatsoever. I am completely stumped. Why are these symbols
 undefined, and what do I need to do to get things working?
 
 Thanks in advance. Apologies for the wall of text.
___
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: ZFSROOT / Custom Kernels [or upgrades]

2009-11-30 Thread Robert Noland
On Mon, 2009-11-30 at 02:17 -0500, Philip M. Gollucci wrote:
 Hi All,
 
 1)
 I followed this wiki link to setup our server [sigyn.apache.org]
 (Dell r710 with 4 disks mfid[0123] as raidz2)
 http://wiki.freebsd.org/RootOnZFS/GPTZFSBoot/RAIDZ2
 
 Rebooted all was well.
 
 2) off on another 'build' box [loki.apache.org], I had compiled
 release/8.0.0 userland+kernel [with LOADER_ZFS_SUPPORT=yes].
 Whats the ETA for MFC from trunk-stable/8 for
 http://svn.freebsd.org/viewvc/base?view=revisionrevision=199714

I set the MFC timer for 2 weeks from the initial commit.

You don't say what error that you are getting, but the loader is updated
during installworld or via direct make install
from /usr/src/sys/boot/i386/loader.  The 8.0-RELEASE code has the fix
for raidz boot, but may still have issues with disks larger than 2TB.
You need to make sure that you have installed the fixed gptzfsboot code
to the drives.  If you have not yet done an installworld, then it will
be /usr/obj/sys/boot/i386/gptzfsboot/gptzfsboot

It sounds like when you install the new kernel, the block numbers are
overflowing. (which should be addressed by the fix in 8.0)

robert.

 ** FWIW, loki is working nicely on 8.0-RELEASE geom+zfs.
 
 3) I nfs mounted /usr/src, and /usr/obj on sigyn from loki.
 $ cd /usr/src
 $ sudo make installkernel KERNCONF=SIGYN
 
 It fails to mount from zfs:zroot upon reboot. Via great hoops and magic
 I got back into the fixit on remote console. I didn't see a loader.old
 or a zfsboot. So I repeated the steps in wiki to install zfsboot.
 Rebooted, same diff.
 
 Jumped backed to fixit and reverted the kernel to a stock GENERIC that
 worked the 1st time.  Same error again.
 cd /boot
 $ mv kernel kernel.cust
 $ mv kernel.old kernel
 
 So assuming you are lucky enough to get a zfsroot system.  Is there an
 actual upgrade path ? Am I missing something stupid ?
 
 Any help greatly appreciated.
 
 I have a few days to play with this machine before we forgoe zfsroot and
 drop back to geom gmirror.
 
 I'm at a datacenter for $work on Monday/Tuesday so I'll be spare over
 tonight.
 
 
 
 
 
 
-- 
Robert Noland rnol...@freebsd.org
FreeBSD

___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread James Phillips

 Date: Mon, 30 Nov 2009 20:07:15 +1100
 From: alex a...@mailinglist.ahhyes.net
 Subject: Re: Phoronix Benchmarks: Waht's wrong with FreeBSD
 8.0?
 To: freebsd-questions@freebsd.org
 Message-ID: 4b138b43.4000...@mailinglist.ahhyes.net
 Content-Type: text/plain; charset=ISO-8859-15;
 format=flowed
 
 I didn't know these were released already, but I had a
 look. I was 
 disappointed with the results.
 
 If anyone wants to look here is the link:
 
 http://www.phoronix.com/scan.php?page=articleitem=freebsd8_benchmarksnum=1

 Linux's ext4 seems to leave UFS and ZFS well behind in a
 number of 
 benchmarks.


My first thought is that Ext4 may be cheating on the benchmarks. The 
performance regressions should probably be concerning though.

Ext4 data loss; explanations and workarounds
http://www.h-online.com/open/news/item/Ext4-data-loss-explanations-and-workarounds-740671.html

Ext4 data loss Bug #317781 (Fix released)
https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/317781

If you really want to make sure the data in on disk, you have to use fsync() 
or fdatasync(). Even with ext3, if you crash at the wrong time, you will also 
lose data. So it's not the case with ext4 that it's going to truncate files 
ievery time/i a non-redundant component dies. It's not bevery time/b. 
If you fdatasync() or fsync() the file, once the system call returns you know 
it will be safely on disk. With the patches, the blocks will be forcibly 
allocated in the case where you are replacing an existing file, so if you 
crash, you'll either get the old version (if the commit didn't make it) or the 
new version (if the commit did make it). If you really care, you could write a 
program which runs sync() every 5 seconds, or even every 1 second. Your 
performance will be completely trashed, but that's the way things break. - 
Theodore Ts'o  wrote on 2009-03-06




  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.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: ntpdate on FreeBSD 8.0

2009-11-30 Thread Jonathan Chen
On Mon, Nov 30, 2009 at 06:13:24AM -0600, ajtiM wrote:
 On Sunday 29 November 2009 21:38:04 Warren Block wrote:
  On Sun, 29 Nov 2009, ajtiM wrote:
   I have new installed FreeBSD 8.0 and in rc.conf I have:
  
   ntpdate_enable=YES
   ntpdate_hosts=ntp1.cs.wisc.edu
  
   When I boot computer I get a message there are no this host but when I
   run /usr/sbin/ntpdate ntp1.cs.wisc.edu it works.
  
   I had the same in rc.conf on FreeBSD 7.2 and it works all the time. All
   settings on FreeBSD8.0 are the same as I had on 7.2.
  
  Might you have a Realtek network card?
  
  -Warren Block * Rapid City, South Dakota USA
  
 
 Yes, I have realtek card too but it is not active. DHCP is on sk0 and as I 
 wrote I never had problems with that. Maybe is different now?

Try using:
ifconfig_sk0=SYNCDHCP 

which makes sure sk0 comes back with an address from DHCP before
proceeding.
-- 
Jonathan Chen j...@chen.org.nz
--
Only the meek get pinched. The bold survive.
  - Ferris Bueller
___
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: PL_sv_undef and PL_stack_max undefined - FreBSD 8.0, Perl 5.8.9 or 5.10, FreeRADIUS 2.1.6

2009-11-30 Thread Meyers, Dan
Interestingly, a completely fresh install of 7.2 that never sees
anything out of ports installs perl 5.8.9_2 not 5.8.9_2, and freeradius
2.1.4 instead of 2.1.6 via pkg_add if I do a pkg_add freeradius. *That*
works absolutely fine. Unfortunately the packages for 8.0 are 5.8.9_3
and 2.1.6 respectively. For now, it looks like we'll stick with 7.2 and
install from packages instead of ports.

 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of Meyers, Dan
 Sent: 30 November 2009 16:18
 To: freebsd-questions@freebsd.org
 Subject: RE: PL_sv_undef and PL_stack_max undefined - FreBSD 8.0,Perl
 5.8.9 or 5.10, FreeRADIUS 2.1.6
 
 Had a bit more of a poke. Same symptoms under FreeBSD 7.2 amd64. I am
 now looking towards there being some kind of issue with the perl or
 freeradius in ports/packages. Has anyone else seen this at all?
 
  -Original Message-
  From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
  questi...@freebsd.org] On Behalf Of Meyers, Dan
  Sent: 30 November 2009 15:00
  To: freebsd-questions@freebsd.org
  Subject: PL_sv_undef and PL_stack_max undefined - FreBSD 8.0,Perl
 5.8.9
  or 5.10, FreeRADIUS 2.1.6
 
  We've had a setup for a while where we have a FreeBSD server running
  FreeRADIUS 2.1.6 and using the rlm_perl module to examine a database
  and
  do some fairly complex checking of the returned data before deciding
  whether to accept or reject the radius request. This works fine on
  FreeBSD 7.2 amd64 with Perl 5.8.9 and FreeRADIUS 2.1.6 (all compiled
  from source out of the same copy of the ports tree. Perl compiled
  without threading support as that causes issues with our database
  connections when under high load).
snip
___
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: portupgrade print/cups-client (cups-client-1.3.10_4) fails

2009-11-30 Thread Roland Smith
On Sun, Nov 29, 2009 at 11:40:58PM -0600, Richard Kolkovich wrote:
 On Sun, Nov 29, 2009 at 08:42:30AM +0100, n dhert wrote:
  In my nightly portupgrade I got, while upgrading  print/cups-client :
  ...
  /usr/bin/ld: /usr/lib/crt1.o: relocation R_X86_64_32 can not be used when
  making
   a shared object; recompile with -fPIC
  /usr/lib/crt1.o: could not read symbols: Bad value
  gmake[1]: *** [bannertops] Error 1
  gmake[1]: Leaving directory
  `/usr/ports/print/cups-client/work/cups-1.4.2/filter
  '
  gmake: *** [all] Error 1
  *** Error code 1
  Stop in /usr/ports/print/cups-client.
  *** Error code 1
  Stop in /usr/ports/print/cups-client.
 
 I can confirm this same build error on my (amd64) box after upgrading to 
 8.0-STABLE (RELENG_8).
 cups-image was compiled previously on 8.0-RC1.

Try this;

# cd /usr/ports/print/cups-client
# make patch
# cd  work/cups-1.4.2
Open Makedefs.in in an editor and remove @PIEFLAGS@ from line 143.
# cd ../..
# make

It should then build OK. Tested on 8.0-RELEASE amd64.

The same trick is needed for cups-image, IIRC.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpzgsFvXJoID.pgp
Description: PGP signature


Re: 8.0 MYSQL50 denying access to user root no password

2009-11-30 Thread Tim Judd
On 11/29/09, Fbsd1 fb...@a1poweruser.com wrote:
 For many releases of Freebsd going back to 4.3 I have all ways used the
 default mysql user root localhost with no password which has been the
 default.
 With 8.0/mysql-server-5.0.86 I am denied access now.
 The mysql manual still says the normal install defaults to allowing
 access to user root with no password are in effect.

 After a fresh clean install of mysql
 Tried  mysqladmin -u root drop test   to delete the test db.
 Received this msg
 connect to srver at localhost failed
 access denied for user 'r...@localost (using password: no)
 This in not suppose to happen.


Two issues, mysqladmin tries to connect to the mysql server -- i see
in your message above it can't connect
if it can't connect, how can it authorize?


second, the undocumented mysql_install_db must be run to install the
default database.  But if you run this as root, you should change
ownership of everything in /var/db/mysql to allow the mysql server
access to the files.


Those are two problems I'm seeing with your post.  Correct me if I'm
wrong, but try these first.




 Is anyone else having this problem?
 Has the package for mysql50-server been changed to force securing user
 root with a password?
 ___
 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-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


CF Ethernet for FreeBSD?

2009-11-30 Thread Brett Glass

Everyone:

I'm working on an embedded system which will be using a small Intel 
Atom motherboard with a single Ethernet port. The problem is, some 
configurations of the system are going to need two Ethernet ports, 
and only available ports on the system are a few USB slots and a CF 
(CompactFlash) socket.


FreeBSD has drivers for several types of USB-to-Ethernet 
converters, but USB is a pretty inefficient way of doing Ethernet. 
So, I'm interested in finding out if anyone knows of an Ethernet 
interface which will plug into the CF socket and has drivers for 
FreeBSD. Please let me know; any help would be MUCH appreciated!


--Brett Glass

___
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: portupgrade print/cups-client (cups-client-1.3.10_4) fails

2009-11-30 Thread Richard Kolkovich
On Mon, Nov 30, 2009 at 07:49:54PM +0100, Roland Smith wrote:
 Try this;
 
 # cd /usr/ports/print/cups-client
 # make patch
 # cd  work/cups-1.4.2
 Open Makedefs.in in an editor and remove @PIEFLAGS@ from line 143.
 # cd ../..
 # make
 
 It should then build OK. Tested on 8.0-RELEASE amd64.
 
 The same trick is needed for cups-image, IIRC.
 
 Roland
 -- 
 R.F.Smith   http://www.xs4all.nl/~rsmith/
 [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
 pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

This works for cups-image - thanks!

It looks like the cups-base maintainer has removed those in the tree:

http://www.freshports.org/print/cups-base/

A 'portsnap fetch update' is all that is needed now.

-- 

Richard Kolkovich
sarum...@sigil.org
PGP Key: 0x9E54EF59 (http://pgp.mit.edu)


pgpBGX06ZnfQN.pgp
Description: PGP signature


Re: FreeBSD only on MacBook? Having problems...

2009-11-30 Thread w s
 2. How can I lose the GPT? When I run # gpart destory ad5 I get
 gpart: Device busy. I presume that it is because / is mounted to run
 the livefs CD. So ...


 Not quite, if you run gpart show you should get a list of stuff on ad5,
 so before you can destroy the GPT you have to delete the stuff using
 it,a quick example using an md device:
 (reminder just in case, this will remove ANY partitions on the disk, but
 you already know that :)

Bingo -- I cleared the partitions (gpart delete XXX) and then
installed from CD without a hitch.  Thanks!
___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread Bruce Cran
On Mon, 30 Nov 2009 09:22:17 -0800 (PST)
James Phillips anti_spam...@yahoo.ca wrote:

 
  Date: Mon, 30 Nov 2009 20:07:15 +1100
  From: alex a...@mailinglist.ahhyes.net
  Subject: Re: Phoronix Benchmarks: Waht's wrong with FreeBSD
  8.0?
  To: freebsd-questions@freebsd.org
  Message-ID: 4b138b43.4000...@mailinglist.ahhyes.net
  Content-Type: text/plain; charset=ISO-8859-15;
  format=flowed
  
  I didn't know these were released already, but I had a
  look. I was 
  disappointed with the results.
  
  If anyone wants to look here is the link:
  
  http://www.phoronix.com/scan.php?page=articleitem=freebsd8_benchmarksnum=1
 
  Linux's ext4 seems to leave UFS and ZFS well behind in a
  number of 
  benchmarks.
 
 
 My first thought is that Ext4 may be cheating on the benchmarks.
 The performance regressions should probably be concerning though.
 
 Ext4 data loss; explanations and workarounds
 http://www.h-online.com/open/news/item/Ext4-data-loss-explanations-and-workarounds-740671.html
 
 Ext4 data loss Bug #317781 (Fix released)
 https://bugs.edge.launchpad.net/ubuntu/+source/linux/+bug/317781
 
 If you really want to make sure the data in on disk, you have to use
 fsync() or fdatasync(). Even with ext3, if you crash at the wrong
 time, you will also lose data. So it's not the case with ext4 that
 it's going to truncate files ievery time/i a non-redundant
 component dies. It's not bevery time/b. If you fdatasync() or
 fsync() the file, once the system call returns you know it will be
 safely on disk. With the patches, the blocks will be forcibly
 allocated in the case where you are replacing an existing file, so if
 you crash, you'll either get the old version (if the commit didn't
 make it) or the new version (if the commit did make it). If you
 really care, you could write a program which runs sync() every 5
 seconds, or even every 1 second. Your performance will be completely
 trashed, but that's the way things break. - Theodore Ts'o  wrote on
 2009-03-06

This is actually the way UFS/FFS works too: when my system was crashing
fairly regularly I was a bit surprised to find empty files after
editing them.

Also, I just verified that saving a file, rebooting, editing it again
(with ee(1)) and powering off the system does still result in a zero
length file being on disk.


-- 
Bruce Cran
___
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: ACPI temperature

2009-11-30 Thread ill...@gmail.com
2009/11/29 Steven Friedrich free...@insightbb.com:
 On Sunday 29 November 2009 11:03:28 am you wrote:
 2009/11/29 Steven Friedrich free...@insightbb.com:
  I booted my HP Pavilion zd8215us and I immediately invoked
  chkCPUTemperature. The first temp reported was 52C, which is 125.6F. This
  leads me to believe that acpi has an anomaly regarding temperature
  measurement. The ambient temp was 71F (21.6C). The machine had been off
  for over eight hours.

 I'm not sure.  My laptop shows about 59C as soon as I can
 log in, in a room kept around 16C ambient.  It rather quickly
 drops to 40C if I let it idle with powerd doing its thing.

 Thanks for the response. One question though, what OS are you running.

 The reason I ask is because I want to discover if it's FreeBSD specific or
 possibly affecting Linux distros as well. And if you're running FreeBSD, which
 version.


I think CPU use/temp during boot-up _could_ vary a lot from
one operating system to another, I don't know that it must,
though, since the whole business is arcane and full of magic
(much like poutine).

FreeBSD 8.0-RELEASE #1: Mon Nov 23 13:47:06 EST 2009
amd64

It's a turion x2 of 1990MHz

I only had windows on long enough to burn one CD back in
February, so I have not the least clue how it behaved (besides
terribly).

I can't find any way to get the actual temperature values under
Opensolaris, but I do dual boot.  It spends so much time starting
so many mind-bogglingly worthless services prior to giving me
a log-in prompt that I'm not sure the comparison is fair.  The fan
usually kick into high prior to the log-in prompt, though.

Opensolaris is pretty horrible in terms of performance and battery
life compared to FreeBSD. It's also like a strange, alien wasteland
what with bash  gnome  other linuxisms, except pfexec.
pfexec rocks.

-- 
--
___
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


tcp delays in jails

2009-11-30 Thread William Taylor
I recently started having a problem with tcp connections in one of my jails.
Im running 4.9-stable
both sendmail and perdition experience the same problem. I even tried stopping
everything on the box and the problem still persists.
Connections to other jails on different ip's on the same box are fine.
There seems to be about a 5 second delay.

From this snippet of a ktrace I did you can see what looks to be a delay of 
about 5 seconds  after the CALL kevent

86872 perdition 1259617190.144575 GIO   fd 6 wrote 43 bytes
   
n\M^]\^A\0\0\^A\0\0\0\0\0\0\^B18\^B96\^B81\^C206\ain-addr\^Darpa\0\0\f\0\^A
 86872 perdition 1259617190.144584 RET   sendto 43/0x2b
 86872 perdition 1259617190.144592 CALL  gettimeofday(0xbfbfde9c,0)
 86872 perdition 1259617190.144604 RET   gettimeofday 0
 86872 perdition 1259617190.144619 CALL  
kevent(0x4,0xbfbfdec0,0x1,0xbfbfdec0,0x1,0xbfbfdea4)
 86872 perdition 1259617195.147032 RET   kevent 0
 86872 perdition 1259617195.147085 CALL  close(0x6)
 86872 perdition 1259617195.147120 RET   close 0
 86872 perdition 1259617195.147138 CALL  socket(0x2,0x2,0)
 86872 perdition 1259617195.147150 RET   socket 6
 86872 perdition 1259617195.147159 CALL  
sendto(0x6,0xbfbfe100,0x2b,0,0x28269b60,0x10)
 86872 perdition 1259617195.147186 GIO   fd 6 wrote 43 bytes


Any ideas of what I can do to figure this out?

Thanks,
  William

___
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: CF Ethernet for FreeBSD?

2009-11-30 Thread Olivier Nicole
Hi,

 So, I'm interested in finding out if anyone knows of an Ethernet 
 interface which will plug into the CF socket and has drivers for 
 FreeBSD. Please let me know; any help would be MUCH appreciated!

Not to mentione FreeBSD drivers, but only finding an Ethernet
interface that plugs into a CF sockets seems very chalenging: you
don't really send/receive the same information to memory and to
network interface; CF can address GB of data, while the network card
has a few KB at best; etc.

Good luck,

Olivier
___
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: CF Ethernet for FreeBSD?

2009-11-30 Thread Brett Glass

At 05:13 PM 11/30/2009, Olivier Nicole wrote:


Not to mentione FreeBSD drivers, but only finding an Ethernet
interface that plugs into a CF sockets seems very chalenging: you
don't really send/receive the same information to memory and to
network interface; CF can address GB of data, while the network card
has a few KB at best; etc.


CF sockets usually can act as sockets for ATA/IDE compatible disk 
drives as well as for PCMCIA-like peripheral cards.


Also, there are some Ethernet interface chips that are designed to 
be memory-mapped. See, for example, the one by ASIX, which is often 
used in embedded systems because it can interface with pretty much any CPU.


--Brett Glass

___
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: 8.0 MYSQL50 denying access to user root no password

2009-11-30 Thread Fbsd1

Tim Judd wrote:

On 11/29/09, Fbsd1 fb...@a1poweruser.com wrote:

For many releases of Freebsd going back to 4.3 I have all ways used the
default mysql user root localhost with no password which has been the
default.
With 8.0/mysql-server-5.0.86 I am denied access now.
The mysql manual still says the normal install defaults to allowing
access to user root with no password are in effect.

After a fresh clean install of mysql
Tried  mysqladmin -u root drop test   to delete the test db.
Received this msg
connect to srver at localhost failed
access denied for user 'r...@localost (using password: no)
This in not suppose to happen.



Two issues, mysqladmin tries to connect to the mysql server -- i see
in your message above it can't connect
if it can't connect, how can it authorize?


Read the post again. says access denied not connection refused.



second, the undocumented mysql_install_db must be run to install the
default database.  But if you run this as root, you should change
ownership of everything in /var/db/mysql to allow the mysql server
access to the files.


mysql_install_db is documented in the mysql manual. After re-reading the
section about using mysql_install_db many times I finally saw my 
problem. mysql_install_db has to be run direct from the root command 
line. I was doing script capture.console.msg.rpt and them running 
another script which had the mysql_install_db command buried in it. The 
mysql manual says mysql_install_db will hose up the user account table
locking out all access. I rm -rf /var/db/mysql to delete the hosed up 
mysql user db and then ran mysql_install_db from the root command line 
and the default root/nopassword worked again.


Thanks for your pointer as to where to look.



___
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


Wanting to buy a laptop w/ FreeBSD, AND...

2009-11-30 Thread compcent
Hello - I found the?freebsd - hardware ?list.? Where is the freebsd-software 
list?? I'm sending this to 
freebsd-questions@freebsd.org
?
I would like to buy a new or dependable used laptop.??Initially, most of my 
questions are concerning?software.??
For hardware, I would like a HP laptop, as?HP is my personal favorite.? 
?
I prefer WP5.1 as a word processor.? I like to work on websites and to post to 
internet forums.??I want to be 
?able to work with graphics, music, and videos, and to be able to watch movies 
(and TV).? 
?
1.)? Hewlett-Packard laptop? 2.)? FreeBSD as a OS? 3.)? No MS?software 
or programs??
?4).? WordPerfect 5.1? 5.)? DOS partition? 6.)? ? SBIE /FreeBSD ?live 
CD ???7.)? Computer Shops ? 
?
What are my options concerning WordPerfect 5.1...?? Would WP 5.1 run on 
FreeBSD?? Or, 
would I need to run WP5.1 on a DOS partition?? If WP5.1 was on a DOS partition, 
could I readily 
move the WP text files to the internet browser, to easily post them onto 
internet websites and forums?? 
?
Or, would I have to buy a new version of WordPerfect?? There was one of the 
newer versions that a person could 
run in a WP5.1 mode.???
?- - - - - 
?
7.)? Computer Shops 
?
My first contact is with a computer tech in Placerville, CA (El Dorado County) 
MACKENDRICK COMPUTERS = http://www.rmack3.com/main.htm
?
He is very experienced w/ Linux, but not with FreeBSD.? 
?
I am looking for someone who is experienced with FreeBSD and is readily 
available for 
answering questions / troubles, at least 5 days a week.?? Are there any FreeBSD 
techs 
in El Dorado County CA, or in the Sacramento area.? I would prefer to avoid to 
have to 
travel to The Bay Area.?? 
?
My next considerations are Best Buys / Geek Squad.???Or, Fry's Electronics at 
Northgate  I-80 ?in Sacramento.???
?
Please Reply to:?? compc...@mail.com 
?
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


stable/8/UPDATING - no mention of 8.0 release

2009-11-30 Thread Peter
iH,
   Been updating my src via svn and following stable/8.  Looking at the
UPDATING file, it does not mention '8.0-RELEASE'

Did it just not make it in there yet?

http://svn.freebsd.org/viewvc/base/stable/8/UPDATING?view=markup
  vs.
http://svn.freebsd.org/viewvc/base/release/8.0.0/UPDATING?view=markup

It just confused me for awhile after I did a 'svn up' and did not see the
release notes...

[for the 7.X series, both stable/ and release/ mention the release in
UPDATING]

]Peter[



___
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


Firefox 3.5 and Epiphany crashing since the GNOME 2.28 update

2009-11-30 Thread Curly Brace
Hi all, I'm on 8.0/amd64, and my GNOME 2.28 update went off with no
problems, but now Firefox 3.5 and Epiphany 2.28 crash when visiting
certain pages, such as the Welcome to firefox first-start page.
Firefox leaves Segmentation fault (core dump) in the console when it
crashes, and Epiphany is silent. I've removed the Totem 2.28 plugins
(thinking them to be the cause), removed Moonlight, removed Java,
removed nspluginwrapper Flash10, and finally
removed /usr/local/lib/browser_plugins altogether.

This seems very similar to the Firefox 3.5 HTML5 video crash FreeBSD 7
users experience until they kldload sem, but I'm on 8.0 and sem is
loaded by default. I didn't 
see anything new in UPDATING, and I successfully played an Ogg Theora
video from an HTML5 video test page located at
http://www.double.co.nz/video_test/test1.html, so I don't think that's
it.

Is there anywhere else where browser plugins lurk, or is there anything
else the two may have in common besides plugins?

___
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: Phoronix Benchmarks: Waht's wrong with FreeBSD 8.0?

2009-11-30 Thread James Phillips


--- On Mon, 11/30/09, Bruce Cran br...@cran.org.uk wrote:

 
 This is actually the way UFS/FFS works too: when my system
 was crashing
 fairly regularly I was a bit surprised to find empty files
 after
 editing them.
 
 Also, I just verified that saving a file, rebooting,
 editing it again
 (with ee(1)) and powering off the system does still result
 in a zero
 length file being on disk.
 

Ok, good to know.

I saw UFS corruption once with frequent restarts, but assumed that was because 
the delayed filesystem checking never had a chance to run.

Since I don't have a UPS I guess backups are doubly important.

-james.



  __
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
___
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