Re: Clang and ports

2012-02-01 Thread Conrad J. Sabatier
On Thu, 02 Feb 2012 01:41:03 -0600
Joshua Isom  wrote:

> I know that build cluster lists some ports that have problems with 
> clang, but it doesn't say if they're tested or not.  I set up a clang 
> jail to test out things before switching to clang for general use.
> When I try running mencoder to encode a file to x264, it seg faults. 
> Changing options doesn't change anything.  A gdb backtrace points to 
> x264 being the problem.  Everything compiles and installs, but the 
> build's useless.  Is clang ready for ports, or is it only safe for 
> kernel/world?

I've been using clang for ports for a while now, and many ports will
build and run just fine using it.

I've been gradually adding to two lists of exceptions in
my /etc/make.conf -- those that absolutely require the base system GNU
compiler (USE_GCC?=4.2) and those that simply need *some* version of
gcc (for which I use gcc46 from ports (USE_GCC?=4.6).  Before defining
CC and friends to use clang, I first list these exceptions (I use
the ?= operator so these can still be overridden from the command
line).  So, the general format is:

#
# default to using clang for all port builds, with the following exceptions
#

# ports which will only build with the base system GNU compiler (4.2)
#
# the "make index" target also needs this

.if target(index) | \
${.CURDIR:M*/graphics/ImageMagick* } | \
${.CURDIR:M*/graphics/opencv*}
USE_GCC?=4.2
.endif

# ports which need *some* version of the GNU compiler (won't build with clang)
# use the highest version of gcc we have installed from ports (4.6)

.if ${.CURDIR:M*/accessibility/jovie*} | \
${.CURDIR:M*/accessibility/kdeaccessibility4*} | \
${.CURDIR:M*/audio/grip*} | \
${.CURDIR:M*/audio/rosegarden*} | \
${.CURDIR:M*/deskutils/kdepimlibs4*} | \
${.CURDIR:M*/devel/icu*} | \
${.CURDIR:M*/games/kdegames4*} | \
${.CURDIR:M*/graphics/dri*} | \
${.CURDIR:M*/lang/gcc*} | \
${.CURDIR:M*/multimedia/avidemux2*} | \
${.CURDIR:M*/multimedia/kdemultimedia4*} | \
${.CURDIR:M*/multimedia/vlc*} | \
${.CURDIR:M*/multimedia/xbmc*} | \
${.CURDIR:M*/net/kdenetwork4*} | \
${.CURDIR:M*/net/opal3*} | \
${.CURDIR:M*/net-p2p/ktorrent*} | \
${.CURDIR:M*/sysutils/lsof*} | \
${.CURDIR:M*/x11/kde4-baseapps*} | \
${.CURDIR:M*/x11/kdelibs4*} | \
${.CURDIR:M*/x11/kde4-workspace*} | \
${.CURDIR:M*/x11/lxpanel*}
USE_GCC?=4.6+
.endif

#
# use clang unless gcc is explicitly required
#

.if !defined(USE_GCC)
.if !defined(CC) || ${CC} == "cc"
CC=clang
.endif
.if !defined(CXX) || ${CXX} == "c++"
CXX=clang++
.endif
.if !defined(CPP) || ${CPP} == "cpp"
CPP=clang-cpp
.endif
.endif

This, of course, doesn't fully address runtime issues, mainly just
build issues, but the same could be done for those, too.

For what it's worth.  :-)

-- 
Conrad J. Sabatier
conr...@cox.net
___
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: some kind of binary sed(1) command

2012-02-01 Thread Robert Bonomi
> From owner-freebsd-questi...@freebsd.org  Thu Feb  2 00:27:33 2012
> Date: Thu, 2 Feb 2012 07:22:36 +0100
> From: Matthias Apitz 
> To: freebsd-questions@freebsd.org
> Subject: some kind of binary sed(1) command
>
>
> Hello,
>
> I have a normal ASCII file wich has in some places two lines of '*',
> separated by an empty line, i.e.
>
> \n
> *\n
> \n
> *\n
> \n
>
> and I want to substitute the \n between the star lines by \f; the
> 'binary' sed command would just be 
>
> s/*\n\n*/*\n\f*/
>
> which ofc does not work with sed(1) because it is line oriented;
> I could write something in perl, C, awk or whatever language, but I
> would prefer to do it with the normal commands... any ideas?


Use sed.  


*GRIN*





As follows:

  sed -e ' t l
   :l
   /^[*]+$/ {
   N
   !/\n$/ { 
   P
   s/^.*\n//
   t l
   }
   /\n$/ {
   N
   !/\n\n[*]*$/ {
   P
   s/^.*\n//
   P
   s/^.*\n//
   t l
   }
   /\n\n[*]*$/ s/\n\n/\n\f/
   }  
   }'  

Note: "how" this incantation works is left as an excercise for the student. 
  Careful perusal of the FM will provide enlightenment.

Caveat: this will convert:
   {stars}
   {blank}
   {stars}
   {blank}
   {stars}

to;
   {stars}
   {formfeed}
   {stars}
   {blank}
   {stars}

not:
   {stars}
   {formfeed}
   {stars}
   {formfeed}
   {stars}
___
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"


Clang and ports

2012-02-01 Thread Joshua Isom
I know that build cluster lists some ports that have problems with 
clang, but it doesn't say if they're tested or not.  I set up a clang 
jail to test out things before switching to clang for general use.  When 
I try running mencoder to encode a file to x264, it seg faults. 
Changing options doesn't change anything.  A gdb backtrace points to 
x264 being the problem.  Everything compiles and installs, but the 
build's useless.  Is clang ready for ports, or is it only safe for 
kernel/world?

___
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: limit on PV entries

2012-02-01 Thread Conrad J. Sabatier
On Wed, 1 Feb 2012 10:17:21 +0100
n dhert  wrote:

> FreeBSD 8.2-RELEASE
> >From time to time, I get in /var/log/messages
>  kernel: Approaching the limit on PV entries, consider increasing
> either the vm.pmap.shpgperproc or the vm.pmap.pv_entry_max sysctl.
> 
> this started a few weeks ago, never had that before, don't have it on
> other FreeBSD 8.2-RELEASE systems.
> 
> - What does this mean?
> - And how to increase either of the two and to what level ?
> 
> $ sysctl vm.pmap.shpgperproc
> vm.pmap.shpgperproc: 200
> $ sysctl vm.pmap.pv_entry_max
> vm.pmap.pv_entry_max: 3256966

If you want to know the meaning of a particular sysctl, then 'sysctl
-d' is your friend:

# sysctl -d vm.pmap.shpgperproc
vm.pmap.shpgperproc: Page share factor per proc
# sysctl -d vm.pmap.pv_entry_maxvm.pmap.pv_entry_max
vm.pmap.pv_entry_max: Max number of PV entries

(OK, granted, you may wish to know more than is provided by just these
terse single-line entries, but it's a start along the clue path, at
least)

Your mileage may vary, but for me personally, I like to have *some*
sense that I'm approaching this sort of problem in an organized,
methodical manner, rather than simply pulling numbers out of a hat, so
to speak.  So, since computers are based on the binary number system, I
naturally gravitate towards numbers that are nice, neat multiples of
some power of 2, such as 64, 128, 256, 512, 1024, 2048 and so on.

There's really no hard-and-fast rule for determining a good setting for
many of these numeric-type sysctls.  The method I generally use is:

First, try to find a similarly named sysctl within that same hierarchy
that represents the current working value for the sysctl in question,
by lopping off the last element of the sysctl and scanning the results,
using 'sysctl -d' again on the most likely candidate(s) to be sure.
For instance, since we're dealing here with two members of the vm.pmap
family:

# sysctl vm.pmap

vm.pmap.pat_works: 1
vm.pmap.pg_ps_enabled: 1
vm.pmap.pv_entry_max: 7573622
vm.pmap.shpgperproc: 1024
vm.pmap.pde.demotions: 14959
vm.pmap.pde.mappings: 1055
vm.pmap.pde.p_failures: 255640
vm.pmap.pde.promotions: 23441
vm.pmap.pdpe.demotions: 5
vm.pmap.pv_entry_count: 270500 <--- this looks like a likely candidate
vm.pmap.pc_chunk_count: 2590
vm.pmap.pc_chunk_allocs: 1551162
vm.pmap.pc_chunk_frees: 1548572
vm.pmap.pc_chunk_tryfail: 0
vm.pmap.pv_entry_frees: 244822815
vm.pmap.pv_entry_allocs: 245093315
vm.pmap.pv_entry_spare: 164620
vm.pmap.pmap_collect_inactive: 0
vm.pmap.pmap_collect_active: 0

# sysctl -d vm.pmap.pv_entry_count
vm.pmap.pv_entry_count: Current number of pv entries

Comparing the current working value to the defined maximum value here,
it's pretty obvious that the problem doesn't lie with
vm.pmap.pv_entry_max, so it's more likely that (were I experiencing a
problem) the value of vm.pmap.shpgperproc needs to be increased.

How I choose the value also depends on what the number represents.  If
it's determining the size of a buffer or some other chunk of memory, I
bump the value up to the next (or second) nearest multiple of, again,
some reasonable power of 2 (64, 128, 256, 512, 1024), since computers
"like" such nice, "neat" numbers.

In the case of items that set a limit on the number of entries in some
sort of array, such as vm.pmap.pv_entry_max, I usually just double the
default setting and see how that works, perhaps backing it off a bit
later by some "sensible" factor.

If the problem persists, just bump it up again by a similar factor
until it goes away.

You may, in time, devise your own methodology, but the one I just
described is "comfortable" for me, and does feel a lot better than just
haphazardly plugging in random numbers and hoping for the best.

HTH

-- 
Conrad J. Sabatier
conr...@cox.net
___
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: Fixating boot drive

2012-02-01 Thread Joshua Isom

Why do you need it at a fixed point?  I think glabel should do the trick.

On 2/2/2012 12:42 AM, bsali...@gmail.com wrote:

Hi,

I'm sure this has been asked before. I'm booting a freebsd system from
a USB stick. It is currently at da0 but if I add physical SATA drives,
it moves to da2 and further depending on number of drives.

How can I fix the usb disk to be at da32 or some finite number so that
even if I add more devices, the boot device would still be at a finite
location.

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


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


uname ?

2012-02-01 Thread joeb1
It looks to me that the  uname -m  and  uname -p  always have the same
value, such as "i386".

Is there some fine-grained difference or some un-documented difference
between them
or some combination were the values would be different?

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


Fixating boot drive

2012-02-01 Thread bsali...@gmail.com
Hi,

I'm sure this has been asked before. I'm booting a freebsd system from
a USB stick. It is currently at da0 but if I add physical SATA drives,
it moves to da2 and further depending on number of drives.

How can I fix the usb disk to be at da32 or some finite number so that
even if I add more devices, the boot device would still be at a finite
location.

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


Re: Identifying at jobs

2012-02-01 Thread Dan Nelson
In the last episode (Feb 02), Toomas Aas said:
> I've been curious about this for a long time.
> 
> Say I have three jobs scheduled with at, as seen with atq:
> 
> # atq
> DateOwner   Queue   Job#
> Thu Jan 12 22:12:00 EET 2012rootc   6931
> Fri Jan 13 03:44:00 EET 2012rootc   6932
> Fri Jan 13 04:01:00 EET 2012rootc   6933
> 
> How do I tell which job does what? I can see the files corresponding  
> to jobs in /var/at/jobs:

You want "at -c ".  man at:

 -c   Cat the jobs listed on the command line to standard output.

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


some kind of binary sed(1) command

2012-02-01 Thread Matthias Apitz

Hello,

I have a normal ASCII file wich has in some places two lines of '*',
separated by an empty line, i.e.

\n
*\n
\n
*\n
\n

and I want to substitute the \n between the star lines by \f; the
'binary' sed command would just be 

s/*\n\n*/*\n\f*/

which ofc does not work with sed(1) because it is line oriented;
I could write something in perl, C, awk or whatever language, but I
would prefer to do it with the normal commands... any ideas?

Thanks

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e  - w http://www.unixarea.de/
UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5
___
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"


Identifying at jobs

2012-02-01 Thread Toomas Aas

I've been curious about this for a long time.

Say I have three jobs scheduled with at, as seen with atq:

# atq
DateOwner   Queue   Job#
Thu Jan 12 22:12:00 EET 2012rootc   6931
Fri Jan 13 03:44:00 EET 2012rootc   6932
Fri Jan 13 04:01:00 EET 2012rootc   6933

How do I tell which job does what? I can see the files corresponding  
to jobs in /var/at/jobs:


# ls -l /var/at/jobs
total 8
-rw-r--r--  1 root  wheel 6 Jan 12 18:05 .SEQ
-rw---  1 root  wheel 0 Dec 10  2007 .lockfile
-rwx--  1 root  wheel  1096 Jan 12 12:15 c01b130151521c
-rwx--  1 root  wheel  1096 Jan 12 17:45 c01b1401515368
-rwx--  1 root  wheel  1091 Jan 12 18:05 c01b1501515379

If I look into one of the files, say c01b1501515379, I can see the  
command I have scheduled at the end of the file. But how do I tell  
which of these files corresponds to which Job# in atq output? I'd like  
to remove one of the jobs with atrm, but I can't figure out, which job  
I need to remove.


--
Toomas Aas

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


Practical Management for Plant Turnarounds

2012-02-01 Thread Kyle Law
Practical Management for Plant Turnarounds
  To view this as a webpage, read here

 
Breakthrough Sessions for Plant Turnarounds:
Efficient Plant Shutdown & Turnaround Forum 2012 
20 - 21 Mar 2012, Kuala Lumpur, Malaysia



Dear Energy Peer, 
“How should we handle unplanned outages?” – Avoid a heart-rending sight  of 
smouldering our plant with spiralling smoke.

We are spending years to plan TAR. We do definitely know how challenging it is. 

 
Meet our senior TAR peers (who used to face the same challenges as we do) and 
strategize to spearhead our most expensive project of the year towards 
EXCELLENCE and conquer the challenges: 

Implementing World Class HSE Standards

Forced Outages - How to Handle Unplanned Situations Like an Expert

Dealing & Overcoming Uncertainties During a Planned Shutdown

Analysing Effectiveness of Turnaround for Future Improvement

Planning & Mobilising Large Workforce Resources

Controlling the Shutdown & Turnaround Budget

Developing & Maintaining a Detailed Support Plan

Assessing Plant Readiness for Shutdown

Leadership Behaviour that Shapes the Turnaround and Business Results

Lively Discussion with TAR Experts - the experienced real experts

Wanna know more? E-mail me now!

Forward this to your TAR colleagues who are also concerned.
Best,

   
Kyle Law
kyle@fleminggulf.com






 
Hope it is helpful for you. I apologise if you're not the intended recipient. 
If you wish to unsubscribe, here you are. 

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

2012-02-01 Thread Dennis Glatting
On Thu, 2012-02-02 at 00:09 +, Anton Shterenlikht wrote:
> I'm new to OpenMP. I wonder
> if there are any special considerations
> when running OpenMP on FreeBSD?
> 

I run OpenMP. No special consideration. Here's a chunk from my Makefile:

TARG=ecc.enc ecc.dec

$TARG: *.cc *.h Makefile
g++ -Wall -fopenmp -g -O ${INCL} ${LIBS} -o ecc.enc *.cc
g++ -Wall -fopenmp -g -O ${INCL} ${LIBS} -o ecc.dec *.cc


> For example, I have this OMP parallelised
> fortran program, nested do loops, compiled
> with gfortran46. When I run it with 2 threads
> on a 2-cpu box, I see in top(1):
> 
>   PIDUID   PRI NICE   SIZERES STATE   C   TIMECPU COMMAND
> 63995   1001890 57048K 34272K CPU11   1:06 55.08% 
> dummy.sx{dummy.sx}
> 63995   1001870 57048K 34272K RUN 1   1:02 52.39% 
> dummy.sx{dummy.sx}
>11  0   155 ki31 0K32K RUN 0 376:58 51.46% idle{idle: cpu0}
>11  0   155 ki31 0K32K RUN 1 368:18 45.36% idle{idle: cpu1}
> 
> I wonder why, even after a minute of run time,
> I still have nearly a whole cpu idle?
> 

What is the program doing? I/O can significantly limit OMP value. Also,
you need to make sure you code your loops properly or else you have a
single-threaded application, without warning.


> As a result the run time with 2 threads
> is nearly identical to run time with 1 thread. 
> 
> It's likely that I'm not using OMP correctly,
> but I wanted to check if there are any
> special FreeBSD related issues to bear
> in mind when coding with OMP.
> 

As an example, this is one of my key sections of code in C++. It works.
I can't say for Fortran.


#pragma omp parallel
{

#pragma omp for

  for( size_t i = 0; i < bq.size(); ++i ) {

Block& b = bq[ i ];

// Adjust any padding.
//

if( b.size() != b.szSYMS ) {

  eofPad = ( b.szSYMS - b.size());
  for( ssize_t j = b.size(); j < b.szSYMS; ++j )
b.syms()[ j ] = eofPad;

  if( verbose )
fprintf( stderr,
 "Padding: read=%ld, pad=%d\n",
 b.size(), eofPad );

  b.size( b.szSYMS );

}

// Encode the buffer.
//

encode_rs_8( b.syms(), b.parity(), 0 );

// Set it to its new size.
//  (the encoder is an outside routine.)
//

b.size( b.szBLOCK );

// Interleave the buffer.
//

add_interleave( b.buf());

  } /* for */
} /* pragma */




> Thanks
> 


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


OpenMP on FreeBSD

2012-02-01 Thread Anton Shterenlikht
I'm new to OpenMP. I wonder
if there are any special considerations
when running OpenMP on FreeBSD?

For example, I have this OMP parallelised
fortran program, nested do loops, compiled
with gfortran46. When I run it with 2 threads
on a 2-cpu box, I see in top(1):

  PIDUID   PRI NICE   SIZERES STATE   C   TIMECPU COMMAND
63995   1001890 57048K 34272K CPU11   1:06 55.08% dummy.sx{dummy.sx}
63995   1001870 57048K 34272K RUN 1   1:02 52.39% dummy.sx{dummy.sx}
   11  0   155 ki31 0K32K RUN 0 376:58 51.46% idle{idle: cpu0}
   11  0   155 ki31 0K32K RUN 1 368:18 45.36% idle{idle: cpu1}

I wonder why, even after a minute of run time,
I still have nearly a whole cpu idle?

As a result the run time with 2 threads
is nearly identical to run time with 1 thread. 

It's likely that I'm not using OMP correctly,
but I wanted to check if there are any
special FreeBSD related issues to bear
in mind when coding with OMP.

Thanks

-- 
Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 331 5944
Fax: +44 (0)117 929 4423
___
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"


libXext fails to build on 9.0-RELEASE/amd64

2012-02-01 Thread 1126


Hello list!
Today, I installed a fresh 9.0-RELEASE/amd64 and wanted to install  
Xorg. There were no other packages installed before, so Xorg and all  
it's run- and build-dependencies would be the first. But it fails. The  
error message reads:


...
checking for XEXT... configure: error: Package requirements (xproto >=  
7.0.13 x11 >= 1.1.99.1 xextproto >= 7.1.99) were not met:


No package 'x11' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you  
installed software in a non-standard prefix.


Alternatively, you may set the environment variables XEXT_CFLAGS and  
XEXT_LIBS to avoid the need to call pkg-config.

See the pkg-config man page for more details.

===> Script "configure" failed unexpectedly.
Please report the problem to x...@freebsd.org [maintainer] and attach  
the "/usr/portx/x11/libXext/work/libXext-1.3.0/config.log" including  
the output of the failure of your make command. Also, it might be a  
good idea to provide an overview of all packages installed on your  
system (e.g. an 'ls /var/db/pkg').

*** Error code 1

Stop in /usr/ports/x11/libXext.
*** Error code 1


After reading this, I asked Google, but it didn't came up with a  
solution. I updated the ports (portsnap fetch update), but that didn't  
help either. I tried to install only libXext (make install clean), but  
that didn't work either.


Does anyone knows a solution?


As has been asked, I append the output of "config.log" from the  
"work"-directory of libXext. I don't know the right way to do this,  
but I hope this works. ;)


Thanks in advance,
1126!


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by libXext configure 1.3.0, which was
generated by GNU Autoconf 2.68.  Invocation command line was

  $ ./configure --disable-specs --without-xmlto  
--enable-malloc0returnsnull --x-libraries=/usr/local/lib  
--x-includes=/usr/local/include --prefix=/usr/local  
--mandir=/usr/local/man --infodir=/usr/local/info/  
--build=amd64-portbld-freebsd9.0


## - ##
## Platform. ##
## - ##

hostname = Suse
uname -m = amd64
uname -r = 9.0-RELEASE
uname -s = FreeBSD
uname -v = FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC 2012  
r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC


/usr/bin/uname -p = amd64
/bin/uname -X = unknown

/bin/arch  = unknown
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo  = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /sbin
PATH: /bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /usr/games
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /root/bin


## --- ##
## Core tests. ##
## --- ##

configure:2342: checking for a BSD-compatible install
configure:2410: result: /usr/bin/install -c -o root -g wheel
configure:2421: checking whether build environment is sane
configure:2471: result: yes
configure:2612: checking for a thread-safe mkdir -p
configure:2651: result: ./install-sh -c -d
configure:2664: checking for gawk
configure:2694: result: no
configure:2664: checking for mawk
configure:2694: result: no
configure:2664: checking for nawk
configure:2680: found /usr/bin/nawk
configure:2691: result: nawk
configure:2702: checking whether make sets $(MAKE)
configure:2724: result: yes
configure:2805: checking whether to enable maintainer-specific  
portions of Makefiles

configure:2814: result: no
configure:2858: checking build system type
configure:2872: result: amd64-portbld-freebsd9.0
configure:2892: checking host system type
configure:2905: result: amd64-portbld-freebsd9.0
configure:2946: checking how to print strings
configure:2973: result: printf
configure:3006: checking for style of include used by make
configure:3034: result: GNU
configure:3104: checking for gcc
configure:3131: result: cc
configure:3360: checking for C compiler version
configure:3369: cc --version >&5
cc (GCC) 4.2.1 20070831 patched [FreeBSD]
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3380: $? = 0
configure:3369: cc -v >&5
Using built-in specs.
Target: amd64-undermydesk-freebsd
Configured with: FreeBSD/amd64 system compiler
Thread model: posix
gcc version 4.2.1 20070831 patched [FreeBSD]
configure:3380: $? = 0
configure:3369: cc -V >&5
cc: '-V' option must have argument
configure:3380: $? = 1
configure:3369: cc -qversion >&5
cc: unrecognized option '-qversion'
cc: No input files specified
configure:3380: $? = 1
configure:3400: checking whether the C compiler works
configure:3422: cc -O2 -pipe -fno-strict-aliasing   conftest.c  >&5
configure:3426: $? = 0
configure:3474: result: yes
configure:3477: checking for C compiler default output file name
configure:3479: result: a.out
configure:3485: checking for suf

2Wire Router and Host Discovery

2012-02-01 Thread Chris Maness
I have a twire modem/router that has 5 static IPs assigned to it.  It
configures the firewall settings by discovering the hosts (by means
unknown to me) and allowing you to go into the firmware menu and
setting each host individually.  Once the hosts are recognized it
sends arp requests every few seconds to see if the host is still up on
the local network.  Incoming traffic is then routed to that static
address without a traditional arp requests because the router already
has that MAC address bound to that IP.

Now for the problem.  I have a virtual host running on one of the
boxes on the local network.  The virtual host does not show up on this
list even though the guest OS has a manual entry in the hosts arp
table, and it is pingable from the local network.  The host OS
responds to ARP requests for that IP and correctly route for that
ping, but this guest OS never shows up in the router.  That makes it
impossible to configure firewall rules and allow traffic into this
guest OS.

How does this Twowire router discover static hosts on the local net?
The Cisco router that I was behind in the past had no issues with
this.  If a ping came in from the outside world it would just arp for
that address and cache the response just like any other host on the
local net.

AT&T is just suggesting that I buy a Motorola router and be done with
it.  I would prefer to fix it in software if I can.

Any suggestions and advice on this?

Thanks,
Chris Maness
___
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: Securely sharing directories between jails

2012-02-01 Thread Roland Smith
On Wed, Feb 01, 2012 at 08:30:31AM +0100, Stas Verberkt wrote:
> L.S.,
> 
> I want to set up my system in a way where applications are clustered
> over jails, e.g. a httpd, smbd and dbmsd jail. However, in most cases I
> need to share data over the jails, which is stored on the host.
> Often, nullfs and mounting ro is suitable, but I need write access in
> some cases. As nullfs rw over multiple jails can be considered insecure,
> I was wondering what would be a secure way.

You could use a combination of nullfs and unionfs. Below is is what I do to
share /usr/ports on the host with a jail, but keep the jail from writing in
the host's tree.

host# cd /usr/local/var/jails/192.168.0.100/usr
host# mkdir tmp/foo
host# mount_nullfs /usr/ports/ ports/
host# mount_unionfs -o noatime tmp/foo ports/

With this, the jail sees the hosts' /usr/ports tree, but when it wants to
write there, the written files end up under tmp/foo in the jails' tree.

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


pgphIuUox4Drv.pgp
Description: PGP signature


Re: Unable to upgrade packages on FreeBSD

2012-02-01 Thread David Jackson
On Tue, Jan 31, 2012 at 12:51 AM, Bernt Hansson  wrote:

> 2012-01-30 18:52, David Jackson skrev:
>
>  I have tried endlessly to no avail to upgrade binary the packages on
>> Freebsd to the latest version. I have tried:
>>
>> *portupgrade -PP -a
>> *portmaster -PP -a
>> *pkg_update
>>
>> All fail miserably and totally and have left the system in an unuseable
>> state.
>>
>
> What is the error message?


They seem to have failed because they couldn't find the package on the
download site. Other errors I got were that the package it had downloaded
had an "unrecognized format".

I did not save them, there is really no way to save a copy of them unless I
copy them by hand. I will have to rerun the commands to get the error
messages and then transfer them by hand.

>
>
>  Why can't FreeBSD just make the package system "just work".
>>
>
> It's already "just works"
>
>
It does for you. I've had big problems with it.


>
>  Right after
>> installing FreeBSD I should be able to type a single command such as
>> update_packages
>>
>
> http://www.se.freebsd.org/doc/**en_US.ISO8859-1/books/**
> handbook/updating-upgrading-**freebsdupdate.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: Unable to upgrade packages on FreeBSD

2012-02-01 Thread David Jackson
On Tue, Jan 31, 2012 at 12:54 AM, Bernt Hansson  wrote:

> 2012-01-31 01:13, 
> freebsd-lists-erik@**erikosterholm.orgskrev:
>
>  Oh come on, guys. David is the same person who said that FreeBSD was
>> poorly documented.
>>
>> http://osdir.com/ml/freebsd-**questions/2011-12/msg00684.**html
>>
>>  I'll give him the benefit of the doubt a bit longer.
>>
>
> I do not. He is a whino. Blocked here from now on.
>
>
My posts have always been sincere. It would seem to you that anyone who
does not agree with you is whining. I would suggest it is you who have an
unreasonable attitude.


At least respect other people's right to express their views.

__**_
> 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: Unable to upgrade packages on FreeBSD

2012-02-01 Thread David Jackson
On Wed, Feb 1, 2012 at 3:33 AM, Eduardo Morras  wrote:

> At 11:42 31/01/2012, you wrote:
>
>> While your offer is made with the best of intentions, I doubt the
>> project would feel able take you up on it.  The problem is simply one of
>> security -- while crowd-sourcing package compilation would be a pretty
>> sweet technical solution to much of the scaling and resource cost
>> problems, it offers far too much opportunity for people up-to-no-good to
>> be able to introduce trojans, spyware and so forth.
>>
>
> No no, i didn't said i will make them manually, i wanted to said that i
> can add one server amd64 to the pool of automate servers that make the
> packages, i think it works automatically and distribute workload like boinc
> or other similar net. About the people which introduce trojans, rootkits
> etc... i didn't think on that issue and is really a very important stopper.
>
> With the rest of your mail, i agree with you, my idea was completly
> halfthinked (is it the correct word?).
>
>
>
That security issue is a serious problem with that idea. I had thought of
this idea before and discarded it because its unworkable (the crowd
sourcing thing).

> Mental Note to remember: Beside daemons, there are devils.
>
> L
>
> __**_
> 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: no borders with firefox, terminal (xfce on FreeBSD 9.0 amd64 STABLE)

2012-02-01 Thread Volodymyr Kostyrko

Antonio Olivares wrote:

Dear folks,

I am having some difficultites when starting up the desktop.  The
desktop starts up automagically and when I start firefox or terminal
there is no border :(.  Upon logging out and unchecking Save Settings,
and relogging back in the borders appear.  I have had this happen once
on one of my FreeBSD 8.2 amd64 boxes, but I fixed it somehow with the
settings.  Now I can't find the settings that cause this.  All I know
is that if I log out and un check save settings, the border appear
again and all is well.  But if I reselect the save settings box, and
log out and back in, the borderless windows appear :(  How can I
troubleshoot this?  Any ideas, suggestions, comments are greatly
appreciated.


What is your DM and does it save logs? You can find some hints there.

--
Sphinx of black quartz judge my vow.
___
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: no borders with firefox, terminal (xfce on FreeBSD 9.0 amd64 STABLE)

2012-02-01 Thread Erich Dollansky
Hi,

On Wednesday 01 February 2012 19:44:15 Antonio Olivares wrote:
> On Tue, Jan 31, 2012 at 10:08 PM, Erich Dollansky
>  wrote:
> > Hi,
> >
> > I did not see which window manager or desktop you are using.
> >
> xfce, thought I included it :(

yes, you included it but not too obvious for blind people like me.

Erich
> >
> > Erich
> >
> > On Wednesday 01 February 2012 10:45:26 Antonio Olivares wrote:
> >> Dear folks,
> >>
> >> I am having some difficultites when starting up the desktop.  The
> >> desktop starts up automagically and when I start firefox or terminal
> >> there is no border :(.  Upon logging out and unchecking Save Settings,
> >> and relogging back in the borders appear.  I have had this happen once
> >> on one of my FreeBSD 8.2 amd64 boxes, but I fixed it somehow with the
> >> settings.  Now I can't find the settings that cause this.  All I know
> >> is that if I log out and un check save settings, the border appear
> >> again and all is well.  But if I reselect the save settings box, and
> >> log out and back in, the borderless windows appear :(  How can I
> >> troubleshoot this?  Any ideas, suggestions, comments are greatly
> >> appreciated.
> >>
> >> Regards,
> >>
> >> Antonio
> >> ___
> 
> 
___
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: no borders with firefox, terminal (xfce on FreeBSD 9.0 amd64 STABLE)

2012-02-01 Thread Antonio Olivares
On Tue, Jan 31, 2012 at 10:08 PM, Erich Dollansky
 wrote:
> Hi,
>
> I did not see which window manager or desktop you are using.
>
xfce, thought I included it :(
>
> Erich
>
> On Wednesday 01 February 2012 10:45:26 Antonio Olivares wrote:
>> Dear folks,
>>
>> I am having some difficultites when starting up the desktop.  The
>> desktop starts up automagically and when I start firefox or terminal
>> there is no border :(.  Upon logging out and unchecking Save Settings,
>> and relogging back in the borders appear.  I have had this happen once
>> on one of my FreeBSD 8.2 amd64 boxes, but I fixed it somehow with the
>> settings.  Now I can't find the settings that cause this.  All I know
>> is that if I log out and un check save settings, the border appear
>> again and all is well.  But if I reselect the save settings box, and
>> log out and back in, the borderless windows appear :(  How can I
>> troubleshoot this?  Any ideas, suggestions, comments are greatly
>> appreciated.
>>
>> Regards,
>>
>> Antonio
>> ___
___
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: carp+devd+ifstated on master problem

2012-02-01 Thread Damien Fleuriot


On 2/1/12 12:12 PM, peter knezel wrote:
> Hello all,
> 
> I have configured devd and ifstated on a master FreeBSD server (slave
> not changed so far) on which carp was configured with three
> carp0,carp1 and carp2 virtual addresses.
> 
> When I as root do ifconfig carp0 down and up, the corresponding
> testdown.sh and testup.sh
> scripts are run (defined in ifstated.conf).
> The status of carp0 interface changes to INIT then to MASTER (after
> ifconfig carp0 up).
> 
> However this is not valid when doing the same with carp1 or carp2.
> It goes to INIT+testdown.sh executed but then immediately afterwards
> it goes to MASTER+testup.sh executed.
> 
> What can be the problem?
> 
> cd /usr/local/etc
> cat ifstated.conf
> init-state one
> 
> net = '( "ifconfig -a -u |grep carp0 > /dev/null" every 3 && "ifconfig -a -u
> |grep carp1 > /dev/null" every 3 && "ifconfig -a -u |grep carp2 > /dev/null"
> every 3)'
> 
> state one {
> if ( ! $net ) {
> run "/sbin/ifconfig_carp0 vhid 1 pass newpass 192.xx.xx.1/24"
> run "/sbin/ifconfig carp1 vhid 2 pass newpass 192.xx.xx.2/24"
> run "/sbin/ifconfig carp2 vhid 3 pass newpass 192.xx.xx.3/24"
> run "/usr/local/testdown.sh"
> set-state two
> }
> }
> 
> state two {
> if ( $net ) {
> run "/sbin/ifconfig carp0 vhid 1 advskew 100 pass
> tnewpass 192.xx.xx.1/24"
> run "/sbin/ifconfig carp1 vhid 2 advskew 100 pass
> newpass 192.xx.xx.2/24"
> run "/sbin/ifconfig carp2 vhid 3 advskew 100 pass
> newpass 192.xx.xx.3/24"
> run "/usr/local/testup.sh"
> set-state one
> }
> }
> 
> In addition I had to configure devd.conf to have ifdown.sh and ifup.sh
> scripts executed when reboot is done on the master.
> 
> notify 30 {
> match "system" "IFNET";
> match "subsystem" "carp0";
> match "type" "LINK_UP";
> action "/usr/local/etc/rc.d/ifdown.sh";
> };
> 
> notify 30 {
> match "system" "IFNET";
> match "subsystem" "carp0";
> match "type" "LINK_DOWN";
> action "/usr/local/etc/rc.d/ifup.sh";
> 
> Thanks for any suggestion in advance.
> 
> Ardi

I'm not sure I get what you're trying to do here.

Is there a reason you do not set your carp interfaces' advskew, vhid and
pass in /etc/rc.conf ?

Also, I notice in state 2 your password for carp0 is tnewpass, while the
other ones are newpass.

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


carp+devd+ifstated on master problem

2012-02-01 Thread peter knezel
Hello all,

I have configured devd and ifstated on a master FreeBSD server (slave
not changed so far) on which carp was configured with three
carp0,carp1 and carp2 virtual addresses.

When I as root do ifconfig carp0 down and up, the corresponding
testdown.sh and testup.sh
scripts are run (defined in ifstated.conf).
The status of carp0 interface changes to INIT then to MASTER (after
ifconfig carp0 up).

However this is not valid when doing the same with carp1 or carp2.
It goes to INIT+testdown.sh executed but then immediately afterwards
it goes to MASTER+testup.sh executed.

What can be the problem?

cd /usr/local/etc
cat ifstated.conf
init-state one

net = '( "ifconfig -a -u |grep carp0 > /dev/null" every 3 && "ifconfig -a -u
|grep carp1 > /dev/null" every 3 && "ifconfig -a -u |grep carp2 > /dev/null"
every 3)'

state one {
   if ( ! $net ) {
   run "/sbin/ifconfig_carp0 vhid 1 pass newpass 192.xx.xx.1/24"
   run "/sbin/ifconfig carp1 vhid 2 pass newpass 192.xx.xx.2/24"
   run "/sbin/ifconfig carp2 vhid 3 pass newpass 192.xx.xx.3/24"
   run "/usr/local/testdown.sh"
   set-state two
   }
}

state two {
   if ( $net ) {
   run "/sbin/ifconfig carp0 vhid 1 advskew 100 pass
tnewpass 192.xx.xx.1/24"
   run "/sbin/ifconfig carp1 vhid 2 advskew 100 pass
newpass 192.xx.xx.2/24"
   run "/sbin/ifconfig carp2 vhid 3 advskew 100 pass
newpass 192.xx.xx.3/24"
   run "/usr/local/testup.sh"
   set-state one
   }
}

In addition I had to configure devd.conf to have ifdown.sh and ifup.sh
scripts executed when reboot is done on the master.

notify 30 {
match "system" "IFNET";
match "subsystem" "carp0";
match "type" "LINK_UP";
action "/usr/local/etc/rc.d/ifdown.sh";
};

notify 30 {
match "system" "IFNET";
match "subsystem" "carp0";
match "type" "LINK_DOWN";
action "/usr/local/etc/rc.d/ifup.sh";

Thanks for any suggestion in advance.

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


carp+devd+ifstated on master problem

2012-02-01 Thread peter knezel
Hello all,

I have configured devd and ifstated on a master FreeBSD server (slave
not changed so far) on which carp was configured with three
carp0,carp1 and carp2 virtual addresses.

When I as root do ifconfig carp0 down and up, the corresponding
testdown.sh and testup.sh
scripts are run (defined in ifstated.conf).
The status of carp0 interface changes to INIT then to MASTER (after
ifconfig carp0 up).

However this is not valid when doing the same with carp1 or carp2.
It goes to INIT+testdown.sh executed but then immediately afterwards
it goes to MASTER+testup.sh executed.

What can be the problem?

cd /usr/local/etc
cat ifstated.conf
init-state one

net = '( "ifconfig -a -u |grep carp0 > /dev/null" every 3 && "ifconfig -a -u
|grep carp1 > /dev/null" every 3 && "ifconfig -a -u |grep carp2 > /dev/null"
every 3)'

state one {
if ( ! $net ) {
run "/sbin/ifconfig_carp0 vhid 1 pass newpass 192.xx.xx.1/24"
run "/sbin/ifconfig carp1 vhid 2 pass newpass 192.xx.xx.2/24"
run "/sbin/ifconfig carp2 vhid 3 pass newpass 192.xx.xx.3/24"
run "/usr/local/testdown.sh"
set-state two
}
}

state two {
if ( $net ) {
run "/sbin/ifconfig carp0 vhid 1 advskew 100 pass
tnewpass 192.xx.xx.1/24"
run "/sbin/ifconfig carp1 vhid 2 advskew 100 pass
newpass 192.xx.xx.2/24"
run "/sbin/ifconfig carp2 vhid 3 advskew 100 pass
newpass 192.xx.xx.3/24"
run "/usr/local/testup.sh"
set-state one
}
}

In addition I had to configure devd.conf to have ifdown.sh and ifup.sh
scripts executed when reboot is done on the master.

notify 30 {
match "system" "IFNET";
match "subsystem" "carp0";
match "type" "LINK_UP";
action "/usr/local/etc/rc.d/ifdown.sh";
};

notify 30 {
match "system" "IFNET";
match "subsystem" "carp0";
match "type" "LINK_DOWN";
action "/usr/local/etc/rc.d/ifup.sh";

Thanks for any suggestion in advance.

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


faxgetty 100%

2012-02-01 Thread mailinglist
Dear List,

i've upgraded a 8.2-STABLE system to 9.0-RELEASE, recompiled every package
and now faxgetty uses 100% CPU and cannot handle incoming connections
(under 8.2-STABLE everything was working OK).

Sample output from ktrace:

64551 faxgetty 0.03 RET   read 0
 64551 faxgetty 0.04 CALL  gettimeofday(0x7fffd9c0,0)
 64551 faxgetty 0.03 RET   gettimeofday 0
 64551 faxgetty 0.04 CALL  gettimeofday(0x7fffd980,0)
 64551 faxgetty 0.03 RET   gettimeofday 0
 64551 faxgetty 0.044500 CALL 
select(0x8,0x7fffdb50,0x7fffdad0,0x7fffda50,0x69f340)
 64551 faxgetty 0.10 RET   select 1
 64551 faxgetty 0.09 CALL  gettimeofday(0x7fffd980,0)
 64551 faxgetty 0.04 RET   gettimeofday 0
 64551 faxgetty 0.06 CALL  read(0x4,0x7fffd1a0,0x7ff)
 64551 faxgetty 0.15 GIO   fd 4 read 0 bytes
   ""
 64551 faxgetty 0.05 RET   read 0
 64551 faxgetty 0.05 CALL  gettimeofday(0x7fffd9c0,0)
 64551 faxgetty 0.04 RET   gettimeofday 0
 64551 faxgetty 0.08 CALL  gettimeofday(0x7fffd980,0)
 64551 faxgetty 0.05 RET   gettimeofday 0
 64551 faxgetty 0.04 CALL 
select(0x8,0x7fffdb50,0x7fffdad0,0x7fffda50,0x69f340)
 64551 faxgetty 0.06 RET   select 1
 64551 faxgetty 0.09 CALL  gettimeofday(0x7fffd980,0)
 64551 faxgetty 0.05 RET   gettimeofday 0
 64551 faxgetty 0.05 CALL  read(0x4,0x7fffd1a0,0x7ff)
 64551 faxgetty 0.04 GIO   fd 4 read 0 bytes

And kstat:
USER CMD  PID   FD MOUNT  INUM MODE SZ|DV R/W
uucp faxgetty   64551 text /usr 1133532 -r-sr-xr-x  550432  r
uucp faxgetty   64551   wd /var 6571017 drwxr-xr-x 512  r
uucp faxgetty   64551 root / 2 drwxr-xr-x   16384  r
uucp faxgetty   645510 /dev 29 crw-rw-rw-null rw
uucp faxgetty   645511 /dev 29 crw-rw-rw-null rw
uucp faxgetty   645512 /dev 29 crw-rw-rw-null rw
uucp faxgetty   645513 /var 6571376 -rw-r--r--  17  w
uucp faxgetty   645514 /var 6571373 prw---   0  r
uucp faxgetty   645515 /var 6571039 prw---   0  w
uucp faxgetty   645516* local dgram fe00acbef870 <->
fe001029a5a0
uucp faxgetty   645517 /dev 56 crw-rw-rw-   cuau0 rw

I'm at a loss here and don't know where to continue debugging this error.
Does anyone experiencing the same problem?

Best regards,
Mate

___
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: limit on PV entries

2012-02-01 Thread Julien Cigar

Did you explicitly disabled superpages?
What is the output of $ sysctl vm.pmap.pg_ps_enabled ?

On 02/01/2012 10:17, n dhert wrote:

FreeBSD 8.2-RELEASE

From time to time, I get in /var/log/messages

  kernel: Approaching the limit on PV entries, consider increasing either
the vm.pmap.shpgperproc or the vm.pmap.pv_entry_max sysctl.

this started a few weeks ago, never had that before, don't have it on other
FreeBSD 8.2-RELEASE systems.

- What does this mean?
- And how to increase either of the two and to what level ?

$ sysctl vm.pmap.shpgperproc
vm.pmap.shpgperproc: 200
$ sysctl vm.pmap.pv_entry_max
vm.pmap.pv_entry_max: 3256966
___
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"



--
No trees were killed in the creation of this message.
However, many electrons were terribly inconvenienced.
___
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:[SOLVED] bash LC_COLLATE or LC_ALL set “C” not sort in dictionary order.

2012-02-01 Thread Edward Martinez

On 01/31/12 12:22, Robert Bonomi wrote:

`


Edward wrote:

On 01/31/12 06:31, Robert Bonomi wrote:

   Hi,

   Been trying to get BASH to sort set characters in  dictionary order.
  I typed "locale" and it shows LC_COLLATE and LC_ALL are set to "C"
thought that was enough to work,
  however when i type metacharacters:  set character; any character,
something like this:

  ls  [a-cx-y]*

   bash does not sort in dictionary order; file   "Binarc" does not
list.


*OF*COURSE* it doesn't.  Unix is _case_sensitive_.  You specified a lower-
case only (in the C locale) pattern.  Naturally, it doesn't match a file
with an upper-case character in it.

Note: in the 'C' locale, characters are sorted on the underlying byte value.
Thus you will get all the upper-case matches before any lower-case match.

To get upper-and-lower case files in the C locale, you will have to use:
ls [A-CX-Ya-cx-y]*

IF you speciy a different charset for collating, you _may_ get upper/lower
case characters sorted adjacently.  See the specifications for the charset
in question.



  Thanks for reply!

   I meant LC_COLLATE being  set to en_US.UTF-8 not C.

AH.  you lied (not necessarily maliciously, or intentionally) about the
nature of the problem.  disregard my rant.

The short answer to the revised situation is 'it depends on how the charset
collating sequence is deifined'.  AND _which_ release of FreeBSD you are
using, and thus which version of bash.

   I have been digging around and discovered  linux's bash is  not 
working correctly on this matter and numerous  users  have file bug 
reports about it.  FreeBSD's bash is fine:


   https://bugs.archlinux.org/task/24553
   https://bugs.launchpad.net/ubuntu/+source/bash/+bug/120687
   http://teaching.idallen.com/net2003/06w/notes/character_sets.txt

i will continue using either character classes and upper/lower case 
charsets when defining wildcards

   thanks for the 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"


limit on PV entries

2012-02-01 Thread n dhert
FreeBSD 8.2-RELEASE
>From time to time, I get in /var/log/messages
 kernel: Approaching the limit on PV entries, consider increasing either
the vm.pmap.shpgperproc or the vm.pmap.pv_entry_max sysctl.

this started a few weeks ago, never had that before, don't have it on other
FreeBSD 8.2-RELEASE systems.

- What does this mean?
- And how to increase either of the two and to what level ?

$ sysctl vm.pmap.shpgperproc
vm.pmap.shpgperproc: 200
$ sysctl vm.pmap.pv_entry_max
vm.pmap.pv_entry_max: 3256966
___
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: Unable to upgrade packages on FreeBSD

2012-02-01 Thread Eduardo Morras

At 11:42 31/01/2012, you wrote:

While your offer is made with the best of intentions, I doubt the
project would feel able take you up on it.  The problem is simply one of
security -- while crowd-sourcing package compilation would be a pretty
sweet technical solution to much of the scaling and resource cost
problems, it offers far too much opportunity for people up-to-no-good to
be able to introduce trojans, spyware and so forth.


No no, i didn't said i will make them manually, i wanted to said that 
i can add one server amd64 to the pool of automate servers that make 
the packages, i think it works automatically and distribute workload 
like boinc or other similar net. About the people which introduce 
trojans, rootkits etc... i didn't think on that issue and is really a 
very important stopper.


With the rest of your mail, i agree with you, my idea was completly 
halfthinked (is it the correct word?).



Mental Note to remember: Beside daemons, there are devils.

L 



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