Re: Question : Developing/Making FreeBSD derivative.

2011-04-12 Thread Ruben de Groot
On Sun, Apr 10, 2011 at 09:44:22PM -0700, Stefan N typed:
 Hi All,
 
 
 My name is Stefan and I am newbie with FreeBSD but I'm interested to learn 
 more 
 about FreeBSD . I am keen to know and learn more on  the process to make a 
 new 
 BSD's derivative/fork  from FreeBSD ?

There is a distinction. eg PC-BSD is a derivative while DragonFlyBSD is a fork.
What do you want?

 How is the method for customizing/remastering FreeBSD ? The most interesting 
 part is that if we could make the new fork of FreeBSD with its own uname. If 
 I 
 could make my own BSD derivative and used StefanBSD as its uname, it would be 
 awesome.

I think you want to read the release(7) manpage. make release 
BUILDNAME=StefanBSD
will get you what you want.
___
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


ZFS performance strangeness

2011-04-12 Thread Lars Wilke
Hi,

There are quite a few threads about ZFS and performance difficulties,
but i did not find anything that really helped :)
Therefor any advice would be highly appreciated.
I started to use ZFS with 8.1R, only tuning i did was setting

vm.kmem_size_scale=1
vfs.zfs.arc_max=4M

The machines are supermicro boards with 48 GB ECC RAM and 15k RPM SAS
drives. Local read/write performance was and is great.
But exporting via NFS was a mixed bag in 8.1R.
Generally r/w speed over NFS was ok, but large reads or writes took
ages. Most of the reads and writes were small, so i did not bother.

Now i upgraded one machine to 8.2R and i get very good write performance
over NFS but read performance drops to a ridiciously low value, around
1-2 MB/s. While writes are around 100MB/s. The network is a dedicated
1GB Ethernet. The zpool uses RAIDZ1 over 7 drives, one vdev.
The filesystem has compression enabled. Turning it off made no
difference AFAICT

Now i tried a few of the suggested tunables and my last try was this

vfs.zfs.txg.timeout=5
vfs.zfs.prefetch_disable=1
vfs.zfs.txg.synctime=2
fs.zfs.vdev.min_pending=1
fs.zfs.vdev.max_pending=1

still no luck. Writting is fast, reading is not. Even with enabled
prefetching. The only thing i noticed is, that reading for example 10MB
is fast (on a freshly mounted fs) but when reading larger amounts, i.e.
couple hundred MBs, the performance drops and zpool iostat or iostat -x
show that there is not much activity on the zpool/hdds.

It seems as if ZFS does not care that someone wants to read data, also idle
time of the reading process happily ticks up and gets higher and higher!?
When trying to access the file during this time, the process blocks and
sometimes is difficult to kill, i.e. ls -la on the file.

I read and write with dd and before read tests i umount and mount the
NFS share again.

dd if=/dev/zero of=/mnt/bla size=1M count=X
dd if=/mnt/bla of=/dev/null size=1M count=Y

mount is done with this options from two centos 5 boxes:
rw,noatime,tcp,bg,intr,hard,nfsvers=3,noacl,nocto

thanks
   --lars

___
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: Stopping Less from creating Log Files

2011-04-12 Thread Martin McCormick
Lowell Gilbert writes:
 The secure mode disables log files, but it also changes several other
 behaviours, so you may not find it to be an improvement.  The code
 supports changing those secure features separately, but only by
 editing the source; if you go that way, it will probably be much easier
 to use the ports version of the program instead of the base system's.

Very good.Thanks. I looked up what secure mode does and
I see what you mean. I will just have to try it and see if I
need the ports package or not.
___
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


Status of 8-CURRENT

2011-04-12 Thread Mario Lobo
Forgive my lame question but where can I check which version 8-CURRENT is 
without updating my sources (i.e. 8.x-RC1, 8.x-RELEASE, etc)?

Thanks,
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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 (i386) does not install under Hyper-V

2011-04-12 Thread Scheller, Roland
Hi,



I'm facing issues with installing and updating of FreeBSD 8.2 (i386) under 
Hyper-V (Windows Server 2008, Service Pack 2):



1. Update Freebsd 8.0 (i386) - 8.2 under Hyper-V (via cvsup)

FreeBSD 8.0 is running fine under Hyper-V on this system since a long time. I 
had no issues at the time when I installed it. Now I tried to update it to a 
more recent version:



No issues with make buildworld, make buildkernel, but after make 
installkernel the VM does not boot any longer. Instead the following error 
message is displayed: freebsd ld-elf.so.1 libc.so.7 unsopported version 
Elf_Verdef.



2. Then I tried to install FreeBSD 8.2 into a new VM (via ISO image)



I received several error messages during the installation, several packages 
can't be installed: Add of Package xx aborted, error code 0.



Debug Screen:



ldconfig: warning: /usr/local/Lib: No such file or directory

pkg_add: could' t remove temporary dir '/var/tmp/instmp.y3gyg8'

pkg_add: leave_playpen: can' chdir back to ''

pid 72 (sh), uid 0: exited on signal 11 (core dumped) pid 73 (sh), uid 0: 
exited on signal 11 (core dumped) ...

(several similiar lines with core dumped follow.)



Eventually the installation abends with: Could'nt extract the following 
distributions. This may be because they were not available on the installation 
media you've chosen: (A lot of packages are

displayed.)



Then:



Cannot dump. Device not defined or unavailable. Automatic reboot in 15 seconds 
- press a key on the console to abort



After the restart the bootloader displays several error messages with dump info 
and then stops with BTX halted.

I did validate the MD5 sum of the image.



Another attempt to use VHD as SCSI disk failed as well - the drive is not 
recognized (No Disks Found!)



Then I tested the installation of FreeBSD 8.2 (same image) on my desktop under 
Virtualbox (Windows 7) successfully. This did work without issues. 
Unfortunately this does not help with my Windows Server 2008.



Is this a known issue?



Thanks,

Roland

___
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: Status of 8-CURRENT

2011-04-12 Thread Mario Lobo
On Tuesday 12 April 2011 11:52:59 Peter Ulrich Kruppa wrote:
 On
   http://www.freebsd.org/releng/index.html
 you will find a list of available versions and their state.
 
 Hope that helps
 
 Peter.

This is what I needed!

Thanks, Peter!

-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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: Status of 8-CURRENT

2011-04-12 Thread Mario Lobo
On Tuesday 12 April 2011 11:33:08 Paul B. Mahol wrote:
 On Tue, Apr 12, 2011 at 2:49 PM, Mario Lobo l...@bsd.com.br wrote:
  Forgive my lame question but where can I check which version 8-CURRENT is
  without updating my sources (i.e. 8.x-RC1, 8.x-RELEASE, etc)?
 
 There is no 8-CURRENT any more. Now it is 9-CURRENT.

Sorry! I meant RELENG_8.
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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: Status of 8-CURRENT

2011-04-12 Thread Ruben de Groot

Here's a nice oneliner ;)

 fetch -qo - 
 'http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/conf/newvers.sh?rev=.;only_with_tag=RELENG_8;content-type=text%2Fplain'
  | awk '/^REVISION=/ || /^BRANCH=/'
REVISION=8.2
BRANCH=STABLE

Ruben

On Tue, Apr 12, 2011 at 09:49:35AM -0300, Mario Lobo typed:
 Forgive my lame question but where can I check which version 8-CURRENT is 
 without updating my sources (i.e. 8.x-RC1, 8.x-RELEASE, etc)?
 
 Thanks,
 -- 
 Mario Lobo
 http://www.mallavoodoo.com.br
 FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
 ___
 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: Status of 8-CURRENT

2011-04-12 Thread Mario Lobo
On Tuesday 12 April 2011 12:15:27 Ruben de Groot wrote:
 Here's a nice oneliner ;)
 
  fetch -qo -
  'http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/conf/newvers.sh?rev=.;onl
  y_with_tag=RELENG_8;content-type=text%2Fplain' | awk '/^REVISION=/ ||
  /^BRANCH=/'
 
 REVISION=8.2
 BRANCH=STABLE
 
 Ruben
 

Wow! this is exactly it !

Allright, Ruben ! Thanks.
-- 
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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: Status of 8-CURRENT

2011-04-12 Thread Peter Ulrich Kruppa

On Tue, 12 Apr 2011, Mario Lobo wrote:


Forgive my lame question but where can I check which version 8-CURRENT is
without updating my sources (i.e. 8.x-RC1, 8.x-RELEASE, etc)?

You can check your FreeBSD version by typing
# uname -a
on some terminal.
On
http://www.freebsd.org/releng/index.html
you will find a list of available versions and their state.

Hope that helps

Peter.



Thanks,
--
Mario Lobo
http://www.mallavoodoo.com.br
FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE)
___
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




| Peter Ulrich Kruppa
| Wuppertal
| Germany
___
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


Kernel loading very slowly with specific (wrong?) loader.conf

2011-04-12 Thread Leon Meßner
Hi,

when you use the following loader.conf:

# cat /boot/loader.conf
hint.sio.1.flags=0x20
comconsole_speed=115200
boot_multicons=yes

and have no /boot.config, then booting the kernel is extremely slow. It
writes about one character per second on the screen. Also i dont
actually have a serial device (dmesg says so), although i should.

cu,
Leon
___
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's tftp and tftpd-hpa

2011-04-12 Thread John Hein
Martin Cracauer wrote at 11:53 -0500 on Feb 11, 2011:
  FreeBSD's current tftp client doesn't work with tftpd-hpa.
  
  FreeBSD 9.0-CURRENT (XEN) #0: Fri Jan 21 15:54:41 EST 2011
  ~(fbpv)1% tftp 192.168.1.1
  tftp get pxeboot
  Got ERROR packet: Unsupported option(s) requested
  Error code 2048: Unsupported option(s) requested
  tftp 
  
  Anybody got a solution for this? Otherwise I'll hack it up.

I just hit this, too.

The linux (hpa) version of tftpd has:

/*
 * Return a file size (c.f. RFC2349)
 * For netascii mode, we don't know the size ahead of time;
 * so reject the option.
 */

So, for the archives (only two months later!), you can use 'mode octet'
(aka 'mode binary') to can work around this issue.
___
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: Stopping Less from creating Log Files

2011-04-12 Thread Robert Bonomi

 Date: Mon, 11 Apr 2011 11:36:37 -0500
 From: Martin McCormick mar...@dc.cis.okstate.edu
 Subject: Stopping Less from creating Log Files

 This is a minor problem but I use more to read Email messages
 from nmh. If one forgets what screen one is in, it is possible
 to start typing and create a log file of the message in which
 ever mailbox directory one is reading out of.

   The man page for more is actually linked to less even
 though FreeBSD has /usr/bin/more and less. 

There is only one executable -- it has two hard links, thus giving
the alternate names.

I even tried in the
 .mh_profile to call more with -Oo/dev/null but if you hit a key,
 the logfile prompt appears and any subsequent key strokes are
 part of the new file name.

   This really is only a minor nuisance because it creates
 junk files that then have to be removed from the directory. So,
 if there is a way to make more or less not write anything, it
 would be more or less appreciated.


It is said:
For every fool-proof system, there exists
 a sufficiently-determined fool capable of
 breaking it.

We have a winner!  For the named programs, more or less, anyway.


___
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