Re: ZFS Striping and Optimizing Capabilities

2011-04-10 Thread Dan Nelson
In the last episode (Apr 09), Chris Telting said:
 Just a few questions about what ZFS actually does.  So if anyone has
 intimate knowledge about ZFS's implementation on Freebsd I'm sure I and
 others would appreciate the answers.
 
 When you add a second and or thrid drive/partition to a zpool I'm assuming
 that it's going to start using the drives like a raid 0 stripe.  How do
 the ZFS versions differ in this?  Does it immediately start striping all
 files in the background on low priority or does it do it as files are
 accessed?  Does ZFS in any way do performance testing of

Currently ZFS never moves a block once it has been written.  The whole
implementation of copy-on-write and snapshots relies on this.  If you add a
new zvol to a pool, new data will get balanced across all the zvols but old
data will stay where it was.  Ideally you should expand pools before they
get too full, or zpool export/import them into new pools if you want good
distribution over all disks.  There have been hints for the last few years
of a bp rewite feature appearing, but it has never materialized.

-- 
Dan Nelson
dnel...@allantgroup.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: Problem with an ATI x2900 video adapter

2011-04-10 Thread Warren Block

On Sun, 10 Apr 2011, Michael D. Norwick wrote:

surprised this afternoon when, while the installation of gnome2 was working, 
I think it was building GCC 4.4 and friends, the HP 2010i LCD monitor I use 
on the machine appeared to lose the input to its DVI port.  The HD activity 
light was still flickering so I let it continue and waited a hour or so for 
it to quit indicating activity before I pressed the reset button.


Sounds like the video card went into power save.  Pressing a shift key 
might have brought it back.


I would like to know if anyone else has experienced this or, if a PR is 
necessary against the Xorg radeon driver.


It's not clear whether you were running in the console or X.  If X 
wasn't even installed yet, the radeon driver could not have been at 
fault.

___
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: malloc: errno: 22: Invalid argument

2011-04-10 Thread Polytropon
On Sat, 9 Apr 2011 17:17:06 +0200, Sami Kerola kerol...@iki.fi wrote:
 On Sat, Apr 9, 2011 at 16:43, John Levine jo...@iecc.com wrote:
  Your code is wrong.  There's only a useful value in errno after
  something fails.  This would be more reasonable:
 
  int main(void)
  {
         int *i;
         /* warn(errno: %d, errno); -- no error, nothing to check */
         i = malloc(sizeof(int));
         if(!i)warn(errno: %d, errno); /* only warn on failure */
         free(i);    /* -- free ignores NULL argument */
         return (0); /* -- free cannot fail, no meaningful errno */
  }
 
  This isn't specific to FreeBSD, by the way.  It's ANSI C.
 
 Different systems seem to work different ways. Indeed you are right,
 the behavior of operating system setting errno when malloc is
 successful is allowed.
 
 http://pubs.opengroup.org/onlinepubs/009695399/functions/errno.html
 http://pubs.opengroup.org/onlinepubs/009695399/functions/malloc.html
 
 Perhaps it was just a naive beginner expectation that errno is not set
 by functions when they are successful. I'll remove the check from the
 end of the program since there is no guarantees it would mean anything
 sensible.

Allow me an addition:

For meaningful main() return values, use EXIT_SUCCESS or
EXIT_FAILURE (as defined in stdlib.h) instead of the errno
set by a function. This is the always portable test for
zero, as in everything okay - zero; error - not zero,
usually 1, but primarily NOT ZERO. :-)

FreeBSD allows more detailed return values like EX_CONFIG,
EX_USGE or EX_SOFTWARE (as defined in sysexits.h), but I'm
not sure if this is fully portable across all BSDs, UNIX,
and the various Linusi.




-- 
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: Problem with an ATI x2900 video adapter

2011-04-10 Thread Michael D. Norwick

On 04/10/11 06:44, Warren Block wrote:

On Sun, 10 Apr 2011, Michael D. Norwick wrote:

surprised this afternoon when, while the installation of gnome2 was 
working, I think it was building GCC 4.4 and friends, the HP 2010i 
LCD monitor I use on the machine appeared to lose the input to its 
DVI port.  The HD activity light was still flickering so I let it 
continue and waited a hour or so for it to quit indicating activity 
before I pressed the reset button.


Sounds like the video card went into power save.  Pressing a shift key 
might have brought it back.


I would like to know if anyone else has experienced this or, if a PR 
is necessary against the Xorg radeon driver.


It's not clear whether you were running in the console or X.  If X 
wasn't even installed yet, the radeon driver could not have been at 
fault.





Yes, Xorg was running with gdm and gnome2.  I was building packages from 
ports in a gterm.
No, no combination of Shift-Fn or Meta-key-Fn did anything.  The 
keyboard was active as the Caps-Lock and Num-Lock lights worked.

The monitor power save features are disabled.
I wonder if the Linux Catalyst Control Center app. from ATI would work 
under VirtualBox-OSE?


Thank You,
Michael
___
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


expr problem

2011-04-10 Thread Manish Jain

   Hi Dino,
   It looks to me like you don't want to FreeBSD's expr (pretty much like
   me). You probably want to install the GNU version, which I think is
   available in the coreutils port.
   Let me know if this helps.
   Regards
   Manish Jain
___
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: ZFS Striping and Optimizing Capabilities

2011-04-10 Thread Daniel Staal
--As of April 9, 2011 9:27:41 PM -0700, Chris Telting is alleged to have 
said:



Does ZFS in any way do performance testing of read/right operating in
light of where the data is stored on the drive? i.e. the outside sectors
of hard drives perform faster.  If it does do read/write location testing
can it be shut off or does it detect SSDs?  What about tracing
application sector reading and reordering sectors so that they follow one
another according to typical usage?  i.e. the sectors are already in the
linear read ahead buffer?


--As for the rest, it is mine.

I'll let you see Dan Nelson's answer for the striping questions.  While I 
have no inside knowledge of the performance testing handling of ZFS, it 
doesn't appear to do anything too automagically in that arena.  You give it 
a drive, it will use it, like any other file system.  It can give you stats 
on I/O for each drive as well as the pool in general, and it appears to try 
to balance reads/writes across all the drives, but that's implied in 
mirroring or RAID setups.  (And remember: ZFS can do either one.  You can't 
add to a RAID volume though, like you can to a mirrored volume.)


It does try to cache files, in a fairly aggressive fashion.  (By the docs, 
ZFS will try to fill *all unused RAM* with cached files by default.)  And 
while it doesn't appear to have anything that auto-detects faster drives, 
you can specify a drive for caching or for the write log.  (Caching speeds 
up reads, and deduplication in versions that support that.  The write log 
speeds up writes.)  Telling it to use a SSD for that will speed up those 
operations considerably.  (Note that while a cache drive is considered 
expendable, the write-log drive is not, and it's recommended that you set 
up a mirror for it.)


Daniel T. Staal

---
This email copyright the author.  Unless otherwise noted, you
are expressly allowed to retransmit, quote, or otherwise use
the contents for non-commercial purposes.  This copyright will
expire 5 years after the author's death, or in 30 years,
whichever is longer, unless such a period is in excess of
local copyright law.
---
___
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 an ATI x2900 video adapter

2011-04-10 Thread Warren Block

On Sun, 10 Apr 2011, Michael D. Norwick wrote:

On 04/10/11 06:44, Warren Block wrote:


Sounds like the video card went into power save.  Pressing a shift key 
might have brought it back.


I would like to know if anyone else has experienced this or, if a PR is 
necessary against the Xorg radeon driver.


It's not clear whether you were running in the console or X.  If X wasn't 
even installed yet, the radeon driver could not have been at fault.


Yes, Xorg was running with gdm and gnome2.  I was building packages from 
ports in a gterm.
No, no combination of Shift-Fn or Meta-key-Fn did anything.  The keyboard 
was active as the Caps-Lock and Num-Lock lights worked.

The monitor power save features are disabled.


Maybe xscreensaver?  Whatever's causing it, it's not a common problem.

I wonder if the Linux Catalyst Control Center app. from ATI would work under 
VirtualBox-OSE?


No, the hardware is virtualized to the VM.
___
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


ANNOUNCING: FreeBSD 8.2-RELEASE Custom XFCE builds (32/64bits) released

2011-04-10 Thread Manolis Kiagias
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hey all,

I have just completed an 8.2-RELEASE based build of the 'Custom
releases' project hosted here:

http://freebsd-custom.wikidot.com

Both 32 and 64 bits are available for download:

http://freebsd-custom.wikidot.com/downloads-page

This release is based on the latest XFCE (4.8) desktop and includes a wide
variety of desktop-related packages, like LibreOffice, abiword, gnumeric,
firefox 4, gimp, inkscape, evince and so on. The base system is
8.2-RELEASE. A few other small window managers are included like
windowmaker, fluxbox and icewm.  The slim login manager is also included
for people wishing to have a graphical logon screen.

Make sure to read the README file before installation.  This is
available on the
downloads page as well as on the root directory of the DVD.

Also note that installing linux related packages during initial setup
needs a few more  steps. This is due to differences in sysinstall
between 7.X and 8.X releases. A detailed explanation is provided in
the README file.

As always, please report any problems, success stories, comments and
criticisms to mano...@freebsd.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2h2xIACgkQZ/MxGm4PtJQrBACdE9dEJfzgrEtu3iso6sVR48et
ZYkAn1najLMrBljw/SOr5pU1pCy0Awus
=gDeA
-END PGP SIGNATURE-

___
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'm looking for a curses one-iner.

2011-04-10 Thread Gary Kline

People,

Can anybody point me to a one-line of curses (it may be *long* and
obscure) that allows keyboard input _without_ hitting cr/enter.  
So, in effect, I couold use the curses getchar() and have things
echoed to stdout without bothering to type Enter.   There may be a
matching one-liner to set things back to the way they were upon
exiting the curses program.

tia,

gary



-- 
 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: I'm looking for a curses one-iner.

2011-04-10 Thread Chip Camden
Quoth Gary Kline on Sunday, 10 April 2011:
 People,
 
 Can anybody point me to a one-line of curses (it may be *long* and
 obscure) that allows keyboard input _without_ hitting cr/enter.  
 So, in effect, I couold use the curses getchar() and have things
 echoed to stdout without bothering to type Enter.   There may be a
 matching one-liner to set things back to the way they were upon
 exiting the curses program.

http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html#RAWCBREAK

See also man raw.  I think what you want is raw() and noraw().

-- 
.o. | Sterling (Chip) Camden  | http://camdensoftware.com
..o | sterl...@camdensoftware.com | http://chipsquips.com
ooo | 2048R/D6DBAF91  | http://chipstips.com


pgpqUwnvTYXfc.pgp
Description: PGP signature


Re: I'm looking for a curses one-iner.

2011-04-10 Thread Gary Kline
On Sun, Apr 10, 2011 at 12:22:50PM -0700, Chip Camden wrote:
 Quoth Gary Kline on Sunday, 10 April 2011:
  People,
  
  Can anybody point me to a one-line of curses (it may be *long* and
  obscure) that allows keyboard input _without_ hitting cr/enter.  
  So, in effect, I couold use the curses getchar() and have things
  echoed to stdout without bothering to type Enter.   There may be a
  matching one-liner to set things back to the way they were upon
  exiting the curses program.
 
 http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/init.html#RAWCBREAK
 
 See also man raw.  I think what you want is raw() and noraw().
 


YES! ANd give that man in the srtaw hat a seegar!

After waiting and thinking about howto get a user-side driver to
make individual keys click, and after wading thru the 30 pages
of python that i'm now getting my head around, I decided to try
it myself.  Borrow here/there, and put in my own click.c into
the daemon.   According to the one-laptop-per-child group my
program might be a win for their platform.  The keyboard is
membrane-style.  Et cetera.

Even if it only help me on my old 2005 Thinkpad, hey


 -- 
 .o. | Sterling (Chip) Camden  | http://camdensoftware.com
 ..o | sterl...@camdensoftware.com | http://chipsquips.com
 ooo | 2048R/D6DBAF91  | http://chipstips.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


full disk encryption with geli - where does the stuff in /boot/kernel

2011-04-10 Thread Gil Mordron
I am attempting to set up full disk encryption with GELI, booting from an 
unencrypted thumb drive, using the following PDF by Marc Schiesser as a guide:

http://events.ccc.de/congress/2005/fahrplan/attachments/586-paper_Complete_Hard_Disk_Encryption.pdf


In section 3.5.5, The removable medium, it says to copy everything from the 
fixed disk's boot directory to the thumb drive, and then zip up various things 
from the removable disk's boot/kernel directory (the fixed disk is mounted as 
/fixed and the removable as /removable):

# cp -Rpv /fixed/boot /removable
# cd /removable/boot/kernel
# gzip kernel geom_eli.ko acpi.ko

My issue is that there is nothing in /removable/boot/kernel.

Obviously whatever would be there would have come from the cp -Rpv /fixed/boot 
/removable line, so I checked in /fixed/boot/kernel, and there's nothing there 
either.

Presumably whatever would be in /fixed/boot/kernel would have been placed there 
in the previous step, section 3.5.4, which includes:

# mount /dev/ad0.elia /fixed
# export DESTDIR=/fixed/
# cd /dist/6.0-RELEASE/base  ./install.sh

That did create a bunch of stuff on /fixed, including /fixed/boot and even 
/fixed/boot/kernel, but it did not place any files in /fixed/boot/kernel.

One difference that I should mention at this point is that I'm using 8.2, not 
6.0, so I actually did a cd /dist/8.2-RELEASE/base instead of the cd 
/dist/6.0-RELEASE/base that the document suggests.  Other than that, I think I 
did everything the same as it suggests.

Is there a step missing in the document? Or did I screw something up?

In any case, can I just copy the necessary files to /removable/boot/kernel from 
/dist/boot/kernel instead of from /fixed/boot/kernel? Or do I have to get them 
in some other way? And what files are needed? Obviously kernel, geom_eli.ko, 
and 
acpi.ko, and I believe that geom_eli.ko requires both zlib.ko and crypto.ko, 
but 
do I have to get any other files, too?

Thanks in advance for any help.
___
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: full disk encryption with geli - where does the stuff in /boot/kernel

2011-04-10 Thread Gil Mordron
Oh, one other difference between what I've done and what the document says to 
do:

I don't actually have a /dev/ad0.  I have ad4, ad5, and ad6.  Wherever the 
document says /dev/ad0, I've been using /dev/ad4 instead.

I'm guessing that this is not important to the problem I'm facing, but I 
figured 
I should mention in just in case my guess is wrong.





From: Gil Mordron gilmord...@yahoo.com
To: freebsd-questions@freebsd.org
Sent: Sun, April 10, 2011 10:34:42 PM
Subject: full disk encryption with geli - where does the stuff in /boot/kernel


I am attempting to set up full disk encryption with GELI, booting from an 
unencrypted thumb drive, using the following PDF by Marc Schiesser as a guide:

http://events.ccc.de/congress/2005/fahrplan/attachments/586-paper_Complete_Hard_Disk_Encryption.pdf


In section 3.5.5, The removable medium, it says to copy everything from the 
fixed disk's boot directory to the thumb drive, and then zip up various things 
from the removable disk's boot/kernel directory (the fixed disk is mounted as 
/fixed and the removable as /removable):

# cp -Rpv /fixed/boot /removable
# cd /removable/boot/kernel
# gzip kernel geom_eli.ko acpi.ko

My  issue is that there is nothing in /removable/boot/kernel.

Obviously whatever would be there would have come from the cp -Rpv /fixed/boot 
/removable line, so I checked in /fixed/boot/kernel, and there's nothing there 
either.

Presumably whatever would be in /fixed/boot/kernel would have been placed there 
in the previous step, section 3.5.4, which includes:

# mount /dev/ad0.elia /fixed
# export DESTDIR=/fixed/
# cd /dist/6.0-RELEASE/base  ./install.sh

That did create a bunch of stuff on /fixed, including /fixed/boot and even 
/fixed/boot/kernel, but it did not place any files in /fixed/boot/kernel.

One difference that I should mention at this point is that I'm using 8.2, not 
6.0, so I actually did a cd /dist/8.2-RELEASE/base instead of the cd 
/dist/6.0-RELEASE/base that the document suggests.  Other than that, I think I 
did everything the same as it suggests.

Is there a step missing in the  document? Or did I screw something up?

In any case, can I just copy the necessary files to /removable/boot/kernel from 
/dist/boot/kernel instead of from /fixed/boot/kernel? Or do I have to get them 
in some other way? And what files are needed? Obviously kernel, geom_eli.ko, 
and 
acpi.ko, and I believe that geom_eli.ko requires both zlib.ko and crypto.ko, 
but 
do I have to get any other files, too?

Thanks in advance for any help.
___
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


Options for Secondary DNS Service?

2011-04-10 Thread Pierre-Luc Drouin

Hi,

I am looking for a secondary DNS service. Any suggestion? It is not for 
a non-profit organisation so I am not necessarily looking for a free 
solution, but I am wondering if there are reliable solutions for less 
than what dyndns charges ($40 /year/zone).


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: Options for Secondary DNS Service?

2011-04-10 Thread Outback Dingo
whats the org ? could consider domating

On Sun, Apr 10, 2011 at 11:43 PM, Pierre-Luc Drouin
pldro...@pldrouin.netwrote:

 Hi,

 I am looking for a secondary DNS service. Any suggestion? It is not for a
 non-profit organisation so I am not necessarily looking for a free solution,
 but I am wondering if there are reliable solutions for less than what dyndns
 charges ($40 /year/zone).

 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

___
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