Re: Soekris for a Trac server

2013-10-04 Thread Ivan Voras
On 01/10/2013 08:22, Michael wrote:

 Also I am bit unsure about the setup I should pick: we are a hand of
 users for the service and I would like to know if a 64-MB Ram and a
 166Mhz setup could do, or if I definitely should consider a faster CPU
 or more RAM. Given my actual jail based setup, is there an easy way to

Definitely aim for a much faster CPU and more RAM. Trac is written in
Python, and is pretty slow (unless you are not bothered by pages being
generated over a few seconds...).



signature.asc
Description: OpenPGP digital signature


Re: Zfs encryption property for freebsd 8.3

2013-09-03 Thread Ivan Voras
On 03/09/2013 14:14, Emre Çamalan wrote:
 Hi, 
 I want to encrypt some disk on my server with Zfs encryption property but it 
 is not available.
 
 Are there anybody have got an experience about this?

It can't happen because Oracle has stopped open sourcing ZFS.
http://forums.freebsd.org/showthread.php?t=30036




signature.asc
Description: OpenPGP digital signature


Re: sleepycat db VS MySQL or postgres

2013-07-02 Thread Ivan Voras
On 01/07/2013 22:28, Jim Pazarena wrote:
 I have a rather extensive series of databases created and in use all
 with the very old sleepycat db3. I believe in the addage don't fix
 what ain't broken, but in the case of db3, it IS broken and my db
 files get corrupted on occasion.
 
 I could move to db5 or db6 OR MySQL, or even postgres.
 
 I use simple primary key files, most entries are added from a CLI
 or termcap/curses screen. Some programatically. With about the same
 number of sequential dumps vs indexed random reads.
 
 I have no experience with the c interface for postgres or mysql, but
 also, do not know how much the c interface has changed for sleepycat
 5/6 compared to the c interface for db3, which I understand quite well.
 So I am prepared for a learning curve irrespective of which platform
 I select. Records do not exceed much more than 10-20,000, with key sizes
 not much wider than 16 bytes (ipv4), 13 (mac), 32 (ipv6). And various
 smaller key sizes.
 
 Suggestions would be very much appreciated.

Well, this is essentially a bikeshed thread... so why not chip in :)

I'd say it depends on what is your priority or what do you want to
achieve by switching databases.

If you want it to be as easy as possible, switch to DB5 and you'll be ok.

If you want to learn something interesting, try one of the recent NoSQL
databases, such as Redis, MongoDB or CouchDB - they're like DBx but with
significantly more powerful query capabilities.

If you want to get a feel of how SQL databases work, go with PostgreSQL,
but be aware that to really use a SQL database the way they're made to
be used, you'll need to properly design a relational schema. Using them
to store 20 KiB blobs indexed by a single key is way too simplistic and
probably much slower than what you could get with a simple DBx engine.
Also, SQL databases usually work with SQL queries, which are text, so
you'll have a non-trivial task of fitting C structs in their text/blob
field types - it's best to avoid it. Also, you'll need to learn how to
tune and maintain proper database servers.

If you want to just try SQL but without bothering with tuning and
maintainance, try SQLite, but beware it is basically limited to a single
writer (and inifinite reader) clients in the best case (with WAL
journalling).




signature.asc
Description: OpenPGP digital signature


Re: sleepycat db VS MySQL or postgres

2013-07-02 Thread Ivan Voras
On 02/07/2013 13:55, Mark Felder wrote:

 If twitter was built upon a WORM database instead of MySQL they could
 host the entirety of twitter on a handful of servers instead of the
 gross MySQL+Cassandra mess they're fighting with today.

I'd say their problem is not exactly solvable by only choosing a database :D
They, like Facebook, have the problem of fanout, where a single piece
of data goes into thousands of different user pages. Whatever they save
in the raw data access operations will probably be relatively small
compared to the horsepower needed to combine pages from all these
fleeting data pieces.

But yes, obviously a database designed specifically for one thing will
be optimized for that thing.



signature.asc
Description: OpenPGP digital signature


Re: reduce priority of large port builds, e.g. firefox, gcc4x

2012-08-29 Thread Ivan Voras
On 29/08/2012 15:56, Anton Shterenlikht wrote:
 Is it possible to reduce priority
 of port building processes with
 something like nice +19 make (tcsh syntax)?

Sure, I do it all the time.
You may even want to make a shell alias in your cshrc, i.e.

alias make nice +19 make

(or something like it)




signature.asc
Description: OpenPGP digital signature


Re: geli - selecting cipher

2012-07-26 Thread Ivan Voras
On 26/07/2012 04:14, RW wrote:

 I asked a similar questions to the OPs in the geom list and didn't get
 an answer. Geli doesn't need or isn't using any advantages of XTS. And
 CBC in geli is actually equivalent to ESSIV (see the previously linked
 wikipedia page). 

Hi,

You didn't get an answer because in security, the answer depends on
exact circumstances of use. The short answer is that if you don't have a
specific adversary you need to protect your data from, I'd say that
GELI's CBC is good enough for you.




signature.asc
Description: OpenPGP digital signature


Re: geli + journal

2011-11-16 Thread Ivan Voras
On 15/11/2011 19:33, Коньков Евгений wrote:
 Здравствуйте, RW.
 
 Вы писали 15 ноября 2011 г., 1:50:54:
 
 R On Tue, 15 Nov 2011 00:06:00 +0200
 R Коньков Евгений wrote:
 
 catch idea, but some question:
 in this situation .eli.journal  journal device will not be encrypted?
  can you describe how data flow will be?
 
 R The journal is encrypted unless you choose to put it on a separate
 R non-encrypted device. 
 
 R In principle the data is encrypted into the journal, decrypted from
 R the journal and then re-encrypted into its final location. In practice
 R I've found that in file copying between disks, writing uses about
 R twice as much cpu time as reading, so maybe the decryption  from the
 R journal can be avoided by caching.
 
 Are there differences between .eli.journal or .journal.eli?

Yes, UFS gjournal support will only work with .eli.journal.



signature.asc
Description: OpenPGP digital signature


Re: Bad sector in UFS2 journal area

2011-10-20 Thread Ivan Voras
On 20/10/2011 05:49, Ross wrote:
 I don't actually have this problem, I'm just curious. What will happen
 if read fails on sector in UFS2 journal area? Sector won't get
 remapped until write, so reads will be failing until then.
 
 I've had experience with bad sectors with non-journaled filesystems —
 the system was online and working. The only problem was that
 particular file and messages in /var/log/messages until the Current
 Pending Sector counter was cleared and sector was remapped.
 
 Will it be the same (online system) with bad sector in journal area?
 And will it damage the filesystem?

Well, SUJ is new enough that there's no general disseminated knowledge
about it, but from a quick look at the code:

1) the journal recovery is only ever done in the fsck_ffs program, so
it's unlikely that the kernel will panic from a bad sector
2) if the journal cannot be read at any point, the recovery code
*should* offer the user to nuke the journal and perform a normal, full
fsck, which presumably should leave the file system in a usable state
3) journal writes are done via the normal mechanisms, so it also
shouldn't lead to kernel panics on bad sectors, but the normal
cannot-write-to-device kernel error message and continued operation.




signature.asc
Description: OpenPGP digital signature


Re: ZFS on Dell with FreeBSD

2011-10-19 Thread Ivan Voras
On 19/10/2011 16:30, Fajar A. Nugraha wrote:
 On Wed, Oct 19, 2011 at 9:14 PM, Albert Shih albert.s...@obspm.fr wrote:
 Hi

 Sorry to cross-posting. I don't knwon which mailing-list I should post this
 message.

 I'll would like to use FreeBSD with ZFS on some Dell server with some
 MD1200 (classique DAS).

 When we buy a MD1200 we need a RAID PERC H800 card on the server so we have
 two options :

1/ create a LV on the PERC H800 so the server see one volume and put
the zpool on this unique volume and let the hardware manage the
raid.

2/ create 12 LV on the perc H800 (so without raid) and let FreeBSD
and ZFS manage the raid.

 which one is the best solution ?
 
 Neither.
 
 The best solution is to find a controller which can pass the disk as
 JBOD (not encapsulated as virtual disk). Failing that, I'd go with (1)
 (though others might disagree).

Depending on the requirements and the purpose of the machine, it might
idea to combine it by having the hardware handle multiple RAID-1
devices. E.g. if you want to implement RAID-10, you might create N
RAID-1 volumes of two drives each in hardware. This is especially good
since FreeBSD's ZFS doesn't yet handle hot spares.




signature.asc
Description: OpenPGP digital signature


Re: Dell Poweredge 1950 III (PE_SC3): replacement SAS controller to acceess drives = 3TB

2011-10-13 Thread Ivan Voras
On 13/10/2011 12:16, O. Hartmann wrote:

 
 I'm a bit afraid of buying something out of the blue since the
 dimensions of this little controller board seems small. I hope someone
 already made a decission to buy such a replacement for their similar or
 exact the same system and can help me out.
 
 We do not need RAID, nor SAS 2.0 capabilities, just JBOD. Thanks a lot
 in advance,

This is somewhat tangential but if the server has an internal USB port
(directly on the motherboard), you *could* use it just for boot+root for
the OS and then have buy any kind of controller which supports your
drives. Almost all modern servers have this, but the 1950 is a bit old...

In the same direction: if you have the space and the cabling, you could
just add a single small drive and connect it to the motherboard SATA
controller (non-RAID) and boot from that.




signature.asc
Description: OpenPGP digital signature


Re: load average with multi-core CPU's

2011-09-26 Thread Ivan Voras
On 22/09/2011 22:59, Rodrigo Gonzalez wrote:

 It is the number of task waiting in queue to be runbut IO is
 important...if 2 processes are waiting for IO and it is completely
 saturated they will be kept in queue so load will get higher

No, this is how Linux does the calculation. For FreeBSD, if a process is
waiting or IO, it is sleeping and thus not runnable.

Linux has the iowait (w) state in addition to usr/sys/idle states
and counts processes waiting for IO as runnable - which never made sense
to me as it is counting apples as oranges. (yes, IO saturation is
important for server status but it needs to be inspected separately -
the LA number is too coarse for this).




signature.asc
Description: OpenPGP digital signature


Re: Installing FreeBSD 9 on an AMD 64 with 16 GB of memory

2011-09-26 Thread Ivan Voras
On 25/09/2011 17:04, Mark Felder wrote:
 I have an Opteron machine that on both 7.x and 8.x it displays this
 behavior. The only fix was to boot from USB and it would get past it.
 Weird.

Was it also an LSI controller? I had the same problem a month ago.



signature.asc
Description: OpenPGP digital signature


Re: UFS journal size

2011-09-21 Thread Ivan Voras
On 21/09/2011 11:48, Ross wrote:
 Quoting the manpage:
 
  -s jsize  Specifies size of the journal if only one provider is
used for both data and journal.  The default is one
gigabyte.  Size should be chosen based on provider's
load, and not on its size; recommended minimum is twice
the size of the physical memory installed.  It is not
recommended to use gjournal for small file systems
(e.g.: only few gigabytes big).
 
 My question is: if I have 4 or 8 GB of RAM should I create 8 or even
 16 GB journals?.. This seems huge especially if the fs size without
 journal is only 10 gigs. Or the recommended minimum is for systems low
 on RAM?

You are probably missing that gjournal does full data journaling, not
just metadata as is more common with other systems, so you need a
journal which can hold *at least* everything you can hold in RAM, and
then twice as much since one half may be replaying while other is being
filled up. Even this is an estimate since it's heavily load-dependant.

Or you can wait for 9.0 with metadata journaling.




signature.asc
Description: OpenPGP digital signature


Re: FS of choice for max random iops ( Maildir )

2011-09-16 Thread Ivan Voras
On 16/09/2011 12:31, free...@top-consulting.net wrote:

 A. TEST1: dd bs=1024 if=/dev/zero of=/data/t1 count=1M
 
 1. ZFS performed the worst, averaging 67MB/sec
 2. UFS + gjournal did around 130MB/sec
 3. UFS did around 190MB/sec
 
 B. TEST2 ( random file creation ): bonnie++ -d /data -c 10 -s 0 -n 50 -u 0
 
 1. UFS + gjournal performed the worst
 2. ZFS performed somewhat better
 3. UFS performed the best again ( about 50% better )
 
 C. TEST3 ( sequential writing ): bonnie++ -d /data -c 10 -s 8088 -n 0 -u 0
 
 1. UFS + gjournal crashed the box
 2. ZFS performed average
 3. UFS performed better than ZFS ( about 50% better )
 
 
 I really like the concepts behind ZFS and UFS + Journaling but the
 performance hit is quite drastic when compared to UFS.
 
 What I'm looking for here is max IOPS when doing random read/writes. Is
 UFS the best choice for this ? Do my results make sense ?

Your tests do look a bit odd - ZFS usually does better on sequential and
UFS on random IO (rw mix). For random IO I'd go with UFS.

Try comparing with blogbench.

___
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: FS of choice for max random iops ( Maildir )

2011-09-16 Thread Ivan Voras
On 16/09/2011 13:30, free...@top-consulting.net wrote:

 Is zfs supposed to be faster if you let it manage the disks directly ?
 

Not necessarily faster (in fact, RAID-Z variants have known limitations
which are not so pronounced in RAID5/6), but definitely more convenient
and in some respects safer.

I would test very carefully if you need speed and stability from ZFS.
For one thing, you will probably want to reduce the block size in ZFS to
8K or such.

___
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: ZFSv28+NFSv4 poor file creation performance, sync=disabled has no effect

2011-09-02 Thread Ivan Voras

On 31/08/2011 23:45, David Brodbeck wrote:

I'm testing FreeBSD 9.0-BETA with an eye toward eventually using
FreeBSD 9.0 to replace some existing OpenSolaris 2008.11
installations.  I've found NFS file creation performance (as measured
by Bonnie++) is equally slow for both with default settings.  However,
on OpenSolaris I disable the ZIL to improve file creation performance.
  This tuning parameter was removed from FreeBSD 9.0; its replacement
is supposed to be the per-filesystem flag sync, but setting this
flag seems to have no effect.

I did recompile the FreeBSD kernel without debugging features before
doing the tests, so I don't think this is a case of debugging code
slowing things down.

Here's the relevant data; these are all from bonnie++'s sequential
create benchmark.

OpenSolaris 2008.11, default settings: 58/second
OpenSolaris 2008.11, with zil_disable=1: 1258/second

FreeBSD 9.0-BETA, default settings: 107/second
FreeBSD 9.0-BETA, with sync=disabled: 106/second


It appears the sync ZFS parameter has no effect in FreeBSD.  Has
anyone else seen this?  Is there a way to improve NFS file creation
performance now that zil_disable has been removed?


Please report this to the freebsd-fs mailing list!

___
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: Heavy I/O blocks FreeBSD box for several seconds

2011-07-07 Thread Ivan Voras

On 06/07/2011 20:11, Nathan Whitehorn wrote:


I've seen exactly this problem with multi-threaded math libraries, as
well. Using parallel GotoBLAS on FreeBSD gives terrible performance
because the threads keep migrating between CPUs, causing frequent cache
misses.


On both schedulers?

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

2011-04-14 Thread Ivan Voras

On 12/04/2011 13:33, Lars Wilke wrote:


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


If you don't get any answer here, try posting on the freebsd-fs @ 
freebsd.org list.


___
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: PAE: Cannot fork

2011-04-14 Thread Ivan Voras

On 14/04/2011 12:14, Dennis Nikiforov wrote:

There is a legacy piece of custom software that runs only on 32 bit systems, so 
going to 64 bit is not possible.


Some ideas:

1) You can run 32-bit applications on 64-bit FreeBSD (and / or set up a 
32-bit jail)
2) You can try booting a snapshot of 9-CURRENT and see if it helps. I 
think I saw some commits that could have fixed this problem. As far as I 
can see, 9-CURRENT is quite stable right now (and should be much faster 
than the 7.x you are proposing to use).



___
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-11 Thread Ivan Voras

On 10/04/2011 06:27, Chris Telting wrote:

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.


Not exactly like RAID 0; ZFS's striping is not using regular patterns 
/ stripes but IO balancing heuristics. This means there are no fixed 
stripe size but the data is distributed across the drives in a way which 
ZFS's algorithms predict is best.


This allows for e.g. creating a zpool from a single drive, then adding 
another drive (as a stripe) and ZFS will use both, but new data will 
be written mostly to the new drive. Performance should scale as expected 
in this scenario, e.g. not much if the first drive is almost full before 
adding a new one.



___
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: gmirror and normal users?

2011-04-08 Thread Ivan Voras

On 08/04/2011 16:43, Christopher Hilton wrote:

Should a normal user be able to successfully:

  $ gmirror remove /dev/mirror/gm0 /dev/ad6

Or is this something that's just unlocked because I haven't mounted the drive 
yet?

$ uname -a
FreeBSD deathstar.example.com 8.2-STABLE FreeBSD 8.2-STABLE #1: Wed Apr  6 
13:09:37 EDT 2011 root@dagobah:/usr/obj/usr/src/sys/GENERIC  i386
$ id
uid=1001(chris) gid=1001(chris) 
groups=1001(chris),0(wheel),5(operator),1000(users)


It is because of the operator group. Normal users which are not in 
this groups would not be able to do it.


If a user can communicate with the device (i.e. has at least reads 
rights to it), he can send GEOM commands to it. The operator group has 
read permissions by default:


lara:~ ll /dev/mirror/
total 0
crw-r-  1 root  operator0, 150  8 Apr 16:55 bla

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

2011-03-21 Thread Ivan Voras

On 21/03/2011 13:48, Michael Klapheke wrote:

Hi.  I know this subject has been addressed in other posts, but I cannot seem to get it to work.  I 
have inherited a FreeBSD server and I cannot get it to boot properly.  I read the articles on 
avoiding having to press the F1 key, and I tried to follow the suggestions (note, my disks are 
labeled da0s1 etc.  instead of ad0) as in the following:

boot0cfg -B -b /boot/boot0 /dev/da0

or even

fdisk -B -b /boot/boot0 /dev/da0

Neither of these prevents the user from having to press the F1 key.


It's not a configurable parameter of the boot loader, you need a 
different boot loader (default).


However, why is that a problem? The user doesn't *have* to press the F1 
key, he can just wait 5 seconds or so and the boot will proceed with the 
last boot choice.



I also read the tutorial on how FreeBSD boots, but I cannot find anything that 
helps.


T think the relevant lines from boot0cfg(8) are:

 To go back to non-interactive booting, use fdisk(8) to install the
 default MBR:

   fdisk -B ad0

___
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: HAL must die!

2011-03-17 Thread Ivan Voras
On 17 March 2011 16:10, Lars Eighner luvbeas...@larseighner.com wrote:
 On Thu, 17 Mar 2011, Krutov Mikle wrote:

 On Mon, Mar 07, 2011 at 03:32:59PM +0100, Ivan Voras wrote:

 On 06/03/2011 19:56, Lars Eighner wrote:

 Using the -C switch with portupgrade, I am managing to turn WITH_HAL off
 in
 ports that I install or upgrade. Is there a way to make this a global
 default?

 Is there a (convenient) way to list ports that might pull in HAL without
 having a configuration switch?

 Um, why exactly are so many people against HAL? It's the only
 cross-platform thing available for non-Linux systems which handles
 device enumeration, hotplugs, etc.

 Hi Ivan!
 As for me, it is like a habit:
 I've installed Xorg + HAL for the first time;
 I've seen that my config is ignored;
 I disabled HAL by-default in make.conf
 :)

 Setting FORBIDDEN in the HAL port helps to avoid accidentally installing hal
 as can easily happen.  The gstreamer plugin pseudoports have something that
 installs hal and breaks Firefox so any mouse click kills it.

Well yes, that's one thing: if you use HAL, everything must use HAL
and you can't pick and match incompatible applications and force half
of the things in xorg.conf.

As for me, I'm running without any xorg.conf (really, I don't have the
file at all), all my desktop applications are using HAL and everything
is autodetected and just works, which is as it should be.
___
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: HAL must die!

2011-03-07 Thread Ivan Voras

On 06/03/2011 19:56, Lars Eighner wrote:

Using the -C switch with portupgrade, I am managing to turn WITH_HAL off in
ports that I install or upgrade. Is there a way to make this a global
default?

Is there a (convenient) way to list ports that might pull in HAL without
having a configuration switch?


Um, why exactly are so many people against HAL? It's the only 
cross-platform thing available for non-Linux systems which handles 
device enumeration, hotplugs, etc.


___
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: HAL must die!

2011-03-07 Thread Ivan Voras
On 7 March 2011 19:44, Lars Eighner luvbeas...@larseighner.com wrote:
 On Mon, 7 Mar 2011, Ivan Voras wrote:

 On 06/03/2011 19:56, Lars Eighner wrote:

 Using the -C switch with portupgrade, I am managing to turn WITH_HAL off
 in
 ports that I install or upgrade. Is there a way to make this a global
 default?

 Is there a (convenient) way to list ports that might pull in HAL without
 having a configuration switch?

 Um, why exactly are so many people against HAL?

 It breaks my mouse and keyboard.  I assume it would break other stuff if I
 had esoteric devices.

 with HAL = nothing works
 without HAL = everything works

Interesting, I had 0 problems with HAL ever since it was made.

 It's the only cross-platform thing available for non-Linux systems which
 handles device enumeration, hotplugs, etc.


 I'm not running a cross-platform.  I'm running FreeBSD.  There were native
 FreeBSD solutions to hotplugging the devices I use before HAL.

Good luck with running your FreeBSD with FreeBSD-only applications :)
___
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: Apache FastCGI display Website not correct

2011-03-02 Thread Ivan Voras

On 01/03/2011 20:22, Silvio Siefke wrote:

Hello,


i use fastcgi with PHP-FPM on Apache 2.2.17. When i go on Website with
FastCGI then the page load not complete.

http://mail.silviosiefke.de/fastcgi_apache.png

When i run with FCGID then the page load complete.

http://mail.silviosiefke.de/fcgid_apache.png

Has someone a idea what is the problem? Thank you.


This is not a FreeBSD problem.

The most likely problem is that your FastCGI configuration handles more 
paths than it should, including images, CSS and other non-fastcgi URLs.


___
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 does printf(9) hang network?

2011-02-05 Thread Ivan Voras

On 05/02/2011 21:22, dieter...@engineer.com wrote:

Why would doing a printf(9) in a device driver (usb, firewire, probably
others) cause an obscenely long lockout on
/usr/src/sys/kern/uipc_sockbuf.c:148 (sx:so_rcv_sx)  ?


You should ask this question on freebsd-hackers@.



Printf(9) alone isn't the problem, adding printfs to chown(2) does not
cause the problem, but printfs from device drivers do.

Grep says that uipc_sockbuf.c is the only file that locks/unlocks sb_sx.
The device drivers and printf don't even know that sb_sx exists.

135  int
136  sblock(struct sockbuf *sb, int flags)
137  {
138
139  KASSERT((flags  SBL_VALID) == flags,
140  (sblock: flags invalid (0x%x), flags));
141
142  if (flags  SBL_WAIT) {
143  if ((sb-sb_flags  SB_NOINTR) ||
144  (flags  SBL_NOINTR)) {
145  sx_xlock(sb-sb_sx);
146  return (0);
147  }
148  return (sx_xlock_sig(sb-sb_sx));
149  } else {
150  if (sx_try_xlock(sb-sb_sx) == 0)
151  return (EWOULDBLOCK);
152  return (0);
153  }
154  }

More info at: http://www.freebsd.org/cgi/query-pr.cgi?pr=118093


___
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: 4k drives and zfs

2011-02-02 Thread Ivan Voras

On 02/02/2011 05:52, krad wrote:

Hi All,

A quick question. Im upgrading my filer at home to have 2x 2tb samsung
F4EG drives. I believe these are 4k drives. I'm intending to use the
gnop trick to get zfs ashift to 12. Will this make my pool unbootable.
I have read a few threads aluding to this.


There have been bugs which make such drives unbootable but they have 
been fixed at least in CURRENT (I haven't tried 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: Using Megabyte, Gigabyte, ... in fdisk

2011-02-01 Thread Ivan Voras

On 01/02/2011 14:09, Bahman Kahinpour wrote:

Hello,
I have a small question. How may I use Kilobyte, Megabyte, ... in
fdisk interactive mode?


It is best not to use fdisk at all until it gets rewritten. Use gpart.

___
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: upgrading a dozen of servers from 7.0 to 8.1

2011-01-21 Thread Ivan Voras

On 21/01/2011 14:54, Radomskiy Yuriy wrote:


how can upgrading to apache 2.2 + php5.3 be done with minimal downtime?


That's the more important question. I think that upgrading the 
configuration of your software will take more time than upgrading FreeBSD.


For example: apache22 port has a different (and better) configuration 
file structure than 2.0, and some web application still don't work with 
php 5.3.


If you know reasonably good enough how FreeBSD works, I don't think you 
will have trouble with that part of the upgrade (especially if you have 
a remote KVM or other console access).


___
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: Date of a FreeBSD installation

2011-01-13 Thread Ivan Voras

On 13/01/2011 21:28, David Demelier wrote:

Hello folks,

I'm just guessing if there is a way to know a FreeBSD installation date.
We can't look after the uname -a ident since an update of the FreeBSD
kernel is possible.


If you haven't removed it, a line in /etc/rc.conf should be written by 
sysinstall at system install time:


# -- sysinstall generated deltas -- # Sun Sep 14 16:13:22 2008

On a newer system (7+?), the timestamp of /etc/hostid would be from the 
first boot.


___
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: sqlite3 and sqlite34

2011-01-10 Thread Ivan Voras

On 10/01/2011 09:57, prad wrote:

i'm still on freebsd 7.2 and am wanting to try sqlite.
however, in the ftp-archive.freebsd.org repository i see these two
versions both of which i can install and seem to work:

sqlite3-3.6.11.tbz (this has a non
sqlite34-3.4.2.tbz

one site said something about 3 having a non-severe problem while this
page says:
Remove sqlite3-threads and add sqlite34
http://www.freshports.org/databases/Makefile

could someone please tell me which one is recommended?
i couldn't find anything through google about their differences.


The current version of sqlite3 in ports is 3.7.3, there is generally no 
reason why you should use an older version.


___
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: A jail with a dash in its name

2010-12-21 Thread Ivan Voras

On 21/12/2010 12:23, Christer Solskogen wrote:

On Tue, Dec 21, 2010 at 12:06 PM, kradkra...@gmail.com  wrote:

i'd stay away from characters like that. It should be ok in theory to use
but in my experience it is more likely to cause problems in the future



There's no problem of having a dash in a hostname, so why should it be
in a jailname?


Well, the immediate reason here is this:

http://www.gnu.org/software/bash/manual/bashref.html#Definitions


name
A word consisting solely of letters, numbers, and underscores, and 
beginning with a letter or underscore. Names are used as shell variable 
and function names. Also referred to as an identifier.



(ignoring that /bin/sh is not bash but the syntax is the same for this 
purpose).


/etc/rc.conf is basically a shell script containing only variable 
assignments.


I think you actually *could* have jails with arbitrary names (including 
international / utf-8 if you're not worried about formatting much) but 
only if you are going to manage them manually, not with /etc/rc.conf.


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

2010-12-02 Thread Ivan Voras
On 12/01/10 21:23, David DEMELIER wrote:

 Yes it is just exercises, I heard bsdlabel was grow up so I wanted to
 test, now I don't really understand why it's fixed to 20 only. I also

It turns out that something like 22.75 bsdlabel partition table entries
fit in a 512 byte sector, so this was rounded down to 20. This is where
this limit comes from - the size of the sector.


___
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: Is ZFS ready for prime time?

2010-11-19 Thread Ivan Voras

On 11/15/10 21:06, Chris Rees wrote:

On 15 November 2010 19:59, Peter Boostenpe...@boosten.org  wrote:


He's consistent in any case (a quick google search reveals this 2008
message):
http://www.mail-archive.com/freebsd-questions@freebsd.org/msg192926.html


Consistent, but still just spouting uninformed FUD.


Actually, I don't see anything incorrect in the above archive post.

As for specific problems with ZFS, I'm also pessimistic right now - it's 
enough to read the freebsd-fs @ freebsd.org and zfs-discuss @ 
opensolaris.org lists to see that there are frequent problems and 
outstanding issues. You can almost grep for people losing data on ZFS 
weekly. Compare this to the volume of complaints about UFS in both OSes 
(almost none).


ZFS is young and ambitiously designed. We'll see if it grows up.

As for FreeBSD's implementation, I think it will be as good as it gets 
in 9.0 if the import of ZFS v28 doesn't destabilize it. By this I mean 
that any problems left would not be FreeBSD's fault but ZFS's own 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: ZFS and 4k sector drives

2010-11-16 Thread Ivan Voras

On 11/15/10 20:24, Wojciech Puchar wrote:

work with ZFS raidz2 pools. It seems that most of the 4k sector drives
are using emulation, and reporting 512 byte sectors to the OS instead
of their native 4k size. I know someone who had an issue trying to
insert one of these drives into a running ZFS pool with other 512 byte
sector drives with bad results.


ZFS use 4k blocks.


Actually, no, it's much worse: ZFS uses variable block size upto 128 
KiB, meaning not only does it not write or align data on a sensible 
boundary like 4 KiB, both its metadata and data IO can write on any 
offset and length which is a multiple of 512 bytes.


References:

http://www.solarismen.de/archives/5-Solaris-and-the-new-4K-Sector-Disks-e.g.-WDxxEARS-Part-2.html

http://permalink.gmane.org/gmane.os.freebsd.devel.geom/4318


___
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: Is ZFS ready for prime time?

2010-11-16 Thread Ivan Voras

On 11/16/10 20:23, Adam Vande More wrote:

On Tue, Nov 16, 2010 at 8:11 AM, Ivan Vorasivo...@freebsd.org  wrote:


Actually, I don't see anything incorrect in the above archive post.



I do.  Cherry picking ZFS deficiencies without addressing the proper
documented way to work around them or at even acknowledging it's possible to
do so is FUD.  It's not like traditional RAID doesn't have it's own set of
gotcha's and proper usage environment.


Well, you are also doing cherry picking of *good* features so I'd say 
there's no conceptual difference here :)


NHF, I'm not attacking you; as with everything else, people need to test 
technologies they are going to use and decide if they are good enough.



Dismissing the value of checksumming your data seems foolhardy to say the
least.  The place where silent data corruption most frequently occurs, in
large archive type filesystems, also happens to be one of the prime usage
candidates of RAIDZ.


Now if only the default checksum wasn't so weak:

http://opensolaris.org/jive/thread.jspa?threadID=69655tstart=30
http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6740597

There are no details about its fixed status so I think the problem is 
still there.


(of course, stronger options are available, etc. - and it's better than 
nothing)



As for specific problems with ZFS, I'm also pessimistic right now - it's
enough to read the freebsd-fs @ freebsd.org and zfs-discuss @
opensolaris.org lists to see that there are frequent problems and
outstanding issues. You can almost grep for people losing data on ZFS
weekly. Compare this to the volume of complaints about UFS in both OSes
(almost none).



There are actually very few stories of ZFS/zpool loss on the FreeBSD
list(some are misidentifications of issues like this:
http://lists.freebsd.org/pipermail/freebsd-fs/2010-September/009417.html),
another source I would point you to is http://forums.freebsd.org/.  The
single recent valid one I can find involves a pool on geli, but I will grant
you that it happens at all is quite disconcerting.


Yes, especially since GELI is very sensitive to corruption.

But I'm also counting cases like the inability to replace a drive which 
failed, log device corruptions and similar things which will, if not 
result in a totally broken file system, result in a file system which is 
wedged in a way that requires it to be re-created.


In many of those, though, it's not clear if the error is in ZFS or FreeBSD.


UFS has it's own set of
issues/limitations so regardless of what you pick make sure you're aware of
them and take issues to address them before problems occur.


Of course, UFS *is* old and classical in its implementation - it would 
be just as wrong to expect fancy features from UFS like to expect such 
time-tested stability from ZFS.


And new technologies need time to settle down: there are still 
occasional reports of SUJ problems.


Personally, I have encountered only stability issues and currently have 
only one server with ZFS in production (reduction from several of them 
about a year ago), but I'm constantly testing it in staging. If the v28 
import doesn't destabilize it in 9, I'm going to give it another chance.



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


Re: Re[2]: How to obtain what swi1:net is doing?

2010-11-13 Thread Ivan Voras
2010/11/13 Коньков Евгений kes-...@yandex.ru:

 IV net.isr.direct_force=0
 IV net.isr.maxthreads=2
 FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 FreeBSD/SMP: 1 package(s) x 2 core(s) x 2 SMT threads
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
  cpu2 (AP): APIC ID:  4
  cpu3 (AP): APIC ID:  5
 ioapic0: Changing APIC ID to 6
 ioapic0 Version 2.0 irqs 0-23 on motherboard
 netisr_init: forcing maxthreads to 1 and bindthreads to 0 for device polling

 # cat /boot/loader.conf
 net.isr.maxthreads=2

 maxthreads does not affected

I don't understand: how is it not affected?

On a system with maxthreads=2, here is how it shows:

betelgeuse:/home/ivoras# ps axuHc | grep isr
root  12  3.0  0.0 0   432  ??  WL   12:21PM   0:09.21
intr/swi1: netisr 7
root  12  0.0  0.0 0   432  ??  WL   12:21PM   0:00.00
intr/swi1: netisr 0

I.e. there are two threads here, bound to CPU cores 0 and 7.

 #uname -r
 9.0-CURRENT

Yes, multithreaded netisr was introduced in FreeBSD 8, it wasn't there in 7.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to obtain what swi1:net is doing?

2010-11-11 Thread Ivan Voras

On 11/11/10 20:20, Коньков Евгений wrote:

Hi, all


How to obtain what swi1:net  is doing?

The short answer is: depending on what your network card is, it could be 
everything related to TCP/IP-level processing.


In your case, you are doing a lot of work in netgraph and dummynet, 
probably shaping, but have high dummynet usage which probably means its 
handling the lower level of network IO, probably with a high packet rate.


You might try including the following loader.conf tunables:

net.isr.direct_force=0
net.isr.maxthreads=2

... and report if it helps you. (but be careful: here you must measure 
real-world performance not CPU usage!)




last pid: 65736;  load averages:  3.54,  4.46,  3.92up 4+07:51:26  21:19:08
215 processes: 8 running, 195 sleeping, 12 waiting
CPU 0:  2.9% user,  0.0% nice, 42.9% system, 11.4% interrupt, 42.9% idle
CPU 1:  0.0% user,  0.0% nice, 54.3% system, 17.1% interrupt, 28.6% idle
CPU 2:  2.9% user,  0.0% nice, 57.1% system,  5.7% interrupt, 34.3% idle
CPU 3:  0.0% user,  0.0% nice, 45.7% system, 17.1% interrupt, 37.1% idle
Mem: 502M Active, 87M Inact, 324M Wired, 24M Cache, 112M Buf, 1053M Free
Swap: 20G Total, 72K Used, 20G Free

   PID USERNAME   PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
15 root   -44- 0K 8K CPU1   3  31.4H 71.39% swi1: net
35 root   -68- 0K 8K CPU0   0  21.7H 50.20% dummynet
14 root   171 ki31 0K 8K RUN0  74.8H 42.87% idle: cpu0
11 root   171 ki31 0K 8K CPU3   3  78.4H 31.79% idle: cpu3
13 root   171 ki31 0K 8K RUN1  80.3H 29.69% idle: cpu1
12 root   171 ki31 0K 8K RUN2  76.9H 23.49% idle: cpu2
  1698 root   -68- 0K 8K sleep  2 312:30 15.38% ng_queue0
  1700 root   -68- 0K 8K sleep  3 313:02 15.09% ng_queue2
  1699 root   -68- 0K 8K sleep  2 314:18 14.89% ng_queue1
  1701 root   -68- 0K 8K sleep  1 312:54 14.06% ng_queue3
63829 www 500   185M   123M select 0   0:47  4.05% httpd
59213 root960   400M 61940K CPU3   2  32:24  2.98% rtorrent
16 root   -32- 0K 8K WAIT   2 129:41  0.39% swi4: clock sio



___
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-similar build-from-source Linux?

2010-11-10 Thread Ivan Voras
On 11/10/10 13:24, O. Hartmann wrote:
 Hello out there,
 
 well, my question may sound heretic, but since we use mostly Linux based
 systems in our scientific environment and FreeBSD seems to lack in
 severe support in GPGPU/CUDA capable graphics boards I need to setup a
 kind of Linux facility to ensure having the software and tools I need
 for my work. I'm looking for a Linux distribution that is similar
 handled like FreeBSD, where I'm able to rebuild the whole system from
 sources, not even the the Linux kernel, also the GNU tools and the
 packages. Maybe there are some people out here having already taken this
 step.
 Any suggestion is appreciated,

I think that the general opinion is that Gentoo has the closest thing to
that aspect of FreeBSD. Other than that, IIRC Slackware is also
build-friendly.

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

2010-11-08 Thread Ivan Voras
On 11/08/10 11:01, Samuel Martín Moro wrote:

 In my opinion, the only chance to get back the data would be to plug an
 additional drive, make a huge swap file...
 Knowing that context switching, on such an amount of RAM ... that would at
 least take days.
 
 
 In doubt: am I missing something? Is there an easier way?

Basically, no.

You can't expect fsck a 44 TB drive with 2 GB of RAM, there is too much
information to be kept while checking.

However, IIRC there have been some committed patches in 7 and later
which reduced the amount of memory so going with at least 7-STABLE would
be better.

It would of course be even better to go with 8-STABLE or wait for 9.0
which should be released in several months and then either use UFS-SUJ
or ZFS.

___
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: Kernel panics?

2010-11-04 Thread Ivan Voras
On 11/04/10 12:35, Richard Morse wrote:
 Hi! I'm having a problem with an 8.1-RELEASE #0 amd64 machine.

Looks like too many different problem all at once. Almost certainly
there's a hardware problem somewhere. Try running memtest86


 Three weeks ago, it had a kernel panic, which I was too tired to properly 
 capture. On reboot, I forgot to run fsck in single user mode; about 12-14 
 hours later it crashed complaining that the background file system checks 
 were inconsistent.
 
 A day later it crashed with a server double fault; I was unfortunately on 
 the way to a meeting, along with all of my technical co-workers, so I wasn't 
 able to see the screen, and it was being reported by someone who was poorly 
 equipped to give a good report.
 
 A few days later, it had hung (it didn't respond to input), and I needed to 
 hard restart.
 
 A few days later, the same thing happened.
 
 Last weekend, on Friday evening it complained about the hard disk controller 
 disappearing (at least, as far back as I was able to go in the screen buffer).
 
 Saturday night, I finally got a kernel panic that I captured; after this, I 
 turned on core dumps.
 
 However, last night, it crashed again, and tried to write out a core, but 
 didn't succeed.
 
 The kernel panic from Saturday night was:
 
 panic: unknown cluster size
 cpuid = 0
 Uptime: 1h49m37s
 Cannot dump. Device not defined or unavailable.
 aac0: shutting down controller...
 
 Fatal trap 12: page fault while in kernel mode
 cpuid = 9; apic id = 10
 fault virtual address = 0x1d
 fault code= supervisor write data, page not present
 ...
 current process   = 12 (irq256: em0)
 trap number   = 12
 done
 
 Last night's:
 
 Fatal trap 12: page fault while in kernel mode
 cpuid = 9; apic id = 11
 fault virtual address = 0x8098f90e
 fault code= supervisor read data, page not present
 ...
 current process   = 97530 (taper)
 trap number   = 12
 panic: page fault
 cpuid = 9
 Uptime: 3d21h24m57s
 Physical memory: 12211MB
 Dumping 2942MB:
 
 Note that there was nothing after the Dumping 2942MB:; the cursor was 
 sitting just after the colon. On reboot, it did not find any cores to save to 
 disk (I did have to boot single user and fsck -y; is it possible that this 
 interfered with the core dump? if so, how do I fix this?).
 
 I tried, this morning, to run memtest86, however both 3.5 and 3.4 just give 
 loud annoying beeps, not displaying anything on screen (not even a menu; once 
 I get past the boot loader from the memtest86 cd, it just starts beeping).
 
 Any suggestions?
 
 Thanks,
 Ricky
 
 
 The information in this e-mail is intended only for the person to whom it is
 addressed. If you believe this e-mail was sent to you in error and the e-mail
 contains patient information, please contact the Partners Compliance HelpLine 
 at
 http://www.partners.org/complianceline . If the e-mail was sent to you in 
 error
 but does not contain patient information, please contact the sender and 
 properly
 dispose of the e-mail.
 
 ___
 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: Android usb tethering

2010-11-01 Thread Ivan Voras

On 11/01/10 15:42, Mark Atkinson wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 11/01/2010 03:54, freebsd-questi...@herveybayaustralia.com.au wrote:


Anyone tried the data tethering feature on the Android phones?


I have, it works.  Attaching via usb in the proper mode should attach
the umodem device which you can then use the published serial device
with the userland ppp(8).   Defining the correct section name for
tethering can be a little daunting however.

Google for things like 'telstra GSM ppp.conf' or such and then you just
have to convert any linux scripts you find into freebsd ppp.conf.   If
you're lucky you may find freebsd specific configurations.  Or, someone
on the list may have one to share.


I believe it depends on the phone manufacturer. HTC phones apparently 
use some kind of Ethernet over USB which is well supported under 
Windows and Linux but not FreeBSD:


Nov  1 23:20:52 betelgeuse kernel: (da4:umass-sim1:1:0:0): lost device
Nov  1 23:20:52 betelgeuse kernel: (da4:umass-sim1:1:0:0): removing 
device entry
Nov  1 23:20:53 betelgeuse root: Unknown USB device: vendor 0x0bb4 
product 0x0ffe bus uhub5

Nov  1 23:20:53 betelgeuse kernel: ugen4.4: HTC at usbus4

In the above messages, the kernel detaches the storage device (umass) 
and tries to attach the new device, which doesn't have a driver so it's 
attached as ugen - generic USB.



___
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: fsync: Linux vs FreeBSD

2010-10-26 Thread Ivan Voras

On 10/26/10 21:17, Chuck Swiger wrote:

On Oct 26, 2010, at 11:33 AM, Marc G. Fournier wrote:

Someone recently posted on one of the PostgreSQL Blogs concerning fsync on 
Linux/Windows/Mac OS X, but failed to make any comments on any of the BSDs ... 
the post has to do with how fsync works on the various OSs, and am curious as 
to whether or not this is something that also afflicts us:

http://rhaas.blogspot.com/2010/10/wal-reliability.html


 From reading our man page, I see no warnings similar to what the other OSs

have, specifically:

Mac OS X: For applications that require tighter guarantees about the
  integrity of their data, Mac OS X provides the F_FULLFSYNC fcntl

Linux: If the underlying hard disk has write caching enabled, then the
   data may not really be on permanent storage when fsync() /
   fdatasync() return.

So, do we hide the fact, or are, in fact, not afflicted by this?



Whether the data actually gets written and the on-disk cache itself flushed 
seems to depend on a sysctl called hw.ata.wc for FreeBSD or the dkctl setting 
in NetBSD; write-caching seems to always default to on because otherwise people 
scream bloody murder about the factor of ten reduction in write performance 
with it off.  Further, by default (ie, FFSv2 with soft updates), data changes 
are synced out when you do an fsync(), but metadata changes are done 
asynchronously-- which is exactly what MacOS X does.

In other words, if you have write-caching on, no effort is made to invoke ATA_FLUSHCACHE 
or SCSI SYNCHRONIZE CACHE to make sure that your disk has actually written 
the bits to permanent storage.


To clarify: all this is in case write-caching happens on disk drives or 
on disk controllers.


The common way to deploy servers for a long time now is to have a disk 
controller with RAID capabilities and its own RAM cache which is backed 
by a battery or a capacitor. This controller in turn switches on-drive 
write caches off. All of the RAID controllers I've seen have a toggle 
for this last part (on-drive write caches) and it was always turned off 
by default (though it doesn't hurt to check).


To emulate this with desktop drives, as cswiger said, hw.ata.wc should 
be turned off, with the expected influence on drive performance.


All this is valid for UFS. ZFS on the other hand *should* use BIO_FLUSH 
where appropriate, so it should be safer with desktop drives. OTOH ZFS 
is so complex that it's hard to say if an error occurs what has caused 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: EVFILT_VNODE doesn't scale to large directory trees?

2010-10-25 Thread Ivan Voras
On 10/25/10 03:05, Kenton Varda wrote:
 Hi all,
 
 I am trying to write some code which monitors a possibly-large directory
 tree for changes.  Specifically, it's a build system, and I want it to
 automatically start rebuilding whenever I modify a source file.
 
 So far the approach I've taken is to use EVFILT_VNODE to watch every file
 and directory in the tree.  This seems to work OK so far, but it worries me
 that I have to open() every single file.  When I ran the same code on
 Darwin, it promptly hit the open file descriptor limit, and I'm worried that
 FreeBSD will do the same on larger code trees.
 
 Is there any better way to accomplish this?  Hate to say it, but Linux's
 inotify() seems more scalable here.  From what I can tell from the docs, it
 doesn't require opening the watched files and it will even watch all files
 in a directory with one call.

Short answer: no.

Long answer: There should be. There were past discussions on writing
such a facility to e.g. receive events for all files on per-mountpoint
basis (which you could filter...), but we're not there yet.


___
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: Jail question

2010-10-18 Thread Ivan Voras

On 10/14/10 18:20, Matthew Law wrote:

I have a single box on which I would like to run openvpn, smtp (postfix,
dspam, greylist, clamav), imap (dovecot) apache22 and bind.  This box also
acts as a network gateway so it would give an attacker carte blanche to
the internal nets if it was compromised, which makes me nervous.  The plan
is to run openvpn as the only unjailed service and the rest of the
services in a single jail or their own jails.

I have never touched jails before and I'm a bit unsure of the best way to
go.  I realise that I can jail a service or a copy of the whole system
(service would be preferable for space efficiency) but I am unclear on how
to deal with IP addresses in jailed environments and if I should create
individual jails or a single jail for all services.  At the moment I am
leaning toward a single system jail for everything so I can keep the space
in which openvpn runs as uncluttered as possible and also have a single
postgres instance shared by the other services.  Basically, if any of the
public services in the jail are compromised I would like to make it very
hard for the attacker to see the internal network.


Since jails can do many things there are many helper utilities that 
can do much to simplify the process. If you can hack python, you can, 
for example, modify my script at 
http://ivoras.sharanet.org/stuff/mkjails.py which I've used to create a 
thousand very light-weight jails which are started and managed using 
only standard FreeBSD tools.


In any case, read rc.conf(5) man page for the jail_* settings.


If I use this scheme must I use separate public IPs for openvpn and the
services jail or is it possible to use a single IP or some NAT/PAT scheme?
-this box currently has 4 x NICs split into 2x lagg interfaces in failover
mode (one public, one private), if that makes any difference


This is the more complex question; I think that everything which needs 
direct access to the NIC (i.e. BPF, DHCP, IPFW, etc.) will need to be 
run on the host system. TCP services will work inside jails without 
problems, but with jails it's almost the same as if they were on another 
system. If you do use NAT you will have to configure it on the host. 
Instead, you can also use TCP proxies (like bsdproxy). It's up to you 
how much complexity do you want in your system, but for simplicity I 
would set up a single outward-facing IP address and then proxy TCP 
services where I need them.




___
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: Troubles on SATA drives ZFS

2010-10-12 Thread Ivan Voras

On 10/11/10 21:22, Alejandro Imass wrote:


1) Would damage to the 2 disks cause damae on the other 2?


Not likely but in your situation it might damage the controller, in 
which nothing you do to the drives will help. In the worst case, the 
controller then might in turn damage the drives.



___
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: Troubles on SATA drives ZFS

2010-10-12 Thread Ivan Voras
On 12 October 2010 15:30, Alejandro Imass a...@p2ee.org wrote:
 On Tue, Oct 12, 2010 at 5:59 AM, Ivan Voras ivo...@freebsd.org wrote:
 On 10/11/10 21:22, Alejandro Imass wrote:

 1) Would damage to the 2 disks cause damae on the other 2?

 Not likely but in your situation it might damage the controller, in which
 nothing you do to the drives will help. In the worst case, the controller
 then might in turn damage the drives.


 I was under the impression that SATA was not that sensible to hot
 unplugging, in fact I thought that SATA supports hot pluging, so by
 yanking the wires out it should not have damaged the disks or the
 controller IMO. But you might be correct because I use only cheap HW
 ;-)

The SATA standard does support hot-plugging but it's optional if the
hardware (controllers and the drives) support it 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


Re: FreeBSD 8.x and RAID Controllers from Areca and HP

2010-09-28 Thread Ivan Voras

On 09/28/10 10:02, Maechler Philippe wrote:

Hello all,

I hope someone can help me installing FreeBSD 8.x with a RAID Controller
from HP or Areca.



and then the machine freezes. This happens on FreeBSD 7.3 - 8.1 (AMD64
and i386).
On FreeBSD 7.2 i386 there is no problem with the areca controller.

Google told me to disable the firewire and usb ports in the bios, we did
that without any improvments.


Try asking on hardware@ freebsd.org or stable@ freebsd.org if you don't 
get any replies here.


___
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: Need bsd make for AIX

2010-09-17 Thread Ivan Voras

On 09/17/10 05:14, Chuck Robey wrote:

On 09/16/10 20:34, Ivan Voras wrote:

On 09/16/10 08:58, srividy...@tcs.com wrote:

Hi
Is there any BSD make versions available for AIX platform?
We require the make utility of BSD to compile few source programs.

Is there any make utility compatible with AIX? Could you please give us
the URL where we can get the same?


FreeBSD's make is an integral part of the FreeBSD file system. It is not
created to be compatible across systems, but it is also not created to
prevent this kind of porting.


Wow. I disagree. It's been modified over the years to depend heavily on
a set of libraries that are available nowhere else but FreeBSD. This was


The fact that it can be compiled with gcc '-DDEFSHELLNAME=sh' -o make 
*.c indicates that it in fact doesn't use any libraries except for libc...



done (from what I can see) in the name of elegance ... because the
actual functions ARE available elsewhere, but a bunch of modifications
need to be added, no possible way is it going to compile anywhere else.


Oh you're exaggerating, it's not that hard. I've made the attached patch 
in about 20 minutes, and most of it is including the small lc.h ad-hoc 
Linux compatibility header.


I don't claim the patched make will work perfectly but it works for 
simple cases :)


diff -u ../make/arch.c ./arch.c
--- ../make/arch.c  2010-09-17 12:56:04.0 +0200
+++ ./arch.c2010-09-17 12:28:59.0 +0200
@@ -38,6 +38,7 @@
  * @(#)arch.c  8.2 (Berkeley) 1/2/94
  */
 
+#include lc.h
 #include sys/cdefs.h
 __FBSDID($FreeBSD$);
 
diff -u ../make/buf.c ./buf.c
--- ../make/buf.c   2010-09-17 12:56:04.0 +0200
+++ ./buf.c 2010-09-17 12:30:01.0 +0200
@@ -40,6 +40,7 @@
  * @(#)buf.c   8.1 (Berkeley) 6/6/93
  */
 
+#include lc.h
 #include sys/cdefs.h
 __FBSDID($FreeBSD$);
 
diff -u ../make/cond.c ./cond.c
--- ../make/cond.c  2010-09-17 12:56:04.0 +0200
+++ ./cond.c2010-09-17 12:30:25.0 +0200
@@ -39,6 +39,7 @@
  * @(#)cond.c  8.2 (Berkeley) 1/2/94
  */
 
+#include lc.h
 #include sys/cdefs.h
 __FBSDID($FreeBSD$);
 
diff -u ../make/dir.c ./dir.c
--- ../make/dir.c   2010-09-17 12:56:04.0 +0200
+++ ./dir.c 2010-09-17 12:30:56.0 +0200
@@ -39,6 +39,7 @@
  * @(#)dir.c   8.2 (Berkeley) 1/2/94
  */
 
+#include lc.h
 #include sys/cdefs.h
 __FBSDID($FreeBSD$);
 
diff -u ../make/for.c ./for.c
--- ../make/for.c   2010-09-17 12:56:04.0 +0200
+++ ./for.c 2010-09-17 12:31:32.0 +0200
@@ -32,6 +32,7 @@
  * @(#)for.c   8.1 (Berkeley) 6/6/93
  */
 
+#include lc.h
 #include sys/cdefs.h
 __FBSDID($FreeBSD$);
 
diff -u ../make/hash.c ./hash.c
--- ../make/hash.c  2010-09-17 12:56:04.0 +0200
+++ ./hash.c2010-09-17 12:37:44.0 +0200
@@ -39,6 +39,7 @@
  * @(#)hash.c  8.1 (Berkeley) 6/6/93
  */
 
+#include lc.h
 #include sys/cdefs.h
 __FBSDID($FreeBSD$);
 
diff -u ../make/hash_tables.c ./hash_tables.c
--- ../make/hash_tables.c   2010-09-17 12:56:04.0 +0200
+++ ./hash_tables.c 2010-09-17 12:37:58.0 +0200
@@ -4,6 +4,7 @@
  * auto-generated from FreeBSD: src/usr.bin/make/parse.c,v 1.114 2008/03/12 
14:50:58 obrien Exp 
  * DO NOT EDIT
  */
+#include lc.h
 #include sys/types.h
 
 #include hash_tables.h
diff -u ../make/job.c ./job.c
--- ../make/job.c   2010-09-17 12:56:04.0 +0200
+++ ./job.c 2010-09-17 12:38:12.0 +0200
@@ -39,6 +39,7 @@
  * @(#)job.c   8.2 (Berkeley) 3/19/94
  */
 
+#include lc.h
 #include sys/cdefs.h
 __FBSDID($FreeBSD$);
 
Only in .: lc.h
Only in .: .lc.h.swp
diff -u ../make/lst.c ./lst.c
--- ../make/lst.c   2010-09-17 12:56:04.0 +0200
+++ ./lst.c 2010-09-17 12:38:23.0 +0200
@@ -36,7 +36,7 @@
  * lst.c --
  * Routines to maintain a linked list of objects.
  */
-
+#include lc.h
 #include stdio.h
 #include stdlib.h
 
diff -u ../make/main.c ./main.c
--- ../make/main.c  2010-09-17 12:56:04.0 +0200
+++ ./main.c2010-09-17 12:55:03.0 +0200
@@ -37,6 +37,8 @@
  *
  * @(#)main.c  8.3 (Berkeley) 3/19/94
  */
+#include lc.h
+#undef __unused
 
 #ifndef lint
 #if 0
@@ -372,7 +374,7 @@
 
 rearg:
optind = 1; /* since we're called more than once */
-   optreset = 1;
+/* optreset = 1;*/
 #define OPTFLAGS ABC:D:d:E:ef:I:ij:km:nPpQqrSstV:vXx:
for (;;) {
if ((optind  argc)  strcmp(argv[optind], --) == 0) {
@@ -529,7 +531,7 @@
MFLAGS_append(-q, NULL);
break;
case 'r':
-   noBuiltins = TRUE;
+   noBuiltins = !noBuiltins;
MFLAGS_append(-r, NULL);
break;
case 'S':
@@ -892,7 +894,7 @@
 * Initialize file global variables.
 */
expandVars = TRUE;
-   noBuiltins = FALSE; /* Read the built-in rules */
+   noBuiltins = TRUE;  /* Read the built-in rules

Re: Need bsd make for AIX

2010-09-17 Thread Ivan Voras

On 09/17/10 12:58, Ivan Voras wrote:


I don't claim the patched make will work perfectly but it works for
simple cases :)



Also archived here (with the lc.h missed in previous version):
http://people.freebsd.org/~ivoras/diffs/make-lc.patch


___
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: Need bsd make for AIX

2010-09-16 Thread Ivan Voras
On 09/16/10 08:58, srividy...@tcs.com wrote:
 Hi
 Is there any BSD make versions available for AIX platform?
 We require the make utility of BSD to compile few source programs.
 
 Is there any make utility compatible with AIX?  Could you please give us 
 the URL where we can get the same?

FreeBSD's make is an integral part of the FreeBSD file system. It is not
created to be compatible across systems, but it is also not created to
prevent this kind of porting.

With a command like:

svn co http://svn.freebsd.org/base/head/usr.bin/make

you can fetch the sources for the BSD make. If you have a gcc compiler
installed you can compile the BSD make with a command like:

gcc '-DDEFSHELLNAME=sh' -o make *.c

Note that the Makefile included with BSD make is in BSD make format so
you need to bootstrap it like in the above command; the quotes around -D
are needed.

There is absolutely no guarantee this will work on your system.

___
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: Need bsd make for AIX

2010-09-16 Thread Ivan Voras
On 09/17/10 02:34, Ivan Voras wrote:

 FreeBSD's make is an integral part of the FreeBSD file system. It is not

heh... *operating* system :)


___
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: Any way to force AHCI mode on ICH8?

2010-09-09 Thread Ivan Voras

On 09/09/10 02:10, Morgan Wesström wrote:

I run FreeBSD 8.1 on an old Asus P5B-VM motherboard with ICH8. Its AMI
BIOS lacks an option to enable AHCI mode. Intel's datasheet for the ICH8
family specifies that this feature exists on the ICH8, and the option is
available in the BIOS for the identical (apart from form factor) P5B
motherboard.

http://www.intel.com/Assets/PDF/datasheet/313056.pdf

I've contacted Asus support for an updated BIOS but I don't have much
hope I will ever see one. Would it be possible to patch the FreeBSD
kernel to enable AHCI mode somehow during boot?


You mean except adding:

ahci_load=YES

to /boot/loader.conf ?

___
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: Weird Linux - FreeBSD/ZFS NFSv4 interoperability problem

2010-09-03 Thread Ivan Voras

On 09/02/10 21:25, David Brodbeck wrote:

While doing some interoperability testing between Linux and FreeBSD, I
came up with this unusual issue.  I could use some help figuring out
if this is a bug, and if so, where to file it.  Here's the scenario:

- FreeBSD 8.1-RELEASE server, sharing a ZFS filesystem via NFSv4.


I think that this is the beginning of your problems - even the developer 
who is working on NFSv4 says it's too experimental to be used in real world.



- Linux client (I've tested with RHEL 5.4 and Debian Lenny) mounting
said filesystem with NFSv4.
- A user on the Linux client does a Subversion checkout onto the
mounted filesystem.

At the end of the checkout, access to the filesystem hangs.  nfsd on
the FreeBSD server and rpciod on the Linux client seem to be in a
tight loop, and there's lots of network traffic between them.  I can
reproduce this every time.

The problem does not occur if the backing filesystem is UFS instead of
ZFS, if NFSv3 is used instead of NFSv4, or if the client is FreeBSD
instead of Linux.


... but you may have stumbled on something specific. I recommend you 
repeat this same post (and others you have on the similar topic) on the 
freebsd-fs at freebsd.org mailing list, the developer (Rick Macklem) 
reads 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: Speeding up (caching?) shared libraries loading

2010-08-31 Thread Ivan Voras

On 08/31/10 14:44, Andrea Venturoli wrote:

Hello.

Suppose I have an executable which I need to invoke repeatedly (e.g. to
run tests in a makefile).
This executables spend most of its time loading (rather than
processing), due to the need of several huge shared libraries.

I'd welcome an hint on how to speed this up.
Possible thing would be to cache these shared libraries (and possibily
the executable too) in memory, so that any invocation after the first is
faster.
Is this possible at all?


Normal file system caching will cover this case (unless you have very 
little memory available). The only other thing you might do to speed 
this up is prebinding / prelinking but if you are often rebuilding the 
project it might not 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: Can I know how many bytes were allocated by malloc in my process?

2010-08-30 Thread Ivan Voras

On 08/30/10 11:59, Yuri wrote:

google-perftools malloc library has such feature.
But does FreeBSD system allocator have it?


Maybe getrusage(2) can help you, though it also counts non-malloc() 
allocations.



___
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: IBM server SAS controller support?

2010-08-30 Thread Ivan Voras

On 08/27/10 16:23, Baldur Gislason wrote:

I have an IBM 7945 server with an LSI Logic ServeRAID (MegaRAID) M1015 
controller
and I'm wondering if there's any way to install FreeBSD on this box?


So you have tried and failed?

There are lists of devices here:

http://man.freebsd.org/mfi
http://man.freebsd.org/amr

but they are incomplete. FWIW, I've successfuly used IBM x3650 M3 with 
the controller which identifies itself as:


mfi0: LSI MegaSAS Gen2 port 0x1000-0x10ff mem 
0x9f94-0x9f943fff,0x9f90-0x9f93 irq 16 at device 0.0 on pci1

mfi0: Megaraid SAS driver Ver 3.00
mfi0: 498 (boot + 3s/0x0020/info) - Firmware initialization started (PCI 
ID 0079/1000/03b2/1014)

mfi0: 499 (boot + 3s/0x0020/info) - Firmware version 2.0.03-0689


___
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: What made my FreeBSD server freeze?

2010-08-30 Thread Ivan Voras

On 08/30/10 13:24, pe...@vfemail.net wrote:


When I awoke this morning my FreeBSD box was frozen -- completely unresponsive 
at the console -- and displayed these messages on the console:

  ad0: READ command timeout tag=0 serv=0 -resetting
  ata0: resetting devices
  ad0: removed from configuration
  done
  Aug 30 03:09:25 abc sm-mta 88427 xyz SYSERR(root): collect: Cannot write: 
./xyz (fsync uid=o, gid=25): Device not configured

The box has been in continuous operation for years, and I've never seen this 
behavior before.

I rebooted the machine this morning and, thank God, it came back to life.

Is this an early warning that the hard drive is failing and should be replaced 
this week?


Very probably!


Is there anything else I should explore or do at this time?


If not the drive, check drive cables, the power supply and 
motherboard/CPU overheating.



___
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: memory leak?

2010-08-23 Thread Ivan Voras
On 08/23/10 11:50, n dhert wrote:
 After a reboot of my FreeBSD 8.0-p4 system
 a vmstat shows:
 Mon Aug 23 08:40:00 CEST 2010
  procs  memory  pagedisks faults cpu
  r b w avmfre   flt  re  pi  pofr  sr da0 pa0   in   sy   cs us
 sy id
  1 1 0   1515M  7118M   816   5   5   0   726   0   0   0  138 2376 1740  1
 2 97
 My system had been allocated 8 Gb memory in a Vmware ESXi4 virtual machine.
 avm = active virtual pages,  fre = size of free list
 2525M + 7118M is 9600M  is this normal? (more than 8 Gb..)

See here, on a physical machine with 4 GB RAM:

 procs  memory  pagedisks faults cpu
 r b w avmfre   flt  re  pi  pofr  sr ad0 cd0   in   sy   cs
us sy id
 1 0 0   5571M  1254M30   0   0   029   0   0   08  519  522
 0  0 100

We have 5571+1254=6825 MB.

The catch is in the description - active *virtual* pages belonging to
processes - they do not have to correspond to physical RAM.

 six days ago is was:

  3 1 0   2446M  1552M   628   0   0   0   621   6   0   0   30  939  572  1

  5 22 0   2260M   816M   489   0   0   0   478   2   0   0   27  957  580

 avm + free adds up to only 3 Gb.

 Where is the rest of the memory ??

There are a lot other uses for memory. Try running top a couple of
time when you seem to detect the leak and add together the various
categories of memory.

 Is there a memory leak, how to find what causes the memory leak?

If indeed there is, which is not probable, you first need to discover is
it in a userland program or in kernel. If in kernel, use vmstat -m to
track usage over time and see if some category increases when it shouldn't.

Also, since you are running vmware, maybe you should try running
emulators/open-vm-tools and its vmmemctl driver - it could help if your
host is running out of memory.

___
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.1-rc2 journal overflow error

2010-07-19 Thread Ivan Voras
On 07/19/10 15:16, FRLinux wrote:
 Hello, I am using a hefty server with a single SSD drive as the main
 drive (Corsair CMFSSD-64D1). It worked nicely until today where I got
 a journal overflow error, i took a screenshot here:
 http://picasaweb.google.fr/frlinux/Computers#5495597160219915298

There could be several reasons for this specific panic but as a general
solution you will have to increase your journal size. For start, try
doubling 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: slapd crash the HP proliant DL360 at 8.0

2010-06-28 Thread Ivan Voras
On 06/28/10 11:56, Frank Bonnet wrote:
 Argh !!!
 
 I upgraded slapd to 2.4.22 and it does not start anymore !!!
 
 some symbol cannot be found anymore
 
 I had to revert to 2.3.4x to have a working slapd !!!
 
 What's wrong with 2.4.22 folks ?

PEBKAC.

How did you upgrade it (and more importantly - why, if it was working
fine and was critical to you)?

In the event of a crash you may have only needed to repair OpenLDAP's
database (if using BDB, with db_recover) and continue.

___
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: php help, please....

2010-06-14 Thread Ivan Voras
On 06/12/10 20:47, Gary Kline wrote:

  but it
  seems strange that php would simply =change= out from under
  me.  well, so to speak.  can you suggest any php list that i
  should sub to?  

Unfortunately they do it all the time - every sub-release and especially
major releases can be relied upon to have subtle changes.

Client-side PHP code bit-rots due to this on its own, with nothing being
changed anywhere but in the interpreter.

___
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: real time files mirroring ?

2010-05-20 Thread Ivan Voras
On 20 May 2010 16:53, Brandon Gooch jamesbrandongo...@gmail.com wrote:
 On Thu, May 20, 2010 at 9:12 AM, Frank Bonnet f.bon...@esiee.fr wrote:
 Hello

 I'm searching for a software that could perform some kind of real time
 mirroring between two (or more) freebsd servers.

 My meaning is to keep up to date some files ( flat and db maps ) used by
 Postfix on our MX servers and propagate every change of one or more
 files to all the others.

 Back in 2008, Ivan Voras wrote a rather simple daemon that fits this need:

 http://blogs.freebsdish.org/ivoras/2008/06/08/weekend-hack-adfsd-a-kqueue-assisted-rsync-tool/

 http://ivoras.sharanet.org/stuff/adfs.tgz

 I'm not sure about the status of the code (in regard to compiling and
 working with 8.x or HEAD), but it's worth a shot. I remember trying it
 out last year and it worked well for the small-ish project I had
 going.

 Ivan may have an informed comment or two to provide as well...

I am still interested in the subject and hope to one day find enough
free time to actually create something usable. Adfs was an experiment
and it showed that it couldn't be done the way I wanted it.

It was supposed to be rsync assisted by kqueue file events to detect
changes but, among other things, change detection isn't a very
demanding part of rsyncing files. In short, rsync in cron would do
much better.
___
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: Very simple file sharing between FreeBSD server and windows client ?

2010-05-10 Thread Ivan Voras

On 05/10/10 14:35, Frank Bonnet wrote:

Hello

Is there a simple software to share files between a FreeBSD server and a
windows client other than Samba which is a bit overkill for my needings,

I just want to share a directory (and subdirectories) of my server with
ONE Windows client, to facilitate some files exchanges between two users.


If by share you mean use a network file system than there is no other 
way then to use - a network file system, with all its complexity.


Otherwise, scp (winscp), ftp and others can be used to exchange single 
files.


___
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: Syncache problem in FreeBSD 7.3-PRERELEASE

2010-05-07 Thread Ivan Voras

On 05/07/10 07:40, Zhenkai Zhu wrote:

Hi,

I'm experiencing some problem of syncache (probably).

We have a NFS server which exports everyone's home directory, and I'm
developing my Qualnet code on another machine (NFS client) under my home
directory. However, when I make my code, linking takes extremely long
time (it takes more than 5 minutes while on my laptop it only takes 15
seconds). I examed the /var/log/messages on the NFS server and it was
like this:

May 6 19:51:49 raptors kernel: TCP: [131.179.96.24]:985 to
[131.179.96.25]:2049 tcpflags 0x10ACK; syncache_expand: Segment failed
SYNCOOKIE authentication, segment rejected (probably spoofed)

The above message appears every time I make my code ( and only when I
make my code). I turned on linux binary compatiblity on the NFS client
because Qualnet needs to be run in that mode.

Here are some more details: both the NFS server and client are amd64
machines. The server has 8 cpus and the client has 16 cpus.

Any one can help me out? Thanks!!!


What does your net.inet.tcp.syncache.count show?

Actually, sending the output of sysctl net.inet.tcp | grep syn would 
probably 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: User cpu time VS system cpu time

2010-05-06 Thread Ivan Voras

On 05/06/10 13:33, cronfy wrote:

Hello,


I want to understand difference between user CPU time and system CPU
time in system accounting.

But keep in mind that kernel time is a broad category - while IO time in
itself does not count as CPU time, file system operations for example do,
because they really can be CPU intensive.


Ivan, thanks for the great explanation.

I think that I can measure user filesystem usage with sa - it reports
number of IO operations per user/command. In which other cases kernel
time is used instead of user time for a process? I do not mean all of
them - just that usually occur in practice.


Everything the kernel does when requested by the user is counted as 
kernel time - file system access, network access, getpid(), 
gettimeofday(), process scheduling, memory management, etc.



I've noticed that there are moments when system load in top for system
time is very high (60-80% while user load is 15-25%, this produces
very high LA also). All processes that were run at this time show high
kernel time usage, although they usually do not. System is getting
back to normal after Apache restart (I think this is related to Apache
shared memory somehow, but not sure).


As I told you before - monitor the top line for the processes you 
suspect and you will get a fairly good idea what they are doing. Look at 
the STATE column.


When you are looking at per-process statistics, the system time is also 
accounted. For example, if a process takes 50% of a CPU, it is possible 
that it takes 25% in userspace and 25% in kernel (the reverse is not 
true - kernel can take system CPU time without it being accounted on 
behalf of processes).



This makes me suspect that system time in sa can not be relied on
while measuring user system usage, because it notably varies under
some circumstances for same operations. Am I wrong?


Everything can be accounted for by enough statistics :)

___
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: User cpu time VS system cpu time

2010-05-04 Thread Ivan Voras

On 05/03/10 18:00, cronfy wrote:

Hello,

I want to understand difference between user CPU time and system CPU
time in system accounting.

When some process uses many system CPU, does it really mean that
process prouduces heavy load on server and takes up resources that
could be used by other tasks instead? Or it only means that this
process performs many waits for, say, I/O operations?


In contrast to Linux (luckily), IO wait in itself in FreeBSD does not 
count as CPU time. Linux's iowait state is supposedly defined as idle 
but having outstanding IO requests but judging from performance curves 
in some cases I think some polling is involved.


System time is time spent in the kernel - it is practically always the 
result of issuing kernel syscalls from userland processes. Whether it 
influences the overall performance of the system depends on what the 
processes are doing - if the machine has multiple CPU cores and the 
syscalls exercise those parts of the system that are parallelized then 
no, your process would not influence the rest of the system anymore than 
it would by using user time.


But keep in mind that kernel time is a broad category - while IO time 
in itself does not count as CPU time, file system operations for example 
do, because they really can be CPU intensive. And by using the file 
system in certain ways, you really can block other processes from using 
it with the performance they would get otherwise. You can find out at a 
glance approximately what the process is doing simply by monitoring the 
top line for the process.


There is one more thing - if the machine in question is a virtual 
machine, it is normal for the system time to, unfortunately, be 
significantly higher than it would be otherwise because of the nature of 
the emulation.



___
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: KSE (Kernel Supported Threading) support in FreeBSD 8.0

2010-05-04 Thread Ivan Voras

On 05/04/10 00:38, Bruce Cran wrote:

On Monday 03 May 2010 15:52:48 Traiano Welcome wrote:


  Is KSE support still in FreeBSD (8.0 and upward)?


No. KSE support was removed over 2 years ago:
http://lists.freebsd.org/pipermail/freebsd-current/2008-March/084248.html


Note that only KSE was removed; threading is of course fully supported 
by other mechanisms.


___
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: OpenSSL 0.9.8k - 0.9.8l

2010-04-16 Thread Ivan Voras

Tim Gustafson wrote:

Hi,

I run a few web servers with need to be PCI compliant.  Apparently there's a 
problem with OpenSSL 0.9.8k that requires us to upgrade to 0.9.8l for us to 
maintain our compliance level.

I've csup'd to RELENG_8_0 and did a build/install cycle and OpenSSL is still at 
0.9.8k.  Using RELENG_8 isn't really an option for me because the last I 
upgraded to that level, ipfw was broken and I'm not sure that the problem with 
ipfw has been fixed (Luigi tells me that it has, but I haven't had time to test 
it yet).

Is there any movement to patch RELENG_8_0 with OpenSSL 0.9.8l?  Or will I be 
stuck with 0.9.8k until I move to RELENG_8?


Try asking on the freebsd-security@ list.

___
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: NFS Mount FreeBSD 8.0

2010-04-15 Thread Ivan Voras

On 04/15/10 15:35, Grant Peel wrote:

  Hi all,

I have been running a backups storage server for many years on FreeBSD
5.2.1. It has been and still is working fine. Several 6.x machines are
connected to it on the local network.

Since installing FreeBSD 8.0 on two machines (they used to run 6.x and
connected to the nfs mount fine), But with FreeBSD 8, the are no longer
connecting.

ps ax shows (on the client machiens)

551 ?? Is 0:00.00 mount_nfs -t 10 -b -o rw enterprise:/mnt /mnt



Just for an experiment, what does showmount -e nfs_server say on the 
client and the server sides?


___
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: AFS on FreeBSD 8?

2010-04-08 Thread Ivan Voras

Jan Henrik Sylvester wrote:

I tried to get an AFS client on my 8.0-RELEASE (or 8-STABLE) system.

What is the status of AFS on FreeBSD?

Neither OpenAFS nor Arla seem to be in ports.

I found the freebsd-afs mailing list with many posting from 2008/Dec but 
nothing from 2009 or 2010. The port-freebsd list on openafs.org has 
nothing newer, either.


http://wiki.freebsd.org/afs has instructions for Arla, but the build 
fails on 8.0-RELEASE.


http://wiki.freebsd.org/afs-server seems to be even older.

http://wiki.freebsd.org/AFS_using_OpenAFS_%2B_Arla gives me: You are 
not allowed to view this page.


Is there anything more current that I missed?


Try asking on freebsd-fs@ or freebsd-current@ lists.

___
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: random FreeBSD panics

2010-03-28 Thread Ivan Voras

Masoom Shaikh wrote:

Hello List,

I was a happy FreeBSD user, just before I installed FreeBSD8.0-RC1. Since
then, system randomly just freezes, and there is no option other than hard
boot. I guessed this will get solved in 8.0-RELEASE, but it was not :(


I wild shot - did you try disabling superpages?

___
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: random FreeBSD panics

2010-03-28 Thread Ivan Voras
On 28 March 2010 13:18, Masoom Shaikh masoom.sha...@gmail.com wrote:
 On Sun, Mar 28, 2010 at 10:32 AM, Ivan Voras ivo...@freebsd.org wrote:
 Masoom Shaikh wrote:

 Hello List,

 I was a happy FreeBSD user, just before I installed FreeBSD8.0-RC1. Since
 then, system randomly just freezes, and there is no option other than hard
 boot. I guessed this will get solved in 8.0-RELEASE, but it was not :(

 I wild shot - did you try disabling superpages?

 umm, how do I do that ?

Set

vm.pmap.pg_ps_enabled=0

in /boot/loader.conf and reboot. Report back if it helps 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


Re: random FreeBSD panics

2010-03-28 Thread Ivan Voras
On 28 March 2010 16:42, Masoom Shaikh masoom.sha...@gmail.com wrote:

 lets assume if this is h/w problem, then how can other OSes overcome
 this ? is there a way to make FreeBSD ignore this as well, let it
 result in reasonable performance penalty.

Very probably, if only we could detect where the problem is.
Try adding options PRINTF_BUFR_SIZE=128 to the kernel
configuration file if you can, to see if you can get a less mangled
log outout.
___
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: tuning vfs.zfs.vdev.max_pending and solving the issue of ZFS writes choking read IO

2010-03-24 Thread Ivan Voras

Dan Naumov wrote:

Hello

I am having a slight issue (and judging by Google results, similar
issues have been seen by other FreeBSD and Solaris/OpenSolaris users)
with writes choking the read IO. The issue I am having is described
pretty well here:
http://opensolaris.org/jive/thread.jspa?threadID=106453 It seems that
under heavy write load, ZFS likes to aggregate a really huge amount of
data before actually writing it to disks, resulting in sudden 10+
second stalls where it frantically tries to commit everything,
completely choking read IO in the process and sometimes even the
network (with a large enough write to a mirror pool using DD, I can
cause my SSH sessions to drop dead, without actually running out of
RAM. As soon as the data is committed, I can reconnect back).


Mostly a wild guess, but can you test if this patch will help with 
choking your network and ssh:


http://people.freebsd.org/~ivoras/diffs/spa.c.diff

?

You can then fiddle with the vfs.zfs.zio_worker_threads_count loader 
tunable to see if it helps more.


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

2010-03-17 Thread Ivan Voras

Erik Norgaard wrote:

Hi:

I have a dual boot Windows/FreeBSD which I use for work, I just tried 
today to create a virtual machine with vmware on windows to start up the 
installed FreeBSD.


This is possible, I've run such a setup for a long time. But you don't 
say which versions of the products you are using.



This works except for three problems:

- The disk device is renamed, I suppose I can just dublicate the entries 
in the fstab, the devices not found won't be mounted, I'll get an error 
but problem solved?


As others said, use glabel or UFS labels (tunefs -L).


- I can't see the network devices from vmware


You can configure both cards (the real and the emulated one) in 
/etc/rc.conf and the one that's active will be used on boot.



- I can't start xwindows, no monitor is found


You can either use VESA or the VMWare specific driver for the virtual 
machine. Look into /usr/ports/x11-drivers. You will need to keep two 
configurations (xorg.conf) - one for the real and one for the emulated 
video card, and manually switch them.


You don't specifically need it but you can also look at 
/usr/ports/emulators/open-vm-tools.



___
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: Which version of FreeBSD is it?

2010-03-17 Thread Ivan Voras

Антон Клесс wrote:

That is what I suspected for.

What is the most safe way to upgrade it, remembering that this is production
server and I have to keep it working properly?

6.2-RC1 - 6.2 RELEASE - 7.2 RELEASE - 8.0 RELEASE, or somehow in this
style?


Depending on what your requirements for production might be and how 
good know FreeBSD, this is a good enough path. The officially 
recommended one also includes 6.4, but if the configuration is simple 
enough (no fancy partitioning, no software RAID), you could simply skip 
from 6.2RC1 all the way to 8.0 if you know what you are doing.


Regardless, you will need to upgrade all of the installed ports (you can 
do it at the end, no need to upgrade every time).


In any case, don't do it remotely (without access to a physical 
console), this is a long upgrade path for it to simply work the first 
time. As others said, you can recover FreeBSD from practically any 
disaster involving such an upgrade, but it won't necessarily be easy.



___
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: Info on DOS mitigation, kernel configuration for DOS mitigation

2010-03-15 Thread Ivan Voras

Bogdan Webb wrote:

Hello everyone!

First of all i would like to apologize to anyone who finds my appeal a lazy
man's choice, actually it's indeed lazy but it's the best way to get an
answer from a valid source. My problem is a potential DOS/DDOS... i know a
forever talked about issue... i've already searched the freebsd's mailing
lists and found some mitigation techniques, to bad that google ain't that
familiar with FreeBSD, and searchin' for guides is a pain... I recall
finding a mitigation technique that involved bandwidth shaping and other ...
I'm using a FreeBSD 7.2-p7 with ipfw and upon testing the rules in those
guides it alerted me that bandwidth modules weren't included in the bsd's
kernel... Anyway could anyone provide me with a good BSD walk trough for DOS


kldload dummynet, see loader.conf(5)


mitigation and if needed kernel modules and kernel module integration, mabe
other firewall (but with extended howto..) ... (basically anything regarded
to floods)


As you probably guess, a) this is a complex problem because one man's 
DOS is another's regular traffic - it's complex even to detect something 
like that, and b) most of the general solutions are not 
platform-specific but can apply to any operating system, so you can 
learn it from many sources.


First, you need to define what your outgoing network connection is (e.g. 
10 mbit/s) and then see what kinds of tradeoffs you are prepared to 
make to protect yourself.


The general advice is:
- read ipfw(5), especially sections on dummynet and the limit rule
- study software like http://codee.pl/cband.html

___
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 Unicode Support for FreeBSD

2010-03-11 Thread Ivan Voras

On 03/11/10 06:57, Elmar Stellnberger wrote:

Isn`t it time for FreeBSD to fully support Unicode/UTF-8 by now?


Yes! Good of you to say so! Your code and other patches will be 
integrated as soon as you send them.



It is considered to be standard charset by now. XML uses it by default.
If you are working with texts in different languages there is no
alternative to UTF-8.
If you chat with a Linux machine you can easily run into charset
troubles if you are
still using the old iso-8859-1.

By now it is no problem to activate UTF-8 for your console.
However a comprehensive Unicode support would require much more:
i.e. configuring all user packages like KDE for Unicode support and
asserting that also file names (f.i. from ext2 partitions) are interpreted
correctly.

___
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: Continued use of HAL in FreeBSD

2010-03-11 Thread Ivan Voras

On 03/11/10 12:36, Gerard wrote:

I have read that 'HAL' is now considered depreciated and that it is no
longer being actively maintained. I have read many articles describing
its short comings, etc. I even came across this URL:
https://wiki.ubuntu.com/Halsectomy, while not directly connected to
FreeBSD, it is interesting.

I was just wondering what the FreeBSD community is doing in regards to
HAL? Is there any work being done to replace it?


As described in the Ubuntu page, FreeBSD has for a long time had 
mechanisms that do what HAL does, in a different way (see e.g. 
/etc/devd.conf). Unfortunately, it is not popular enough for the various 
application developers (from X.Org, Gnome, KDE) to build specific 
support for these. The one quality HAL has is that, while ugly, it was 
available on many platforms.


___
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: Did something in the hashes change from 6 to 8?

2010-03-03 Thread Ivan Voras

On 03/02/10 16:48, Christian Baer wrote:

Mellow greetings!

On a box running FreeBSD 6.something (probably 6.4) the boot drive died.
I had never bothered to update it to 7 or 8, since I was planning to
build a new computer anyway. Since I hadn't done that yet and I still
needed the work of this machine, I just put in a new drive and installed
8.0.

The deal is that a script I restored from backup doesn't quite work as I
think it should. This is the part that somehow causes problems:

   !/bin/sh
   stty -echo
   read -p Enter passphrase:  passphrase
   stty echo
   main=`echo ${passphrase} | sha256 | cut -c 1-5`
   if [ ${main} != ddfab ]; then
 echo Wrong passphrase!
 exit
   fi

I have typed the password in question about a gazillion times, so I am
pretty sure I got it right. But somehow the 'if' keeps kicking in.

There are two possible reasons for this:

1. I have Alzheimer's.
2. Something about the way sha256(1) and/or digest(1) or one of the
other commands in the script react differenly than before.

Maybe there is another reason that I just don't see?


sha256 and the like cannot change because they are standard algorithms 
and changing them would break a lot of things.


Something else must be the problem. Maybe previous versions got newlines 
in the $passphrase variable or something like that? You will need to 
check output of every step of the script separately.


___
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: [GJournal+Geli] Quick question before installation

2010-02-26 Thread Ivan Voras

On 02/26/10 14:40, Malibu Carl wrote:

Hi list

I am new to all these features and I am about to install FreeBSD8.0 from a
USB Drive.

Before I take any further steps, I would like to ask whether is possible to
perform an installation having an encrypted journaled UFS2 filesystem.

As far as I know, I would say it is possible since gjournal and UFS2 operate
on top of geli.

Is this correct?


Yes, you would have this graph of GEOM classes:
DISK - [possibly some partitions or slices] - GELI - GJOURNAL - UFS

GJOURNAL and UFS need to be together, other classes are not position 
sensitive (within reason).


___
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: Using march=native in /etc/make.conf

2010-02-23 Thread Ivan Voras

On 02/23/10 13:21, RW wrote:

On Tue, 23 Feb 2010 06:41:04 -0500
Carmelcarmel...@hotmail.com  wrote:


I just acquired an older Gateway GT5220 with an AMD 62 Athlon-x2
dual processor. I want to set it up as a sort of test machine. There
does not seem to be a specific setting for 'cpu-type' or 'march' for
this machine. I have notices on some Linux forums that they recommend
using the 'native' keyword; i.e., march=native in the 'make.conf'
file to get the most optimization out of the CPU. Would that be
correct for FreeBSD also? Would it also be appropriate for other CPUs
as well?


FreeBSD sets march and other default settings based on CPUTYPE. It's
probably better to set that.


Yes but the old version of gcc in FreeBSD (4.2) is lacking support for 
modern CPUs. Using march=native is fine.


___
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: Physic to KVM VPS server FREEBSD 8.0 STABLE

2010-02-23 Thread Ivan Voras

On 02/22/10 23:17, Jeronimo Calvo wrote:


How can I get rid of this message, making the system ignore it? Is
not causing any apparent problem apart of the funny flooding...


Try commenting out or modifying the first active line in 
/etc/sylog.conf. If that doesn't work there's probably no simple way to 
do 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: Physic to KVM VPS server FREEBSD 8.0 STABLE

2010-02-22 Thread Ivan Voras

On 02/22/10 16:04, Jeronimo Calvo wrote:

Hi All,

I have managed to migrate a physic old server to a vps, using KVM.


Since you have not explainted what KVM is, I assume it's Linux's 
virtualization?



Dumping the HD with dd to a .img file and assigning the hd under KVM.
Everything looks alright except for a cdrom driver error (as the original
server use to have 2 of them...)


You really need to send all error messages before anyone can comment on 
your problems. It is very unlikely, practically impossible, that the 
simple change in the number of CD/DVD devices causes any error by itself.


The only (not likely) way this could happen is if you automatically 
mount the CD devices from fstab, which is usually not done.



I have recompile the kernel without atapi modules on it. but problem still
persist.


Which points to the theory it is not causing your problems.


There is any option to reconfigure all the hardware without re-installing,
(something like the Repair option for NT systems)?


Unix kernels (recent ones) do not configure the hardware in a 
persistant way like Windows does via the Registry. All hardware is 
autodetected on boot every time. There is nothing to repair here.


You will probably need to send all boot messages received from the 
FreeBSD system during boot, including the error messages, before anyone 
can help you.



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


Re: Making installworld got stuck on SunFire v20z (Freebsd 8.0)

2010-02-20 Thread Ivan Voras

Lucas Wang wrote:

I tried to install Freebsd 8.0 on one of our lab machines, which is
SunFire v20z. After successfully installing it from CD, I followed the
following steps trying to update the kernel and world:

cvsup
make buildworld
make buildkernel
make installkernel
reboot
mergemaster -p
make installworld

Everything was fine until the `make installworld` process run for a while and then got stuck, 
after that it won't respond to Ctrl-C. When I tried to login from another tty, it 
doesn't respond either. I even tried installing the machine from scratch
several times, and at different times it got stuck when installing different libraries. 


I would really appreciate any ideas about why this could happen or how
to solve it.


If you have an AMD CPU of a recent generation, Try adding

vm.pmap.pg_ps_enabled=0

to /boot/loader.conf and rebooting. This disables Superpages - there is 
a CPU bug on some of those.


___
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: Question about Freebsd 7.2 and Zend framework

2010-02-14 Thread Ivan Voras

Robert wrote:

Hello

I have zend framework websites and I was wondering if they work well with 
Freebsd7.2?

Because I hear bad thing about that. Can you tell me about that please?


Zend Framework is PHP? PHP works on FreeBSD, Zend Framework will also 
work. Unless you give more specific questions, you won't get more 
specific answers :)


___
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: Question about Freebsd 7.2 and Zend framework

2010-02-14 Thread Ivan Voras

Jerry wrote:

On Sun, 14 Feb 2010 21:51:48 +0100
Ivan Voras ivo...@freebsd.org articulated:


Robert wrote:

Hello

I have zend framework websites and I was wondering if they work
well with Freebsd7.2?

Because I hear bad thing about that. Can you tell me about that
please?
Zend Framework is PHP? PHP works on FreeBSD, Zend Framework will also 
work. Unless you give more specific questions, you won't get more 
specific answers :)


From the Zend web site:

Zend does not plan any more releases for FreeBSD. We have end of lifed
all of our FreeBSD product line due to lack of demand.


For further details, see the full text:

http://forums.zend.com/viewtopic.php?f=57t=2412


Zend Optimizer is of course a different thing, and yes, it is 
discontinued for 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: Question about Freebsd 7.2 and Zend framework

2010-02-14 Thread Ivan Voras

Samuel Martín Moro wrote:

It's not officialy supported, but it still works.
You have to link some libraries to give them their freebsd 6.2 names.

I had to do it for the servers we sell at work.
It works perfectly.


I'm glad it works, and it is not surprising. It would be easier for a 
company to support FreeBSD with its stable ABI across minor releases 
(and a great deal of userland stability even across major ones) than 
support the myriad of Linuxes out there.




On Sun, Feb 14, 2010 at 11:04 PM, Ivan Voras ivo...@freebsd.org wrote:


Jerry wrote:


On Sun, 14 Feb 2010 21:51:48 +0100
Ivan Voras ivo...@freebsd.org articulated:

 Robert wrote:

Hello

I have zend framework websites and I was wondering if they work
well with Freebsd7.2?

Because I hear bad thing about that. Can you tell me about that
please?


Zend Framework is PHP? PHP works on FreeBSD, Zend Framework will also
work. Unless you give more specific questions, you won't get more specific
answers :)


From the Zend web site:

Zend does not plan any more releases for FreeBSD. We have end of lifed
all of our FreeBSD product line due to lack of demand.


For further details, see the full text:

http://forums.zend.com/viewtopic.php?f=57t=2412


Zend Optimizer is of course a different thing, and yes, it is discontinued
for 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


___
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: The first file loaded is?

2010-02-08 Thread Ivan Voras

On 02/08/10 15:23, Decker, Ross wrote:

I'm just starting my adventure into BSD along with C++.  I know that
this OS gives you all the source files that are used in the OS. What I'm
asking, is what is the name of the first file that is loaded and where
is the source file for it? I want to start with the very first line of
code and see if I can step my way through the entire boot process. There
are many things that I see during boot up that I have no idea what they
are (SMAP Type) that aren't that Google Friendly.

So if anyone knows the names of the source files and their locations for
the boot sequence could you please post them. SUPER thank you's!


Your question is very vague.

The first executed code on an IBM-PC is the boot loader, look at 
sys/boot/boot0.


First executed lines of the kernel are at mi_startup() in 
sys/kern/init_main.c.


First executed lines of userland code are in the init process, in 
sbin/init/init.c.


All paths are relative to /usr/src.

___
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: Helps! Installation hangs for FreeBSD 4.x and 5.1

2010-02-03 Thread Ivan Voras

On 02/03/10 14:22, Paul Shi wrote:

Dear All,

I have encountered  in installing FreeBSD including version 4.3, 4.5, 4.6,
4.8 and 5.1 on my new Dell laptop. Here is some info about the laptop.


These versions of FreeBSD are so old they probably don't support your 
hardware. Try installing FreeBSD 8.0.



___
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: ATT substitute available on freebsd?

2010-02-01 Thread Ivan Voras

On 02/01/10 15:37, Jian Jun Wang wrote:

hi everybody,

I am not quite technical on this, y'know, in windows, we have ATT software
to access company intranet, not sure whether we have substitute here? I
tried to figure out the ways to do that, no luck. I know on linux
distribution they have agnclient. any ideas?


You can expect a reliable answer only if someone has figured out what 
protocol does your software use and has found some alternative.


Offhand, since 
http://info.attbusiness.net/agnclient/index.cfm?fuseaction=home.features 
mentions ipsec, I'd guess IPSec support might be your answer 
(http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ipsec.html).


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


Re: FreeBSD 8.0 amd64 on Nehelem Xeon?

2010-01-23 Thread Ivan Voras
On 23 January 2010 01:14, Nerius Landys nlan...@gmail.com wrote:
 There probably are some. If you are only interested in FreeBSD ports, you
 can make a list of which ports you need and then inspect their Makefiles to
 see if there's a flag disabling them on the amd64 architecture.

 OK thanks.  Could you give me an example of a port that is disabled on
 64 bit and tell me what I will find in the Makefile, so I can look for
 it on other ports?

emulators/wine:

ONLY_FOR_ARCHS= i386

 Additional information for Nehalems is that you should stick to the more
 widely available models - the 4 core+HTT ones. Some of the more exotic ones
 (6 core) might have problems with ULE and topology guesswork.

 The L5506 is a 4 core model without Turbo Boost and without Hyper
 Threading.  It's a power-efficient model.  Think that'll be OK?
 http://ark.intel.com/Product.aspx?id=40712

Yes.
___
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: ISO simple non-forking TCP connection forward/balance tool

2010-01-22 Thread Ivan Voras

Chris Peiffer wrote:


I'm looking for a simple program I can use to forward incoming TCP
connections to several other addr:port pairs. (including one on the
machine itself.) Holding the connections open and passing the data
back and forth until both parties close their ends.

I need a solution that doesn't fork. One way to do it is just fork
ad-hoc netcat pipes with inetd, but I'm trying to avoid the process
overhead.


See net/bsdproxy.

___
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: posting coding bounties, appropriate money amounts?

2010-01-22 Thread Ivan Voras

Dan Naumov wrote:

Hello

I am curious about posting some coding bounties, my current interest
revolves around improving the ZVOL functionality in FreeBSD: fixing
the known ZVOL SWAP reliability/stability problems as well as making
ZVOLs work as a dumpon device (as is already the case in OpenSolaris)
for crash dumps. I am a private individual and not some huge Fortune
100 and while I am not exactly rich, I am willing to put some of my
personal money towards this. I am curious though, what would be the
best way to approach this: directly approaching committer(s) with the
know-how-and-why of the areas involved or through the FreeBSD
Foundation? And how would one go about calculating the appropriate
amount of money for such a thing?


Hi,

This idea (bounties) appear approximately every 6 months and it appears 
there is no better way than contacting the developers directly. AFAIK 
all attempts to conglomerate such an effort have failed. One important 
conclusion is that it cannot go through the Foundation since they cannot 
accept targeted donations.


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


Re: FreeBSD 8.0 amd64 on Nehelem Xeon?

2010-01-22 Thread Ivan Voras

Nerius Landys wrote:

I'm in the process of purchasing a small Nehelem-based server (Xeon
L5506 CPU to be exact).  I will be installing some flavor of FreeBSD
8.0 (either i386 32 bit or amd64 64 bit, to be exact).  I have no
immediate need for a 64 bit server, as none of the processes that I
will be running in the forseeable future will require more than 3 gigs
of memory.  My primary use for the server (which will be in a data
center) will be to run video games servers; the exact game I'll be
running is based on the ioquake3 open source engine, which compiles
and runs fine on FreeBSD, at least 32 bit (have not tried 64 bit
FreeBSD yet, but will get around to that).

My two concerns when making a decision between 32 bit and 64 bit are:

1. Performance.  Will there be any difference in performance between a
64 bit OS and 32 bit on my Nehelem?


Probably not so much that you would notice (i.e. not something the users 
would immediately feel) - for general loads we're talking about low 
percentages in either direction.


But installing a 64-bit OS is more like planning for the future. Maybe 
you will need more RAM for some application and then you will be stuck 
with a 32-bit OS.



2. Availability of software.  Will some software run only on 32 bit?
Only on 64 bit?


There probably are some. If you are only interested in FreeBSD ports, 
you can make a list of which ports you need and then inspect their 
Makefiles to see if there's a flag disabling them on the amd64 architecture.


Another option is that you bring up a 32-bit-only jail and run your 
32-bit applications from it.


Additional information for Nehalems is that you should stick to the more 
widely available models - the 4 core+HTT ones. Some of the more exotic 
ones (6 core) might have problems with ULE and topology guesswork.


http://suckit.blog.hu/2009/10/05/freebsd_8_is_it_worth_to_upgrade

___
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: VirtualBox - does it work for FreeBSD?

2010-01-21 Thread Ivan Voras

On 01/21/10 08:11, Glyn Millington wrote:


Good Morning :-)

A quick question for anyone running VirtualBox on a FreeBSD _host_
machine, with Linux or Windows as a _guest_ OS.


Does it work?


Yes.


at is, do the guest additions work fully for those guests, or are
there limitations such those I experience currently when running
FreeBSD 8 as the guest?  (eg no access to USB, no fullscreen mode).


You are right about USB and probably about fullscreen mode. seamless 
mode works at least for Windows.



Any major problems with a FreeBSDS host and Windows/Linux guest?


You might have problems with using virtual SMP.


___
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: hardening FreeBSD, already using GBDE

2010-01-21 Thread Ivan Voras

On 01/21/10 16:32, Henry Olyer wrote:

For example, the editor I use normally writes to /tmp -- I changed that,
making it slower, but in the event that someone takes my laptop I want to
sleep at night.


If you use a swap-backed memory drive (see 
http://man.freebsd.org/mdconfig) for /tmp and use geli to encrypt the 
swap, there would be no chance of recovery of your temporary files.



I've no problem letting some poor person make a windoz machine out of my
laptop -- but I don't want to share my work, my intellectual property.  (I
do research.)

So, I'm looking for a list of changes to make, hacks really, that will
further tighten up security.


You did not specify anything really exact. You already encrypt your 
on-disk data. Do you always use encrypted network protocols like ssh and 
https? Strong passwords? Adequate physical security? Up-to-date software?



___
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: gmirror+gjournal: spontaneous reboots on excessive disk access

2010-01-18 Thread Ivan Voras

Michael Grimm wrote:

Hi --

I'm running a gmirror raid1 plus gjournal for a year now. This is a
7.2-RELEASE-p6 right now. Both disks are regular ATA and healthy
according smartctl.

Sometimes, not always though, I do experience spontaneous reboots
without leaving any hints in logfiles whenver I beat my disks
excessively. This might be something like:

dd if=/dev/null of=/some/file bs=1M count=4k
plus
parallel disk accesses by mail and news server.

If I omit all parallel disk access those dd's will run to completion
without reboots, always.


What you have is a common symptom of hardware problems - either a weak 
power supply or a broken disk controller. In the first case because two 
drives try to suck power where only one was doing it before and in the 
second reason because the disk controller is too broken to correctly 
handle simultaneous access to two drives. Unfortunately, if you don't 
get any console error messages it is hard to tell which. The power 
supply is usually easier to replace.



___
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


  1   2   3   4   5   >