How to enable PAE in freebsd 8.0 i386

2011-11-05 Thread Nazir

Hi,

I'm just to know how to / step / the best practice recompile kernel with PAE 
support in freebsd 8.0 i386


Ahmad Nazir b Haron
Pusat Teknologi Maklumat
Universiti Malaysia Terengganu___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


FreeBSD 8.0 - PHP 5.3.x

2011-10-06 Thread Grant Peel
Hi all,
Short of upgrading the OS, what is the safest way to upgrade a FreeBSD server 
to PHP 5.3.x from 5.2.11 ?
I am assuming downloading the ports tarball and rebuilding and reinstalling 
will do it?
Any advice, samples would be appreciated,
-Grant
___
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 - PHP 5.3.x

2011-10-06 Thread Matthew Seaman
On 06/10/2011 16:55, Grant Peel wrote:
 Short of upgrading the OS, what is the safest way to upgrade a
 FreeBSD server to PHP 5.3.x from 5.2.11 ? I am assuming downloading
 the ports tarball and rebuilding and reinstalling will do it? Any
 advice, samples would be appreciated

8.0 is out of support now as I recall.  Recommend upgrading to 8.2 --
you should be able to update the base system independently of updating
any ports as the ABI won't change because it's all the same major
version number.

Update your ports tree to the latest.  Update your installed ports to
the latest available.  You can omit upgrading PHP and things like
eaccelerator since you'll be deleting and reinstalling them shortly.

Make backups of all of your PHP related ports.  Take note of which are
the actual applications you want to run -- there are some differences in
the available modules between the php52 and the php5 ports, so it won't
necessarily be an exact one-for-one swap.

Now remove the base php52 port and every port that depends on it.
Install the core lang/php5 port -- this resets the default PHP version
on your system -- then reinstall your applications, allowing them to add
any necessary modules automatically to fulfil their dependencies.  If
your PHP application code is not installed via ports, then you'll have
to manually work out which modules to install -- this is likely to be
pretty similar to what you needed with php52 but not necessarily exactly
the same.  Usually it's a matter of installing a bunch of stuff, trying
the application, noting what throws errors due to missing functions and
installing the needed modules to provide that.  Rinse, repeat.

This is safe, in that you should end up with a functioning system, but
it is pretty intrusive and requires significant amounts of downtime on
your system.  To minimize all that, probably the best thing to do is
clone your web server into a jail or VM, work on the upgrade there at
your leisure, including all needed debugging.  Then you should be able
to make packages of all the ports in your test system and use those to
quickly apply the changes to your live system.

This is a key command-line you'll need for that:

   pkg_create -Rbn portname

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: FreeBSD 8.0 - PHP 5.3.x

2011-10-06 Thread Paul Macdonald

On 06/10/2011 16:55, Grant Peel wrote:

Hi all,
Short of upgrading the OS, what is the safest way to upgrade a FreeBSD server 
to PHP 5.3.x from 5.2.11 ?
I am assuming downloading the ports tarball and rebuilding and reinstalling 
will do it?
Any advice, samples would be appreciated,
-Grant
___
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

It's not too traumatic an upgrade, and initially is as simple as you 
suggest,
remember  to uninstall extenstions via the meta port 
lang/php52-extensions (and reinstall desired extensions via 
lang/php5-extensions)


further suggestions, *
*copy the config make options from phpinfo() on 5.2 as it'll help you 
remember what you need for 5.3.

keep a copy of you php.ini obv also.
check http://uk3.php.net/migration53

you'll likely know but 5.3 is quite different from 5.2 so there's a few 
gotchas, such as  changes to log levels, no more register globals, you 
must explicitly use $_POST or $_GET

no more register_long_arrays, you cannot use $HTTP_POST_VARS
short tags are probably off  round about that version,

if i recall, there was some changes to a lot of my $_SESSION code so 
check any code that uses that, (but this could well have been my 
implementations.)




good luck
Paul.

___
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 routing table size in FreeBSD 8.0 and 7.2

2011-02-25 Thread Valentin Bud
On Thu, Feb 24, 2011 at 9:37 PM, nikitha sumi.tec...@gmail.com wrote:

 Thank you all, for your timely reply..
 To answer Niko's question: Just i'm doing some performance/stress testing
 of
 a freebsd router.. :-)

 -Sumi

 On Thu, Feb 24, 2011 at 10:11 PM, Nikos Vassiliadis nv...@gmx.com wrote:

  On 2/24/2011 4:51 PM, Damien Fleuriot wrote:
 
  On 2/24/11 3:00 PM, nikitha wrote:
 
  Hi,
  Could you plz share the information on the maximum number of routes
 that
  can
  be added (by default) in FREEBSD 8.0/7.2 kernel?
  In Linux the sysctl rt_max_size is used. Is there a similar tunable
  parameter in freeBSD?
 
  [snip]
 
 
  I could not find a sysctl that matched what you're looking for.
 
  AFAIK, the routing table is limited only by the amount of RAM you can
  allocate to it.
 
 
  Yes. You can use vmstat -z | grep rtentry to examine it.
  It seems trivial to add a limit there(without having thought of
  multiple routing tables and vnet).
 
  Out of curiosity, why would you want such a limit?
 
 
 ___
 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


Hello Sumi,

 What tools do you use to perform the tests?

thanks,
v
-- 
network warrior
___
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


Tuning routing table size in FreeBSD 8.0 and 7.2

2011-02-24 Thread nikitha
Hi,
Could you plz share the information on the maximum number of routes that can
be added (by default) in FREEBSD 8.0/7.2 kernel?
In Linux the sysctl rt_max_size is used. Is there a similar tunable
parameter in freeBSD?

Your earliest reply in this regard is much appreciated.

Thanks for any inputs..

-Sumi
___
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 routing table size in FreeBSD 8.0 and 7.2

2011-02-24 Thread Damien Fleuriot
On 2/24/11 3:00 PM, nikitha wrote:
 Hi,
 Could you plz share the information on the maximum number of routes that can
 be added (by default) in FREEBSD 8.0/7.2 kernel?
 In Linux the sysctl rt_max_size is used. Is there a similar tunable
 parameter in freeBSD?
 
 Your earliest reply in this regard is much appreciated.
 
 Thanks for any inputs..
 
 -Sumi
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


I could not find a sysctl that matched what you're looking for.

AFAIK, the routing table is limited only by the amount of RAM you can
allocate to 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: Tuning routing table size in FreeBSD 8.0 and 7.2

2011-02-24 Thread Gary Gatten
Sysctl -a lists all options.  This MAY be what you want:

net.inet.ip.rtmaxcache
 - Upper limit on dynamically learned routes

http://people.freebsd.org/~hmp/utilities/satbl/sysctl-net.html


HTH

Gary
-Original Message-
From: owner-freebsd-questi...@freebsd.org 
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of nikitha
Sent: Thursday, February 24, 2011 8:01 AM
To: freebsd-questions@freebsd.org
Subject: Tuning routing table size in FreeBSD 8.0 and 7.2

Hi,
Could you plz share the information on the maximum number of routes that can
be added (by default) in FREEBSD 8.0/7.2 kernel?
In Linux the sysctl rt_max_size is used. Is there a similar tunable
parameter in freeBSD?

Your earliest reply in this regard is much appreciated.

Thanks for any inputs..

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





font size=1
div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 
1.0pt 0in'
/div
This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system.
/font

___
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 routing table size in FreeBSD 8.0 and 7.2

2011-02-24 Thread Nikos Vassiliadis

On 2/24/2011 4:51 PM, Damien Fleuriot wrote:

On 2/24/11 3:00 PM, nikitha wrote:

Hi,
Could you plz share the information on the maximum number of routes that can
be added (by default) in FREEBSD 8.0/7.2 kernel?
In Linux the sysctl rt_max_size is used. Is there a similar tunable
parameter in freeBSD?

[snip]


I could not find a sysctl that matched what you're looking for.

AFAIK, the routing table is limited only by the amount of RAM you can
allocate to it.


Yes. You can use vmstat -z | grep rtentry to examine it.
It seems trivial to add a limit there(without having thought of
multiple routing tables and vnet).

Out of curiosity, why would you want such a limit?

___
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 routing table size in FreeBSD 8.0 and 7.2

2011-02-24 Thread nikitha
Thank you all, for your timely reply..
To answer Niko's question: Just i'm doing some performance/stress testing of
a freebsd router.. :-)

-Sumi

On Thu, Feb 24, 2011 at 10:11 PM, Nikos Vassiliadis nv...@gmx.com wrote:

 On 2/24/2011 4:51 PM, Damien Fleuriot wrote:

 On 2/24/11 3:00 PM, nikitha wrote:

 Hi,
 Could you plz share the information on the maximum number of routes that
 can
 be added (by default) in FREEBSD 8.0/7.2 kernel?
 In Linux the sysctl rt_max_size is used. Is there a similar tunable
 parameter in freeBSD?

 [snip]


 I could not find a sysctl that matched what you're looking for.

 AFAIK, the routing table is limited only by the amount of RAM you can
 allocate to it.


 Yes. You can use vmstat -z | grep rtentry to examine it.
 It seems trivial to add a limit there(without having thought of
 multiple routing tables and vnet).

 Out of curiosity, why would you want such a limit?


___
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: Booting up FreeBSD 8.0

2010-09-29 Thread Wojciech Puchar

I have just installed FreeBSD 8.0 and after I login it stops at $ like its
waiting for me to put some type of information in or something. So what do I
put after the dollar sign???


it means you have to sent some dollars to FreeBSD fundation.

___
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: Booting up FreeBSD 8.0

2010-09-29 Thread Matthias Apitz
El día Wednesday, September 29, 2010 a las 01:07:26PM +0200, Wojciech Puchar 
escribió:

  I have just installed FreeBSD 8.0 and after I login it stops at $ like its
  waiting for me to put some type of information in or something. So what do I
  put after the dollar sign???
 
 it means you have to sent some dollars to FreeBSD fundation.

The OP could key in exactly this chars:

PS1=RTFM

and then press a few times Return to see the efect. He/She could also
read
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/index.html
to see where to go now from here.

HIH

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
___
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


Booting up FreeBSD 8.0

2010-09-28 Thread William Lang
I have just installed FreeBSD 8.0 and after I login it stops at $ like its
waiting for me to put some type of information in or something. So what do I
put after the dollar sign???

___
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: Booting up FreeBSD 8.0

2010-09-28 Thread Steven Friedrich
On Tuesday 28 September 2010 1:52:56 pm William Lang wrote:
 I have just installed FreeBSD 8.0 and after I login it stops at $ like its
 waiting for me to put some type of information in or something. So what do
 I put after the dollar sign???
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 freebsd-questions-unsubscr...@freebsd.org

You haven't indicated what your level of expertise is with unix in general, 
what other software you have installed, or what your goals are.

Have you added additional user IDs to the system or just root?

If you're logged in as root, I wouldn't rn X from that account, though it may 
be sfe these days, I don't kow. I'd create another userID, perhaps admin, and 
assign it to group wheel. This group wil allow you to su root when you need 
the authority. If you're logged in as a non-root user, such as admin (which 
doesn't exist unless yo add it), then try startx.

-- 
System Name:   laptop2.StevenFriedrich.org
Hardware:  2.80GHz Intel Pentium 4 (HTT) with 2 GB memory
OS version:FreeBSD 8.1-RELEASE i386 (6.9 MB kernel)
manager(s):kde4-4.5.1 
X windows: xorg-7.5X.Org X Server 1.7.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


Re: Booting up FreeBSD 8.0

2010-09-28 Thread Chuck Swiger
On Sep 28, 2010, at 10:52 AM, William Lang wrote:
 I have just installed FreeBSD 8.0 and after I login it stops at $ like its
 waiting for me to put some type of information in or something. So what do I
 put after the dollar sign???

You're at a Unix shell prompt.  I suspect the resources here will be helpful:

  http://www.freebsd.org/projects/newbies.html
  http://www.freebsd.org/doc/en_US.ISO8859-1/articles/new-users/article.html

Regards,
-- 
-Chuck

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


FreeBSD 8.0 and KDE Fonts

2010-07-14 Thread What you get is Not what you see
On 8.0 with KDE 4.3.1 package installed I have problems with Firefox fonts.
Though I installed URW and freetype fonts according to handbook and
declared them on xorg.conf,
Firefox 3.5.4 cant display some pages properly,ie text is not
displayed. So that must be a problem with fonts,
because those pages are displayed (well) with Konqueror.
What would be the resolution?
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-06 Thread RW
On Fri, 02 Jul 2010 16:28:29 +0100
Arthur Chance free...@qeng-ho.org wrote:

 I suspect whoever you were talking to probably has more of a clue
 than I do. As a quick data point, I just ran portsnap fetch update
 while another process did a df /var; sleep 1 loop and /var
 increased by about 30MB at its peak. That was a week after the last
 port update. I've no idea how much space a portsnap fetch extract
 would take and would rather not do one right now. 

The temporary space is likely used by the fetch stage for
downloaded patch files. I don't think update or extract use much
storage on /var.
___
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


syslog strangeness on freebsd 8.0 and 8.1-RC

2010-07-05 Thread Vikash Badal

Can someone please assist me with some strangeness on FreeBSD 8.0 and 8.1-RC2

using a threaded test code code, I see the that freebsd 8.x seems to be using 
more memory when using the syslog() call from a c program:


Results:

7.2
without syslog
  PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
26872 vikashb1001   80   128M 14236K RUN  0:00  0.00% a.out

with syslog
  PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
26881 vikashb1001  440   128M 26236K RUN  0:00  0.00% a.out

8.0-RELEASE-p3
without syslog
  PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
61529 vikashb1001  440   129M 14840K RUN  0:01  0.00% a.out

with syslog
  PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
61507 vikashb1001  440   257M 42708K RUN  0:30  0.00% a.out

8.1-RC2
without syslog
  PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
33062 vikashb1001  440   129M 14804K RUN  0:00  0.00% a.out

with syslog
  PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
33056 vikashb1001  440   257M 42708K RUN  0:03  0.00% a.out


I have not been able to find any reasonable information via google.

Why does syslog result in more memory being consumed on 8.x as opposed to 7.2 ?



CODE
#include stdio.h
#include stdlib.h
#include string.h
#include sys/time.h
#include stdarg.h
#include errno.h
#include syslog.h
#include signal.h
#include pthread.h

char *ProgramName = WTF;

int loop = 0;
int LogToSTDOUT = 1;

void LogMessage(int debug, const char *fmt,...)
{
   extern int LogToSTDOUT;

   char message[8192];

   memset(message, 0, sizeof(message));

   va_list args;

   va_start(args, fmt);
   vsnprintf(message, sizeof(message), fmt, args);
   va_end(args);

   if ( LogToSTDOUT )
   {
  printf(%s\n, message);
   }

   syslog(LOG_NOTICE, %s, message);

}

unsigned long int getTimeNow()
{
   struct timeval tv;

   if ( gettimeofday(tv, NULL) == -1 )
   {
  LogMessage(0, ERROR(%d) %s\n, errno, strerror(errno));
  tv.tv_sec = 0;
   }

   return tv.tv_sec;
}

void HandleSignal(int sig)
{
   loop = 0;
   LogMessage(0, loop  = %d\n, loop);
   signal(sig, SIG_IGN);
   usleep(1000);
}

void *worker(int n)
{
   while ( loop )
   {
  LogMessage(0, worker #%d logging, n);
  usleep(1000);
   }

   pthread_exit(0);
}

int main(int argc, char* argv[])
{
   pthread_t* tpool;

   int workers = 1000, i, rc;

   openlog(ProgramName, LOG_PID, LOG_MAIL);

   unsigned long int duration = 120, StartTime, TimeNow;

   signal(SIGINT, HandleSignal);
   signal(SIGTERM, HandleSignal);
   signal(SIGHUP, HandleSignal);
   signal(SIGQUIT, HandleSignal);

   StartTime = getTimeNow();

   tpool = (pthread_t*)malloc(workers * sizeof(pthread_t));

   if ( tpool == NULL )
   {
  LogMessage(0, malloc failed \n);
  closelog();
  exit(-1);
   }

   memset(tpool, 0, sizeof(pthread_t) * workers);

   loop = 1;

   for ( i = 0; i  workers; i++ )
   {
  rc = pthread_create(tpool[i], NULL, (void *(*)(void*))worker, (void*)i);

  if ( rc != 0 )
  {
 LogMessage(0, pthread_create #%d failed\n, i );
 pthread_cancel(tpool[i]);
  }
  else
  {
 pthread_detach(tpool[i]);
  }
   }

   LogMessage(0, loop  = %d\n, loop);

   while ( loop )
   {
  TimeNow = getTimeNow();

  if ( ( TimeNow - StartTime )   duration )
  {
  loop = 0;
  }

  usleep(1000);
   }

   for ( i = 0; i  workers; i++ )
   {
  pthread_cancel(tpool[i]);
   }

   for ( i = 0; i  workers; i++ )
   {
  pthread_join(tpool[i], NULL);
   }

   free(tpool);
   closelog();
   exit(0);
}

/CODE
Please note: This email and its content are subject to the disclaimer as 
displayed at the following link 
http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. 
Should you not have Web access, send a mail to disclaim...@is.co.za and a copy 
will be emailed to 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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/07/2010 22:29:54, Ed Flecko wrote:
 Henrik,
 When I FIRST installed 8.0, I did create a separate /home partition.
 When I installed the kernel and starting running out of space in / , I
 thought O.K...I'll let FreeBSD make the partition sizes IT wants to
 and see if I have the same problem, and I did.
 
 Apparently, 512M is just, not, quite big enough so I think I'll try 1G
 to give me plenty of room.

Is it time for me to start advocating one big partition again?

This may not be the consensus view, but I have found that for a quiet
life and general lack of botheration it helps to create *only two*
partitions on your hard drive:

 b: Swap -- usually 2x RAM
 a: Everything else

Now, I've run this setup on literally hundreds of servers without
problems.  The usual argument against doing this is but a run-away
process might log so much that is fills your hard drive.  This is true.
 You might also be killed by a lightning strike the next time you leave
your house.  Run-away logfiles are actually pretty rare, and given that
80GB would be considered a pretty small hard drive nowadays, and you can
fit a standard FreeBSD install with quite a lot of extra software inside
10GB, you're likely to have sufficient empty space that you'ld get days
of warning before it caused real trouble.  In which case, newsyslog(8)
is your friend.  Cycling logs based on size and checking that every hour
will avoid almost all trouble.  You do monitor disk space usage on your
servers don't you?  Cacti is in ports and its pretty easy to set up, as
are several other alternatives.

Watch this list: you'll see people having trouble with too small root
partitions with great regularity.  I don't think I've /ever/ seen anyone
ask about dealing with a process generating huge amounts of log data.

Even if you do fill up the hard drive, it's not actually guaranteed
disaster.  FreeBSD itself will keep running just fine.  So will most web
applications -- although you won't get any logging.  Simply delete some
of the excess files, and the system will spring back to normal function.
 Filling the partition certainly will crash a database, but for serious
RDBMS setups, I generally make an exception and put the database working
files onto their own partition[*].

Nowadays too, I much prefer using ZFS -- so I have *one* zpool from
which is allocated all of the space for the zdevs on the system.  This
is much the best of both worlds -- you get as many filesystems as you
can eat, but each of them can use as much of the total available space
as it needs to.

Cheers,

Matthew

[*] As this usually involves hardware RAID10 with plenty of cache and a
BBU on at least 4 x 15k RPM SAS2 drives, it would generally be on a
separate partition in any case.

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwtllkACgkQ8Mjk52CukIyTOwCeJYhR6kY6wxmP+WlNyGF/eJte
I0wAnRuULVWsjqxFAHaL1SFFTJd2sMMW
=T9JF
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Svein Skogen (Listmail Account)
On 02.07.2010 09:33, Matthew Seaman wrote:
 On 01/07/2010 22:29:54, Ed Flecko wrote:
 Henrik,
 When I FIRST installed 8.0, I did create a separate /home partition.
 When I installed the kernel and starting running out of space in / , I
 thought O.K...I'll let FreeBSD make the partition sizes IT wants to
 and see if I have the same problem, and I did.
 
 Apparently, 512M is just, not, quite big enough so I think I'll try 1G
 to give me plenty of room.
 
 Is it time for me to start advocating one big partition again?
 
 This may not be the consensus view, but I have found that for a quiet
 life and general lack of botheration it helps to create *only two*
 partitions on your hard drive:
 
  b: Swap -- usually 2x RAM
  a: Everything else
 

I usually (today) set up something similar. I sysinstall FreeBSD onto a
CF card with the one-big-root method, then create a zpool (on
spinning-metal-storage) where I create the usr, tmp, var fs'es, tar|tar
the originals over and fix the mountpoint info on the zfs'es. Then I add
swap on a zvol (since I don't know how to properly use a kernel dump, I
don't need swap to store it).

I use this method everywhere except on VMs inside VMWare ESXi. It's been
my painful experience that zfs inside vmware machines is a bad idea.

//Svein

-- 
+---+---
  /\   |Svein Skogen   | sv...@d80.iso100.no
  \ /   |Solberg Østli 9| PGP Key:  0xE5E76831
   X|2020 Skedsmokorset | sv...@jernhuset.no
  / \   |Norway | PGP Key:  0xCE96CE13
|   | sv...@stillbilde.net
 ascii  |   | PGP Key:  0x58CD33B6
 ribbon |System Admin   | svein-listm...@stillbilde.net
Campaign|stillbilde.net | PGP Key:  0x22D494A4
+---+---
|msn messenger: | Mobile Phone: +47 907 03 575
|sv...@jernhuset.no | RIPE handle:SS16503-RIPE
+---+---
 If you really are in a hurry, mail me at
   svein-mob...@stillbilde.net
 This mailbox goes directly to my cellphone and is checked
even when I'm not in front of my computer.

 Picture Gallery:
  https://gallery.stillbilde.net/v/svein/




signature.asc
Description: OpenPGP digital signature


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread krad
On 2 July 2010 08:33, Matthew Seaman m.sea...@infracaninophile.co.ukwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 01/07/2010 22:29:54, Ed Flecko wrote:
  Henrik,
  When I FIRST installed 8.0, I did create a separate /home partition.
  When I installed the kernel and starting running out of space in / , I
  thought O.K...I'll let FreeBSD make the partition sizes IT wants to
  and see if I have the same problem, and I did.
 
  Apparently, 512M is just, not, quite big enough so I think I'll try 1G
  to give me plenty of room.

 Is it time for me to start advocating one big partition again?

 This may not be the consensus view, but I have found that for a quiet
 life and general lack of botheration it helps to create *only two*
 partitions on your hard drive:

 b: Swap -- usually 2x RAM
 a: Everything else

 Now, I've run this setup on literally hundreds of servers without
 problems.  The usual argument against doing this is but a run-away
 process might log so much that is fills your hard drive.  This is true.
  You might also be killed by a lightning strike the next time you leave
 your house.  Run-away logfiles are actually pretty rare, and given that
 80GB would be considered a pretty small hard drive nowadays, and you can
 fit a standard FreeBSD install with quite a lot of extra software inside
 10GB, you're likely to have sufficient empty space that you'ld get days
 of warning before it caused real trouble.  In which case, newsyslog(8)
 is your friend.  Cycling logs based on size and checking that every hour
 will avoid almost all trouble.  You do monitor disk space usage on your
 servers don't you?  Cacti is in ports and its pretty easy to set up, as
 are several other alternatives.

 Watch this list: you'll see people having trouble with too small root
 partitions with great regularity.  I don't think I've /ever/ seen anyone
 ask about dealing with a process generating huge amounts of log data.

 Even if you do fill up the hard drive, it's not actually guaranteed
 disaster.  FreeBSD itself will keep running just fine.  So will most web
 applications -- although you won't get any logging.  Simply delete some
 of the excess files, and the system will spring back to normal function.
  Filling the partition certainly will crash a database, but for serious
 RDBMS setups, I generally make an exception and put the database working
 files onto their own partition[*].

 Nowadays too, I much prefer using ZFS -- so I have *one* zpool from
 which is allocated all of the space for the zdevs on the system.  This
 is much the best of both worlds -- you get as many filesystems as you
 can eat, but each of them can use as much of the total available space
 as it needs to.

Cheers,

Matthew

 [*] As this usually involves hardware RAID10 with plenty of cache and a
 BBU on at least 4 x 15k RPM SAS2 drives, it would generally be on a
 separate partition in any case.

 - --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkwtllkACgkQ8Mjk52CukIyTOwCeJYhR6kY6wxmP+WlNyGF/eJte
 I0wAnRuULVWsjqxFAHaL1SFFTJd2sMMW
 =T9JF
 -END PGP SIGNATURE-
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org




all i can say is your a brave boy 8) A 1 TB+ / slice would take ages to
fsck.

Of course all these issues go away with 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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Robert Huff
krad writes:

  all i can say is your a brave boy 8) A 1 TB+ / slice would take
  ages to fsck.

For ages being less than ten (fifteen ?) minutes on a modern
system with reasonable memory ...
... which should be necessary very rarely.  Even on my test
system, time between involuntary reboots is measured in weeks.


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


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Bruce Cran
On Fri, 02 Jul 2010 08:33:45 +0100
Matthew Seaman m.sea...@infracaninophile.co.uk wrote:

 Is it time for me to start advocating one big partition again?
 
 This may not be the consensus view, but I have found that for a quiet
 life and general lack of botheration it helps to create *only two*
 partitions on your hard drive:
 
  b: Swap -- usually 2x RAM
  a: Everything else

This is perfect bikeshed material: people believe FreeBSD's
partitioning scheme is superior to (for example) Linux, and that by
dumping everything in a single partition we'd be dumbing it down. I
still create separate partitions through paranoia, to avoid corrupting
the entire disk if for example /usr/obj is being written to when the
power goes out. I don't know if that would happen but I've had too many
problem over the years with various filesystems that I don't trust it.
With ZFS I've gone even further and created separate filesystems
for /usr/src, /usr/ports etc. The output of 'mount' looks somewhat like
a Solaris machine now :)

I have a task on my TODO list to increase the sizes of the partitions in
sysinstall: for example / goes to 1GB, /var to 4GB. I hope to commit
the code in the next couple of weeks.

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


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Jerry McAllister
On Thu, Jul 01, 2010 at 02:29:54PM -0700, Ed Flecko wrote:

 Henrik,
 When I FIRST installed 8.0, I did create a separate /home partition.
 When I installed the kernel and starting running out of space in / , I
 thought O.K...I'll let FreeBSD make the partition sizes IT wants to
 and see if I have the same problem, and I did.
 
 Apparently, 512M is just, not, quite big enough so I think I'll try 1G
 to give me plenty of room.

Apparently also 64 bit systems take more room.   I didn't notice
it was a 64 bit system when I responded yesterday.
You might want to jump to 768 MB for root.

jerry

 
 Ed
 ___
 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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Arthur Chance

On 07/02/10 13:13, Bruce Cran wrote:

I have a task on my TODO list to increase the sizes of the partitions in
sysinstall: for example / goes to 1GB, /var to 4GB. I hope to commit
the code in the next couple of weeks.


As a matter of idle curiosity with a bit of education thrown in, why 4GB 
for /var? The last time I installed a new machine I made / 1GB as I'd 
found out from a previous install that 512MB wasn't really enough, and 
then decided to make /var bigger than the Handbook said as well and made 
it 3GB. This has turned out to be total overkill:


art...@fileserver df -h /var
Filesystem  SizeUsed   Avail Capacity  Mounted on
/dev/ad10s1d2.9G205M2.5G 8%/var

I'm sure my use of this machine is very simple and nowhere near as large 
as other people's but a leap of 4-16 times what it currently suggests in 
the Handbook seems a bit excessive, especially if people are installing 
onto older kit. OTOH, playing devil's advocate with myself, disks are 
huge these days so why 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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Robert Huff
Arthur Chance writes:

  As a matter of idle curiosity with a bit of education thrown in,
  why 4GB for /var? The last time I installed a new machine I made
  / 1GB as I'd found out from a previous install that 512MB wasn't
  really enough, and then decided to make /var bigger than the
  Handbook said as well and made it 3GB. This has turned out to be
  total overkill:

It is my understanding space used on /var is, well, variable.
While a generic system might only use, say, 300 mbytes 99.99 per
cent of the time, the other .01 might use 5 or 10 or 20 gbytes if
available. 


Robert Huff



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


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Bruce Cran
On Fri, 02 Jul 2010 15:04:10 +0100
Arthur Chance free...@qeng-ho.org wrote:

 As a matter of idle curiosity with a bit of education thrown in, why
 4GB for /var? The last time I installed a new machine I made / 1GB as
 I'd found out from a previous install that 512MB wasn't really
 enough, and then decided to make /var bigger than the Handbook said
 as well and made it 3GB. This has turned out to be total overkill:
 
 art...@fileserver df -h /var
 Filesystem  SizeUsed   Avail Capacity  Mounted on
 /dev/ad10s1d2.9G205M2.5G 8%/var
 
 I'm sure my use of this machine is very simple and nowhere near as
 large as other people's but a leap of 4-16 times what it currently
 suggests in the Handbook seems a bit excessive, especially if people
 are installing onto older kit. OTOH, playing devil's advocate with
 myself, disks are huge these days so why not?
 

I came up with that value based on discussion on IRC. I also thought
that portsnap might take up quite a bit more than it actually does. It
perhaps doesn't need updated from its current value.

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


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-02 Thread Arthur Chance

On 07/02/10 15:38, Bruce Cran wrote:

On Fri, 02 Jul 2010 15:04:10 +0100
Arthur Chancefree...@qeng-ho.org  wrote:


As a matter of idle curiosity with a bit of education thrown in, why
4GB for /var? The last time I installed a new machine I made / 1GB as
I'd found out from a previous install that 512MB wasn't really
enough, and then decided to make /var bigger than the Handbook said
as well and made it 3GB. This has turned out to be total overkill:

art...@fileserver  df -h /var
Filesystem  SizeUsed   Avail Capacity  Mounted on
/dev/ad10s1d2.9G205M2.5G 8%/var

I'm sure my use of this machine is very simple and nowhere near as
large as other people's but a leap of 4-16 times what it currently
suggests in the Handbook seems a bit excessive, especially if people
are installing onto older kit. OTOH, playing devil's advocate with
myself, disks are huge these days so why not?



I came up with that value based on discussion on IRC. I also thought
that portsnap might take up quite a bit more than it actually does. It
perhaps doesn't need updated from its current value.


I suspect whoever you were talking to probably has more of a clue than I 
do. As a quick data point, I just ran portsnap fetch update while 
another process did a df /var; sleep 1 loop and /var increased by 
about 30MB at its peak. That was a week after the last port update. I've 
no idea how much space a portsnap fetch extract would take and would 
rather not do one right now. Similarly I've no idea how much 
freebsd-update might take.

___
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


/boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Ed Flecko
Hi folks,
I'm running FreeBSD 8.0, and I'm trying to simple stay current with
all security patches. It's a clean install of FreeBSD 8.0 on a 50G
drive, and I let sysinstall select the default partition configuration
when I did the install.

I've taken the following steps:


# csup -4 /etc/stable-supfile
# cd /usr/src
# make buildworld
# make buildkernel
# make installkernel

After the make installkernel command, the / partition shows 106%
capacity (and it started as 500M).

Here's my before and after running make installkernel

Before:

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a496M253M203M55%/
devfs  1.0K1.0K  0B   100%/dev
/dev/da0s1e496M 12K456M 0%/tmp
/dev/da0s1f 44G3.0G 37G 8%/usr
/dev/da0s1d1.9G 10M1.8G 1%/var

After:

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a496M485M-29M   106%/
devfs  1.0K1.0K  0B   100%/dev
/dev/da0s1e496M 12K456M 0%/tmp
/dev/da0s1f 44G3.0G 37G 8%/usr
/dev/da0s1d1.9G 10M1.8G 1%/var

# cd /
# du -h -d2 | grep M

2.0K./tmp/.XIM-unix
 33M./usr/bin
 18M./usr/include
 37M./usr/lib
 20M./usr/libexec
267M ./usr/local
 20M./usr/sbin
 37M./usr/share
511M ./usr/src
450M ./usr/ports
 10M./var/db
 10M./var
1.7M./etc
1.1M./bin
233M ./boot/kernel
233M ./boot/kernel.old
466M ./boot
7.4M./lib
4.3M./rescue
4.4M./sbin

It looks like the both kernels are eating up the entire /

Right?

What am I doing wrong? The isn't normal, is it?

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


FreeBSD 8.0 failes to start

2010-07-01 Thread Giorgos Tsiapaliokas
hello my os fails to start,this is the error and also my keyboard doesn't
work

Root mount waiting for: usbus3

Trying to mount root from ufs:/dev/ad2s2a

ROOT MOUNT ERROR:

If you have invalid mount options, reboot, and first try the following
from the loader prompt:


 set vfs.root.mountfrom.options=rw

and then remove invalid mount options from /etc/fstab.
Loader variables:

vfs.root.mountfrom=ufs:/dev/ad0s2a

vfs.root.mountfrom.options=rw
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Chip Camden
On Jul 01 11:24, Ed Flecko wrote:
 Hi folks,
 I'm running FreeBSD 8.0, and I'm trying to simple stay current with
 all security patches. It's a clean install of FreeBSD 8.0 on a 50G
 drive, and I let sysinstall select the default partition configuration
 when I did the install.
 
 I've taken the following steps:
 
 
 # csup -4 /etc/stable-supfile
 # cd /usr/src
 # make buildworld
 # make buildkernel
 # make installkernel
 
 After the make installkernel command, the / partition shows 106%
 capacity (and it started as 500M).
 
 Here's my before and after running make installkernel
 
 Before:
 
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/da0s1a496M253M203M55%/
 devfs  1.0K1.0K  0B   100%/dev
 /dev/da0s1e496M 12K456M 0%/tmp
 /dev/da0s1f 44G3.0G 37G 8%/usr
 /dev/da0s1d1.9G 10M1.8G 1%/var
 
 After:
 
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/da0s1a496M485M-29M   106%/
 devfs  1.0K1.0K  0B   100%/dev
 /dev/da0s1e496M 12K456M 0%/tmp
 /dev/da0s1f 44G3.0G 37G 8%/usr
 /dev/da0s1d1.9G 10M1.8G 1%/var
 
 # cd /
 # du -h -d2 | grep M
 
 2.0K  ./tmp/.XIM-unix
  33M  ./usr/bin
  18M  ./usr/include
  37M  ./usr/lib
  20M  ./usr/libexec
 267M ./usr/local
  20M  ./usr/sbin
  37M  ./usr/share
 511M ./usr/src
 450M ./usr/ports
  10M  ./var/db
  10M  ./var
 1.7M  ./etc
 1.1M  ./bin
 233M ./boot/kernel
 233M ./boot/kernel.old
 466M ./boot
 7.4M  ./lib
 4.3M  ./rescue
 4.4M  ./sbin
 
 It looks like the both kernels are eating up the entire /
 
 Right?
 
 What am I doing wrong? The isn't normal, is it?
 
 Thank you,
 Ed
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

I've experienced the same thing on amd64 -- the default partition size
for root is too small.  Rather than going to the trouble of correcting
it, I just 'rm -r /boot/kernel.old' when it fails and then redo 'make
installkernel', and all seems OK.

-- 
Sterling (Chip) Camden
http://camdensoftware.com | http://chipstips.com | http://chipsquips.com


pgpj8YPHIDDdA.pgp
Description: PGP signature


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Ed Flecko
Thanks guys.

:-)

Doesn't that seem odd that the default partition size for root
(512M) isn't quite big enough?

Should I make the partition size slightly larger (on future installs)
to eliminate this problem?

Ed
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Lowell Gilbert
Chip Camden sterl...@camdensoftware.com writes:

 I've experienced the same thing on amd64 -- the default partition size
 for root is too small.  Rather than going to the trouble of correcting
 it, I just 'rm -r /boot/kernel.old' when it fails and then redo 'make
 installkernel', and all seems OK.

That's a little dangerous, because you're deleting your last known-good
kernel.  I'd feel better about recommending just removing the
unnecessary kernel modules (which for a lot of people, is all of 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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Ed Flecko
Chip,
That sounds like a smart thing to do; can you tell me more about how
to do that (or point me to a www resource; I'm happy to read more
about that).

:-)

Ed
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread James Bailie
Try rm -r /boot/kernel.old
I bet that's the problem.
--
James Bailie
http://www.mammothcheese.ca

-Original Message-
From: Ed Flecko edfle...@gmail.com
Sender: owner-freebsd-questi...@freebsd.org
Date: Thu, 1 Jul 2010 11:24:46 
To: freebsd-questions@freebsd.org
Subject: /boot is full after running make installkernel on FreeBSD 8.0

Hi folks,
I'm running FreeBSD 8.0, and I'm trying to simple stay current with
all security patches. It's a clean install of FreeBSD 8.0 on a 50G
drive, and I let sysinstall select the default partition configuration
when I did the install.

I've taken the following steps:


# csup -4 /etc/stable-supfile
# cd /usr/src
# make buildworld
# make buildkernel
# make installkernel

After the make installkernel command, the / partition shows 106%
capacity (and it started as 500M).

Here's my before and after running make installkernel

Before:

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a496M253M203M55%/
devfs  1.0K1.0K  0B   100%/dev
/dev/da0s1e496M 12K456M 0%/tmp
/dev/da0s1f 44G3.0G 37G 8%/usr
/dev/da0s1d1.9G 10M1.8G 1%/var

After:

Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a496M485M-29M   106%/
devfs  1.0K1.0K  0B   100%/dev
/dev/da0s1e496M 12K456M 0%/tmp
/dev/da0s1f 44G3.0G 37G 8%/usr
/dev/da0s1d1.9G 10M1.8G 1%/var

# cd /
# du -h -d2 | grep M

2.0K./tmp/.XIM-unix
 33M./usr/bin
 18M./usr/include
 37M./usr/lib
 20M./usr/libexec
267M ./usr/local
 20M./usr/sbin
 37M./usr/share
511M ./usr/src
450M ./usr/ports
 10M./var/db
 10M./var
1.7M./etc
1.1M./bin
233M ./boot/kernel
233M ./boot/kernel.old
466M ./boot
7.4M./lib
4.3M./rescue
4.4M./sbin

It looks like the both kernels are eating up the entire /

Right?

What am I doing wrong? The isn't normal, is it?

Thank you,
Ed
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Chip Camden
On Jul 01 15:10, Lowell Gilbert wrote:
 Chip Camden sterl...@camdensoftware.com writes:
 
  I've experienced the same thing on amd64 -- the default partition size
  for root is too small.  Rather than going to the trouble of correcting
  it, I just 'rm -r /boot/kernel.old' when it fails and then redo 'make
  installkernel', and all seems OK.
 
 That's a little dangerous, because you're deleting your last known-good
 kernel.  I'd feel better about recommending just removing the
 unnecessary kernel modules (which for a lot of people, is all of 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

Could you expand on that?  I'd prefer a less risky option, especially
because I always get this paralyzing fear that I'll accidentally hit
Enter after I've typed 'rm -r /'

-- 
Sterling (Chip) Camden
http://camdensoftware.com | http://chipstips.com | http://chipsquips.com


pgpsdgVN3XSlj.pgp
Description: PGP signature


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Chip Camden
On Jul 01 12:07, Ed Flecko wrote:
 Thanks guys.
 
 :-)
 
 Doesn't that seem odd that the default partition size for root
 (512M) isn't quite big enough?
 
 Should I make the partition size slightly larger (on future installs)
 to eliminate this problem?
 
 Ed
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

I know *I* will.

-- 
Sterling (Chip) Camden
http://camdensoftware.com | http://chipstips.com | http://chipsquips.com


pgpg29YkGipfM.pgp
Description: PGP signature


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Lowell Gilbert
Chip Camden sterl...@camdensoftware.com writes:

 On Jul 01 15:10, Lowell Gilbert wrote:
 Chip Camden sterl...@camdensoftware.com writes:
 
  I've experienced the same thing on amd64 -- the default partition size
  for root is too small.  Rather than going to the trouble of correcting
  it, I just 'rm -r /boot/kernel.old' when it fails and then redo 'make
  installkernel', and all seems OK.
 
 That's a little dangerous, because you're deleting your last known-good
 kernel.  I'd feel better about recommending just removing the
 unnecessary kernel modules (which for a lot of people, is all of them).

 Could you expand on that?  I'd prefer a less risky option, especially
 because I always get this paralyzing fear that I'll accidentally hit
 Enter after I've typed 'rm -r /'

A healthy fear, indeed.

For one thing, I'd certainly rather have someone 
do rm /boot/kernel.old/*.ko than rm -r /boot/kernel.old.

Being even more selective is an obvious extension...
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Lowell Gilbert
Chip Camden sterl...@camdensoftware.com writes:

 On Jul 01 12:07, Ed Flecko wrote:
 Thanks guys.
 
 :-)
 
 Doesn't that seem odd that the default partition size for root
 (512M) isn't quite big enough?
 
 Should I make the partition size slightly larger (on future installs)
 to eliminate this problem?
 
 Ed

 I know *I* will.

*Considerably* larger, I would say.  The number of different kernel
 modules is growing all the time, and that's where the expansion is
 mostly coming from.

Or just make one large partition.  Not on a server, but I don't see much
reason for using multiple partitions on a laptop.

___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Anders Andersson

 A healthy fear, indeed.

 For one thing, I'd certainly rather have someone
 do rm /boot/kernel.old/*.ko than rm -r /boot/kernel.old.

 Being even more selective is an obvious extension...


Why not move the old useless kernel to another drive. Sure if the system
kernel fails and you need the old one, there is a little bit more work, but
nothing that I can't see be solved by:
1. booting from a livecd
2. mount the /boot and /theotherpartition
3. move the kernel back and move the faulty one away
4. reboot

That saves you from deleting the entire computer/world/Internet and save the
old kernel as well. However, I have never done this myself but the theory
sounds good.
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Ed Flecko
Since it would be smart to have at least one known, good kernel, why
not make the / partition maybe 1G?

I know the smaller the / partition, the better the performance (since
it's the first partition of the drive), but I can't imagine a slightly
larger / partition would impact performance that much, do you think?

Ed
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread krad
On 1 July 2010 21:12, Ed Flecko edfle...@gmail.com wrote:

 Since it would be smart to have at least one known, good kernel, why
 not make the / partition maybe 1G?

 I know the smaller the / partition, the better the performance (since
 it's the first partition of the drive), but I can't imagine a slightly
 larger / partition would impact performance that much, do you think?

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



On ufs installs I tend to have a single 8GB partition for /, I then hang
/tmp, /var, /home, and /usr/local off it along with any other fs i need.

When doing a zfs root install I obviously dont have to specify the size.
However I still tend to put on an 8GB reservation on 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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Henrik Hudson
On Thu, 01 Jul 2010, Lowell Gilbert wrote:

 Chip Camden sterl...@camdensoftware.com writes:
 
  On Jul 01 12:07, Ed Flecko wrote:
  Thanks guys.
  
  :-)
  
  Doesn't that seem odd that the default partition size for root
  (512M) isn't quite big enough?
  
  Should I make the partition size slightly larger (on future installs)
  to eliminate this problem?
  
  Ed
 
  I know *I* will.
 
 *Considerably* larger, I would say.  The number of different kernel
  modules is growing all the time, and that's where the expansion is
  mostly coming from.
 
 Or just make one large partition.  Not on a server, but I don't see much
 reason for using multiple partitions on a laptop.

Multiple partitions still isn't a bad idea if you ever have to fsck
and even on a desktop / laptop I usually mount /tmp as noexec. (note:
installworld requires exec in /tmp, so you will have to remount /tmp
if you use that). Also, it's easier to recover if you can boot
single user mode and run a quick fsck on / when it's small. It
doesn't happen often, but when it does it's easier.

One thing I didn't see is a /home. Is your /home under /usr or /? I
have a 8-STABLE system with both kernel and kernel.old and they only
take up 520MB or so. I normally make my / 2-4GB and then mount a
separate /var (2-10GB depending), /tmp (2-10GB depending) and
/usr (15-50gb depending) and /home (the rest)  . A separate /home is very nice
if you're rebuilding or re-installing you can just not format that
partition and all your stuff will still be there. Of course, have
backups as well :)

Henrik
-- 
Henrik Hudson
li...@rhavenn.net
-
God, root, what is difference? Pitr; UF 

___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Jerry McAllister
On Thu, Jul 01, 2010 at 11:24:46AM -0700, Ed Flecko wrote:

 Hi folks,
 I'm running FreeBSD 8.0, and I'm trying to simple stay current with
 all security patches. It's a clean install of FreeBSD 8.0 on a 50G
 drive, and I let sysinstall select the default partition configuration
 when I did the install.
 
 I've taken the following steps:
 
 
 # csup -4 /etc/stable-supfile
 # cd /usr/src
 # make buildworld
 # make buildkernel
 # make installkernel
 
 After the make installkernel command, the / partition shows 106%
 capacity (and it started as 500M).

 
 Here's my before and after running make installkernel
 

 Before:
 
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/da0s1a496M253M203M55%/
 devfs  1.0K1.0K  0B   100%/dev
 /dev/da0s1e496M 12K456M 0%/tmp
 /dev/da0s1f 44G3.0G 37G 8%/usr
 /dev/da0s1d1.9G 10M1.8G 1%/var
 
 After:
 
 Filesystem SizeUsed   Avail Capacity  Mounted on
 /dev/da0s1a496M485M-29M   106%/
 devfs  1.0K1.0K  0B   100%/dev
 /dev/da0s1e496M 12K456M 0%/tmp
 /dev/da0s1f 44G3.0G 37G 8%/usr
 /dev/da0s1d1.9G 10M1.8G 1%/var
 
 # cd /
 # du -h -d2 | grep M
 
 2.0K  ./tmp/.XIM-unix
  33M  ./usr/bin
  18M  ./usr/include
  37M  ./usr/lib
  20M  ./usr/libexec
 267M ./usr/local
  20M  ./usr/sbin
  37M  ./usr/share
 511M ./usr/src
 450M ./usr/ports
  10M  ./var/db
  10M  ./var
 1.7M  ./etc
 1.1M  ./bin
 233M ./boot/kernel
 233M ./boot/kernel.old
 466M ./boot
 7.4M  ./lib
 4.3M  ./rescue
 4.4M  ./sbin
 
 It looks like the both kernels are eating up the entire /
 
 Right?

They are using up about twice the space that two kernels are
using on my machine here.

 
 What am I doing wrong? The isn't normal, is it?

Normal is probably not a very real concept.
I get along with with 384MB for my root partition and I have a couple of
kernels there.   It is running at 92% capacity so I could probably use 
some more, but shouldn't need over 512 MB,  (Tho that isn't 8.xx so
I might have to set my sights larger when I get to that).   

jerry

 
 Thank you,
 Ed
 ___
 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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Jerry McAllister
On Thu, Jul 01, 2010 at 12:07:50PM -0700, Ed Flecko wrote:

 Thanks guys.
 
 :-)
 
 Doesn't that seem odd that the default partition size for root
 (512M) isn't quite big enough?
 
 Should I make the partition size slightly larger (on future installs)
 to eliminate this problem?

Many people find the default partitions inadequate for their 
needs.  It is OK to change them.   So, sure.

jerry


 
 Ed
 ___
 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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Ed Flecko
Henrik,
When I FIRST installed 8.0, I did create a separate /home partition.
When I installed the kernel and starting running out of space in / , I
thought O.K...I'll let FreeBSD make the partition sizes IT wants to
and see if I have the same problem, and I did.

Apparently, 512M is just, not, quite big enough so I think I'll try 1G
to give me plenty of room.

Ed
___
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: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Robert Huff

Henrik Hudson writes:

   Or just make one large partition.  Not on a server, but I don't 
   see much reason for using multiple partitions on a laptop.
  
  Multiple partitions still isn't a bad idea if you ever have to
  fsck and even on a desktop / laptop I usually mount /tmp as
  noexec. (note: installworld requires exec in /tmp, so you will
  have to remount /tmp if you use that). Also, it's easier to
  recover if you can boot single user mode and run a quick fsck on
  / when it's small. It doesn't happen often, but when it does it's
  easier.

1) The preferred backup method uses dump.
2) dump works on entire partitions.
2a) It makes little sense to back up 500 gbytes when all you
need to preserve is 5 gbytes.
3) If you regularly need to dump more than a single partition,
quite a few people have scripts they will probably be willing to
share.


Robert Huff





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


Re: /boot is full after running make installkernel on FreeBSD 8.0

2010-07-01 Thread Chip Camden
On Jul 01 12:29, Chip Camden wrote:
 On Jul 01 12:07, Ed Flecko wrote:
  Thanks guys.
  
  :-)
  
  Doesn't that seem odd that the default partition size for root
  (512M) isn't quite big enough?
  
  Should I make the partition size slightly larger (on future installs)
  to eliminate this problem?
  
  Ed
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
 
 I know *I* will.
 
 -- 
 Sterling (Chip) Camden
 http://camdensoftware.com | http://chipstips.com | http://chipsquips.com

I've found that if you just rm /boot/kernel.old/*.symbols, you'll have
more than enough space.  Is that safe enough?


-- 
Sterling (Chip) Camden
http://camdensoftware.com | http://chipstips.com | http://chipsquips.com


pgp8OM1K20onO.pgp
Description: PGP signature


Re: FreeBSD 8.0 p#3

2010-06-28 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 28/06/2010 04:42:21, per...@pluto.rain.com wrote:
 Matthew Seaman m.sea...@infracaninophile.co.uk wrote:
 
 Fix your ports supfile: for ports you /always/ want HEAD ...
 
 s/always/almost /
 
 If one wanted to download a copy of the ports tree as it existed
 when, say, 6.1 was released, specifying the corresponding tag would
 be the way to get it.  Granted one seldom wants a frozen checkpoint
 like that.

You know, practically speaking, the only people that actually need to
use anything other than HEAD in a ports supfile are the people building
the packages to go with a system release.  And they only need to do that
right around the point the release is being cut.

The whole mindset that you need to match the ports tree to the OS
version you have installed is just wrong[*].  Especially if you try and
back-rev as far as 6.1-RELEASE.  You're just going to be ignoring
several years worth of bug fixes, not to mention opening yourself to any
number of security holes that have since been discovered and closed.
Granted you cannot use the current ports tree with a 6.1-RELEASE box.
This is a hint that you really need to upgrade the OS as well as the
ports...

Cheers,

Matthew

[*] Even if you will be installing 8.1-RELEASE on the day it is released
and using packages from the install media, you should still be checking
for updated packages and security patches.

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwoPccACgkQ8Mjk52CukIyP5wCfa4ZnVHPfYbBqPPs7z254BkUc
9CgAn3Elhkz5eB2GEzdmUxUpREJSiCxP
=wL38
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD 8.0 p#3

2010-06-28 Thread krad
On 28 June 2010 07:14, Matthew Seaman m.sea...@infracaninophile.co.ukwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 28/06/2010 04:42:21, per...@pluto.rain.com wrote:
  Matthew Seaman m.sea...@infracaninophile.co.uk wrote:
 
  Fix your ports supfile: for ports you /always/ want HEAD ...
 
  s/always/almost /
 
  If one wanted to download a copy of the ports tree as it existed
  when, say, 6.1 was released, specifying the corresponding tag would
  be the way to get it.  Granted one seldom wants a frozen checkpoint
  like that.

 You know, practically speaking, the only people that actually need to
 use anything other than HEAD in a ports supfile are the people building
 the packages to go with a system release.  And they only need to do that
 right around the point the release is being cut.

 The whole mindset that you need to match the ports tree to the OS
 version you have installed is just wrong[*].  Especially if you try and
 back-rev as far as 6.1-RELEASE.  You're just going to be ignoring
 several years worth of bug fixes, not to mention opening yourself to any
 number of security holes that have since been discovered and closed.
 Granted you cannot use the current ports tree with a 6.1-RELEASE box.
 This is a hint that you really need to upgrade the OS as well as the
 ports...

Cheers,

Matthew

 [*] Even if you will be installing 8.1-RELEASE on the day it is released
 and using packages from the install media, you should still be checking
 for updated packages and security patches.

 - --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkwoPccACgkQ8Mjk52CukIyP5wCfa4ZnVHPfYbBqPPs7z254BkUc
 9CgAn3Elhkz5eB2GEzdmUxUpREJSiCxP
 =wL38
 -END PGP SIGNATURE-
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org



If you do need to install packages that were released with the original os
build then the easiest way to do it is thus:

 export 
PACKAGESITE=ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/ports/`uname
-a | awk '{print $NF}'`/packages-`uname  -r | sed s/STABLE/RELEASE/ |
tr 'A-Z' 'a-z'`/Latest/
 pkg_add -r package
___
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 p#3

2010-06-28 Thread Grant Peel
- Original Message - 
From: Balázs Mátéffy repcs...@gmail.com

To: freebsd-questions@freebsd.org
Sent: Sunday, June 27, 2010 2:42 PM
Subject: Re: FreeBSD 8.0 p#3



Hi,

Maybe portsnap fetch extract ?

Maybe the tag in your supfile was wrong for the ports.

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





I used the method described above and it got them all back.

Thanks for all the feedback everyone!

-Grant 



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


FreeBSD 8.0 p#3

2010-06-27 Thread Grant Peel
Hi all,

When I ran CVSUp last time I seemed to have lost all ports accept the newest 
ones. i.e. almost all the port dirs are empty.

What is the best way to get them back?

-Grant
___
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 p#3

2010-06-27 Thread Balázs Mátéffy
Hi,

Maybe portsnap fetch extract ?

Maybe the tag in your supfile was wrong for the ports.

MB.
___
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 p#3

2010-06-27 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 27/06/2010 19:38:43, Grant Peel wrote:

 When I ran CVSUp last time I seemed to have lost all ports accept the
 newest ones. i.e. almost all the port dirs are empty.
 
 What is the best way to get them back?

Fix your ports supfile: for ports you /always/ want HEAD.  If you put
something like RELENG_8_1 in ports.supfile, then you will see exactly
the effect you described.  It's quite obvious why: the ports are simply
not tagged RELENG_X_Y.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwnv0cACgkQ8Mjk52CukIy+MwCeIYnylzJ408+7UdjvKVgT/n4/
YSIAn0ZrKA3Pqt0agETiQbMg6ErCoaRS
=jOPF
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD 8.0 p#3

2010-06-27 Thread krad
On 27 June 2010 22:14, Matthew Seaman m.sea...@infracaninophile.co.ukwrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 27/06/2010 19:38:43, Grant Peel wrote:

  When I ran CVSUp last time I seemed to have lost all ports accept the
  newest ones. i.e. almost all the port dirs are empty.
 
  What is the best way to get them back?

 Fix your ports supfile: for ports you /always/ want HEAD.  If you put
 something like RELENG_8_1 in ports.supfile, then you will see exactly
 the effect you described.  It's quite obvious why: the ports are simply
 not tagged RELENG_X_Y.

Cheers,

Matthew

 - --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
 -BEGIN PGP SIGNATURE-
 Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAkwnv0cACgkQ8Mjk52CukIy+MwCeIYnylzJ408+7UdjvKVgT/n4/
 YSIAn0ZrKA3Pqt0agETiQbMg6ErCoaRS
 =jOPF
 -END PGP SIGNATURE-
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org



assuming your ports are the the standard place best way to do it is
/usr/bin/csup -h cvsup.uk.FreeBSD.org
/usr/share/examples/cvsup/ports-supfile. Obviously replace the uk for
something more appropriate for 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: FreeBSD 8.0 p#3

2010-06-27 Thread perryh
Matthew Seaman m.sea...@infracaninophile.co.uk wrote:

 Fix your ports supfile: for ports you /always/ want HEAD ...

s/always/almost /

If one wanted to download a copy of the ports tree as it existed
when, say, 6.1 was released, specifying the corresponding tag would
be the way to get it.  Granted one seldom wants a frozen checkpoint
like that.
___
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


threads and malloc/free on freebsd 8.0

2010-06-11 Thread Vikash Badal
Greetings.

I have a thread socket application that seems to be behaving strangely

In a worker thread, I have the following.

CODE---
   LogMessage(DEBUG_0, allocated %ld, malloc_usable_size(inst));
   
   free(inst);
   
   LogMessage(DEBUG_0, after free allocated %ld, malloc_usable_size(inst));

   free(inst);
   
return 0;
---/CODE

output allocated 2304
output after free allocated 2304

from playing around, this should have segfaulted but it didn't:


if I try this from a non threaded, non socket code:
CODE--
   char *z;

   z = (char*)malloc(1000);
   printf(malloc is %ld\n, malloc_usable_size(z));
   free(z);
   printf(after malloc is %ld\n, malloc_usable_size(z));
--/CODE

Output malloc is 1024
Output Segmentation fault (core dumped)



Can anyone enlighten me ? why did the 2nd free not cause a segmentation fault ?


If im not clear, please forgive me.


Please note: This email and its content are subject to the disclaimer as 
displayed at the following link 
http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. 
Should you not have Web access, send a mail to disclaim...@is.co.za and a copy 
will be emailed to 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: threads and malloc/free on freebsd 8.0

2010-06-11 Thread Dan Nelson
In the last episode (Jun 11), Vikash Badal said:
 I have a thread socket application that seems to be behaving strangely
 
 In a worker thread, I have the following.

 CODE---
LogMessage(DEBUG_0, allocated %ld, malloc_usable_size(inst));
free(inst);
LogMessage(DEBUG_0, after free allocated %ld, malloc_usable_size(inst));
free(inst);
 return 0;
 ---/CODE
 output allocated 2304
 output after free allocated 2304
 
 from playing around, this should have segfaulted but it didn't:
 
 if I try this from a non threaded, non socket code:
 CODE--
char *z;
 
z = (char*)malloc(1000);
printf(malloc is %ld\n, malloc_usable_size(z));
free(z);
printf(after malloc is %ld\n, malloc_usable_size(z));
 --/CODE
 
 Output malloc is 1024
 Output Segmentation fault (core dumped)
 
 Can anyone enlighten me ? why did the 2nd free not cause a segmentation
 fault ?

You asked this same question on May 24:

  http://lists.freebsd.org/pipermail/freebsd-questions/2010-May/216652.html

The answer is still the same:

 You're invoking undefined behaviour here by calling malloc_usable_size on a
 free'd pointer.  The function is free to crash, return useful data, or
 return useless data, at its discretion :)

The fix is to remove your second call to malloc_usable_size(z)).  Then
neither version will crash.  Also, a useful habit to start is to explicitly
zero the pointer you just free'd, to prevent it from being used accidentally
later.

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


RE: threads and malloc/free on freebsd 8.0

2010-06-11 Thread Vikash Badal
 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@freebsd.org] On Behalf Of Dan Nelson
 Sent: 11 June 2010 09:56 PM
 To: Vikash Badal
 Cc: freebsd-questions@freebsd.org
 Subject: Re: threads and malloc/free on freebsd 8.0
 
 
 The fix is to remove your second call to malloc_usable_size(z)).  Then
 neither version will crash.  Also, a useful habit to start is to
 explicitly
 zero the pointer you just free'd, to prevent it from being used
 accidentally
 later.

Made this change:

CODE---
   LogMessage(DEBUG_0, allocated %ld, malloc_usable_size(inst));
   
   free(inst);
   free(inst);
   
return 0;
---/CODE

Still no seg fault.

The reason im am doing this is that from top I can see the memory grow as I 
connect to this app.
When I disconnect, the memory used ( as displayed from top ) does not decrease.


I tried:
CODE-

char *chunk;
chunk = (char*) malloc(120);
sleep(30);
free(chunk)
sleep(30);

free(inst);
free(inst);

--/CODE

Top show the memory for the chunk section increase and then decrease  when freed

However, the when I leave the worker thread ( close the connection ), the 
memory usage does not decrease.

The more connections I open and close, the faster the memory grows.


 
 --
   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
Please note: This email and its content are subject to the disclaimer as 
displayed at the following link 
http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. 
Should you not have Web access, send a mail to disclaim...@is.co.za and a copy 
will be emailed to 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: threads and malloc/free on freebsd 8.0

2010-06-11 Thread Dan Nelson
In the last episode (Jun 11), Vikash Badal said:
  -Original Message-
  From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
  
  The fix is to remove your second call to malloc_usable_size(z)).  Then
  neither version will crash.  Also, a useful habit to start is to
  explicitly zero the pointer you just free'd, to prevent it from being
  used accidentally later.
 
 Made this change:
 
 CODE---
LogMessage(DEBUG_0, allocated %ld, malloc_usable_size(inst));

free(inst);
free(inst);

 return 0;
 ---/CODE
 
 Still no seg fault.
 
 The reason im am doing this is that from top I can see the memory grow as
 I connect to this app.  When I disconnect, the memory used ( as displayed
 from top ) does not decrease.

For performance reasons, the malloc library may not immediately release free
memory back to the OS.  Also, depending on the position of the memory block
being freed, it may not be releasable back to the OS (if malloc used sbrk
for allocations, it can only free memory at the far end of the address
space, for example).  Setting the environment variable MALLOC_OPTIONS to
dM10f might help (disable use of sbrk(), enable use of mmap(), don't cache
any free pages), but you still may not see any change according to top.

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


Re: minicom freebsd 8.0

2010-06-08 Thread akash kumar
Hi,

Finally worked for me. Thanks all for your help.
Below are the steps.

1. /var/log/messages has below message when ever usb port is inserted. 
 Unknown USB device: vendor 0x4348 product* 0x5523* bus uhub2 

2. grepping for vendor no. 
 grep 0x4348 /usr/src/sys/dev/usb/* 
/usr/src/sys/dev/usb/usbdevs:vendor WCH0x4348QinHeng Electronics 

 cat /usr/src/sys/dev/usb/usbdevs | grep WCH 
vendor WCH0x4348QinHeng Electronics 
/* WCH products */ 
product WCH CH341SER*0x5523 *   CH341/CH340 USB-Serial Bridge 
product WCH2 CH341SER0x7523CH341/CH340 USB-Serial Bridge 


3. After bit of googling with 'CH341/CH340 USB-Serial Bridge', found that 
specific module is missing.
  Added uchcom in to the config file and rebuilt the kernel and booted 
with it. 
 kldstat -v | grep uchcom 
   309 uhub/uchcom 

4. After rebooting could see below messages i.e device being recognized 
as the module is already present 
ugen2.3: vendor 0x4348 at usbus2 
ucom0: vendor 0x4348 USB-SER!, rev 1.10/2.50, addr 3 on usbus2 
ucom0: CH340 detected 

The device is created with name  /dev/cuaU0 and it worked finally with minicom. 


Thanks,
Akash.




From: C. P. Ghost cpgh...@cordula.ws
To: akash kumar akashb...@yahoo.co.in
Cc: freebsd-questions@freebsd.org
Sent: Wed, 2 June, 2010 3:36:54 PM
Subject: Re: minicom freebsd 8.0

On Wed, Jun 2, 2010 at 11:30 AM, akash kumar akashb...@yahoo.co.in wrote:
 Hi,

 I was referring to minicom command similar to one on linux.
 On linux the config file is /etc/minirc.configfile and the  Serial Device 
 is  /dev/ttyUSB0, which was working for me.
 On freebsd  the config file is /usr/local/etc/minicom/minirc.configfile, 
 but not sure what to update in the field 'pu port'.

 I tried with /dev/ugen2.2 but got below error
 minicom: cannot open /dev/ugen2.2: Permission denied

 Please let me know what needs to be updated in the 'pu port' field.

Ah, okay. ugen is a generic device. I think you can't use that directly
if you have a usb-to-serial converter.

I guess you need to kldload a kernel module specific to your usb-to-serial
converter. For example something like uplcom, umodem etc. This would
create a new entry in /dev that you can use in minicom.

Permissions for those devices can be set in /etc/devfs.rules (and restarting
devfs with /etc/rc.d/devfs restart). You may also want to look at /etc/devd.conf

I'm not familiar with usb-to-serial converters, so I can't help more than that.
Others may have more experience there.

 Thanks,
 Akash.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/



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


FreeBSD 8.0 linux emulator kernel panic

2010-06-06 Thread Bogdan Webb
I'm having issues with the Fedora Core6 linux emulator on FreeBSD 8.0 it
panics when i run HLDS, the same issue was addressed by Daniel Ballenger in
http://lists.freebsd.org/pipermail/freebsd-stable/2010-February/054646.htmlbut
i did not get the fix. Giovanni Trematerra gave a response that it was
fix in a r200768 now it is clear that i do not know that that code means
(in my eyes it's a bsd build or smth) but i'm currently running the latest
8.0-RELEASE-p3 available. Please advise on how to patch the kernel panic.
___
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 linux emulator kernel panic

2010-06-06 Thread Pieter de Goeje
On Sunday 06 June 2010 19:31:00 Bogdan Webb wrote:
 I'm having issues with the Fedora Core6 linux emulator on FreeBSD 8.0 it
 panics when i run HLDS, the same issue was addressed by Daniel Ballenger in
 http://lists.freebsd.org/pipermail/freebsd-stable/2010-February/054646.html
but i did not get the fix. Giovanni Trematerra gave a response that it was
 fix in a r200768 now it is clear that i do not know that that code means
 (in my eyes it's a bsd build or smth) but i'm currently running the latest
 8.0-RELEASE-p3 available. Please advise on how to patch the kernel panic.

r200768 uniquely identifies a single change to the FreeBSD source code. In 
this case it identifies a bugfix to linux_signal.c.

You need to run 8-STABLE (currently it will show up as 8.1-PRERELEASE) to get 
the fix. I know it works because I also run multiple HLDS processes on 
FreeBSD.

To get 8-STABLE: cvsup/csup the sources to RELENG_8, then follow these 
instructions to upgrade:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html

Good luck!

--
Pieter de Goeje
___
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


Issues reinstalling Bind9 on FreeBSD 8.0

2010-06-03 Thread Bogdan Webb
Ok i'll make it short coz it's the 2nd time i write this -.-' and don't even
ask why :D
So here it goes: Fresh FreeBSD 8.0 install, installed bind97 to witch i have
busted up the named.conf fine and tought, at the time, that deleting the
whole content of /etc/namedb and reinstalling the bind port will simply
write the files up again. Well it's not like that... i;ve did pgk_delete,
make deinstall, make rmconfig, tryed to manually delete all the files
required but no joy. Now i've tryed to use all bind9 bind96 and bind97 from
ports and even get the source from isc.org but they all did the same, even
more after a reboot and again the same process (source+ports) the builds
didn't even install the named binary
/etc/rc.d/named: WARNING: run_rc_command: cannot run /usr/sbin/named

Please do tell me how to purge completly a port, delete all it's files and
configs then install it again from scratch...

I'm using a 64bit FreeBSD 8.0 on AMD Athlon X2.

Best regards, Bogdan.
___
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: Issues reinstalling Bind9 on FreeBSD 8.0

2010-06-03 Thread Olivier Nicole
Hi,

 /etc/rc.d/named: WARNING: run_rc_command: cannot run /usr/sbin/named

/etc/rc.d/named ans /usr/sbin/named are not from the ports but from
native FreeBSD distribution.

Portsx will go into /usr/local/ only.

So apparently you mixed-up distribution and port, deleted part of one
and part of the other...

If you have a fresh FreeBSD install, just reinstall it?

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


Re: Issues reinstalling Bind9 on FreeBSD 8.0

2010-06-03 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 03/06/2010 16:51:09, Olivier Nicole wrote:

 /etc/rc.d/named: WARNING: run_rc_command: cannot run /usr/sbin/named
 
 /etc/rc.d/named ans /usr/sbin/named are not from the ports but from
 native FreeBSD distribution.
 
 Portsx will go into /usr/local/ only.
 
 So apparently you mixed-up distribution and port, deleted part of one
 and part of the other...
 
 If you have a fresh FreeBSD install, just reinstall it?

Also, if you're trying to run one of the bind ports, then you should
just use all the default configuration stuff in /etc/namedb (which is
really /var/named/etc/namedb) and the rc script /etc/rc.d/named with the
binaries installed by the port by putting the following in /etc/rc.conf:

named_enable=YES
named_program=/usr/local/sbin/named
named_flags=-c /etc/namedb/named.conf

This is a bit unusual -- most ports install their own startup script in
/usr/local/etc/rc.d/ and their own config files under /usr/local/etc or
subdirs thereof.

One handy hint is to link /usr/local/etc/rndc.conf to
/etc/namedb/rndc.conf which helps the rc-script control the named
process better.
(Or .../rndc.key, depending on how you set things up.)  Actually, I
believe the various bind ports do this automatically now, but it doesn't
hurt to double check.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwH3PIACgkQ8Mjk52CukIwDFQCfQRnuL/eOlV4V6lERkE480+OT
J4QAnRHrzd5VWzEKswpR0eUtDa20zTzo
=+8Vv
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


minicom freebsd 8.0

2010-06-02 Thread akash kumar
Hi,

Can some one help me with the steps configuring minicom on freebsd 8.0. 
I have a serial to usb converter running between my  board and host machine. 

Thanks,
Akash.



___
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: minicom freebsd 8.0

2010-06-02 Thread Fbsd1

akash kumar wrote:

Hi,

Can some one help me with the steps configuring minicom on freebsd 8.0. 
I have a serial to usb converter running between my  board and host machine. 


Thanks,
Akash.




I take it a minicom is a external serial modem for internet access over 
the phone lines.


First off you better check if this is a windows modem.

Phone modems are manufactured for two target markets, MS/Windows 
(Winmodems) and every thing else. Winmodems are cheep because the 
hardware controller function is handled by the software you have to 
install into MS/Windows. This hardware controller function is normally 
contained in a chip on the modem circuit board. Winmodems are missing 
this chip and directs the modem to use driver software running in the 
MS/Windows system to perform the controller function. The most common 
Winmodem chips are manufactured by Lucent. There are many versions of 
this Lucent chip resulting in each chip version needing a different 
MS/Windows software driver version.


Up until version 4.4, FBSD did not have any solution to using Winmodems, 
but with the release of 4.4 the ports collection now contains the Linux 
Winmodem 'ltmdm' driver which was ported to FBSD. This port is very 
poorly documented, only works with a limited number of Lucent chip 
version, and can be somewhat unreliable. Your whole Internet connection 
is managed by your modem and trying to shoe horn a modem specially 
manufactured for the MS/Windows operating system into FreeBSD is not the 
way to achieve a satisfactory dialup Internet connection.




Plug the usb to serial converter into a usb port on the pc.
Plug the serial cable into the modem and the converter.
Power on the minicon, and boot your pc.
Check your boot messages for the address of the usb to serial converter
and use that address in your ppp config for dialing your ISP.

If you can't id the address you need, then post your boot message log 
here for next step in help. Use dmesg  boot.msg.file to get a copy of 
the boot log.


___
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: minicom freebsd 8.0

2010-06-02 Thread akash kumar
Hi,

I was referring to minicom command similar to one on linux. 
On linux the config file is /etc/minirc.configfile and the  Serial Device is  
/dev/ttyUSB0, which was working for me.
On freebsd  the config file is /usr/local/etc/minicom/minirc.configfile, but 
not sure what to update in the field 'pu port'. 

I tried with /dev/ugen2.2 but got below error
 minicom: cannot open /dev/ugen2.2: Permission denied

Please let me know what needs to be updated in the 'pu port' field.

Thanks,
Akash.





From: Fbsd1 fb...@a1poweruser.com
To: akash kumar akashb...@yahoo.co.in
Cc: freebsd-questions@freebsd.org
Sent: Wed, 2 June, 2010 2:02:30 PM
Subject: Re: minicom freebsd 8.0

akash kumar wrote:
 Hi,
 
 Can some one help me with the steps configuring minicom on freebsd 8.0. I 
 have a serial to usb converter running between my  board and host machine. 
 Thanks,
 Akash.
 
 

I take it a minicom is a external serial modem for internet access over the 
phone lines.

First off you better check if this is a windows modem.

Phone modems are manufactured for two target markets, MS/Windows (Winmodems) 
and every thing else. Winmodems are cheep because the hardware controller 
function is handled by the software you have to install into MS/Windows. This 
hardware controller function is normally contained in a chip on the modem 
circuit board. Winmodems are missing this chip and directs the modem to use 
driver software running in the MS/Windows system to perform the controller 
function. The most common Winmodem chips are manufactured by Lucent. There are 
many versions of this Lucent chip resulting in each chip version needing a 
different MS/Windows software driver version.

Up until version 4.4, FBSD did not have any solution to using Winmodems, but 
with the release of 4.4 the ports collection now contains the Linux Winmodem 
'ltmdm' driver which was ported to FBSD. This port is very poorly documented, 
only works with a limited number of Lucent chip version, and can be somewhat 
unreliable. Your whole Internet connection is managed by your modem and trying 
to shoe horn a modem specially manufactured for the MS/Windows operating system 
into FreeBSD is not the way to achieve a satisfactory dialup Internet 
connection.



Plug the usb to serial converter into a usb port on the pc.
Plug the serial cable into the modem and the converter.
Power on the minicon, and boot your pc.
Check your boot messages for the address of the usb to serial converter
and use that address in your ppp config for dialing your ISP.

If you can't id the address you need, then post your boot message log here for 
next step in help. Use dmesg  boot.msg.file to get a copy of the boot log.


___
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: minicom freebsd 8.0

2010-06-02 Thread C. P. Ghost
On Wed, Jun 2, 2010 at 10:32 AM, Fbsd1 fb...@a1poweruser.com wrote:
 akash kumar wrote:

 Hi,

 Can some one help me with the steps configuring minicom on freebsd 8.0. I
 have a serial to usb converter running between my  board and host machine.
 Thanks,
 Akash.



 I take it a minicom is a external serial modem for internet access over the
 phone lines.

I guess akash is asking about the port comms/minicom, the special files
under /dev and the kernel modules needed to access the serial port of the
modem via a usb-to-serial converter.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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: minicom freebsd 8.0

2010-06-02 Thread C. P. Ghost
On Wed, Jun 2, 2010 at 11:30 AM, akash kumar akashb...@yahoo.co.in wrote:
 Hi,

 I was referring to minicom command similar to one on linux.
 On linux the config file is /etc/minirc.configfile and the  Serial Device 
 is  /dev/ttyUSB0, which was working for me.
 On freebsd  the config file is /usr/local/etc/minicom/minirc.configfile, 
 but not sure what to update in the field 'pu port'.

 I tried with /dev/ugen2.2 but got below error
 minicom: cannot open /dev/ugen2.2: Permission denied

 Please let me know what needs to be updated in the 'pu port' field.

Ah, okay. ugen is a generic device. I think you can't use that directly
if you have a usb-to-serial converter.

I guess you need to kldload a kernel module specific to your usb-to-serial
converter. For example something like uplcom, umodem etc. This would
create a new entry in /dev that you can use in minicom.

Permissions for those devices can be set in /etc/devfs.rules (and restarting
devfs with /etc/rc.d/devfs restart). You may also want to look at /etc/devd.conf

I'm not familiar with usb-to-serial converters, so I can't help more than that.
Others may have more experience there.

 Thanks,
 Akash.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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: threads and malloc/free on freebsd 8.0

2010-05-25 Thread Anoop Kumar Narayanan
On Sat, May 22, 2010 at 1:56 AM, Dan Nelson dnel...@allantgroup.com wrote:
 In the last episode (May 22), Anoop Kumar Narayanan said:
 I think glibc uses asynchronous free, as in it doesn't free the memory
 immediately.  So even though the memory is free'd its still part of the
 process's address space but present in the free pool and so it doesn't
 crash.

 FreeBSD doesn't use glibc, so that doesn't apply here :)
:) Oh yeah, BSD has its own libc

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

___
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


threads and malloc/free on freebsd 8.0

2010-05-21 Thread Vikash Badal

Greetings.

Excuse me if this is a stupid questions.

I have a thread socket application that seems to be behaving strangely

In a worker thread, I have the following.

CODE---
   LogMessage(DEBUG_0, allocated %ld, malloc_usable_size(inst));
   
   free(inst);
   
   LogMessage(DEBUG_0, after free allocated %ld, malloc_usable_size(inst));
   
return 0;
---/CODE

output allocated 2304
output after free allocated 2304

from playing around, this should have segfaulted but it didn't:

if I try this from a non threaded, non socket code:
CODE--
   char *z;

   z = (char*)malloc(1000);
   printf(malloc is %ld\n, malloc_usable_size(z));
   free(z);
   printf(after malloc is %ld\n, malloc_usable_size(z));
--/CODE

Output malloc is 1024
Output Segmentation fault (core dumped)



Can anyone enlighten me ?


If im not clear, please forgive me.


Please note: This email and its content are subject to the disclaimer as 
displayed at the following link 
http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. 
Should you not have Web access, send a mail to disclaim...@is.co.za and a copy 
will be emailed to 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: threads and malloc/free on freebsd 8.0

2010-05-21 Thread Dan Nelson
In the last episode (May 21), Vikash Badal said:
 Excuse me if this is a stupid questions.
 
 I have a thread socket application that seems to be behaving strangely
 
 In a worker thread, I have the following.
 
 CODE---
LogMessage(DEBUG_0, allocated %ld, malloc_usable_size(inst));

free(inst);

LogMessage(DEBUG_0, after free allocated %ld, malloc_usable_size(inst));

 return 0;
 ---/CODE
 
 output allocated 2304
 output after free allocated 2304
 
 from playing around, this should have segfaulted but it didn't

You're invoking undefined behaviour here by calling malloc_usable_size on a
free'd pointer.  The function is free to crash, return useful data, or
return useless data, at its discretion :)  

As long as you only call it on pointers that are still valid you will be
okay.

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


Re: threads and malloc/free on freebsd 8.0

2010-05-21 Thread Anoop Kumar Narayanan
I think glibc uses asynchronous free, as in it doesn't free the memory
immediately. So even though the memory is free'd its still part of the
process's address space but present in the free pool and so it doesn't
crash.

-Anoop

On Sat, May 22, 2010 at 12:48 AM, Dan Nelson dnel...@allantgroup.com wrote:
 In the last episode (May 21), Vikash Badal said:
 Excuse me if this is a stupid questions.

 I have a thread socket application that seems to be behaving strangely

 In a worker thread, I have the following.

 CODE---
    LogMessage(DEBUG_0, allocated %ld, malloc_usable_size(inst));

    free(inst);

    LogMessage(DEBUG_0, after free allocated %ld, malloc_usable_size(inst));

     return 0;
 ---/CODE

 output allocated 2304
 output after free allocated 2304

 from playing around, this should have segfaulted but it didn't

 You're invoking undefined behaviour here by calling malloc_usable_size on a
 free'd pointer.  The function is free to crash, return useful data, or
 return useless data, at its discretion :)

 As long as you only call it on pointers that are still valid you will be
 okay.

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

___
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: threads and malloc/free on freebsd 8.0

2010-05-21 Thread Dan Nelson
In the last episode (May 22), Anoop Kumar Narayanan said:
 I think glibc uses asynchronous free, as in it doesn't free the memory
 immediately.  So even though the memory is free'd its still part of the
 process's address space but present in the free pool and so it doesn't
 crash.

FreeBSD doesn't use glibc, so that doesn't apply here :)

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


increasing memory for no root users on freebsd 8.0

2010-05-20 Thread Vikash Badal


Can someone assist me with tunning freebsd 8.0 so that I can allocate more 
memory to a process that is not owned by root or running as root.


From top 
I get this line before it coredumps.

PID USERNAMETHR PRI NICE   SIZERES STATETIME   WCPU COMMAND
1161 nntpd  1500  440   502M   303M STOP 1:27  0.00% nntpd

The server has:
real memory  = 4294967296 (4096 MB)
avail memory = 3145883648 (3000 MB)


/boot/loader.conf
kern.maxdsiz=768M
kern.maxssiz=768M
kern.maxtsiz=768M

limits
Resource limits (current):
  cputime  infinity secs
  filesize infinity kB
  datasize   786432 kB
  stacksize  786432 kB
  coredumpsize infinity kB
  memoryuseinfinity kB
  memorylocked infinity kB
  maxprocesses 5547
  openfiles   11095
  sbsize   infinity bytes
  vmemoryuse   infinity kB
  pseudo-terminals infinity
  swapuse  infinity kB


according to tuning(7)

 The kern.dfldsiz and kern.dflssiz tunables set the default soft limits
 for process data and stack size respectively.  Processes may increase
 these up to the hard limits by calling setrlimit(2).  The kern.maxdsiz,
 kern.maxssiz, and kern.maxtsiz tunables set the hard limits for process
 data, stack, and text size respectively; processes may not exceed these
 limits.  The kern.sgrowsiz tunable controls how much the stack segment
 will grow when a process needs to allocate more stack.


But setting these values in /boot/loader.conf does not seem to solve the memory 
limits that I am hitting.

Any idea where I'm going wrong ?



Thanks

Please note: This email and its content are subject to the disclaimer as 
displayed at the following link 
http://www.is.co.za/legal/E-mail+Confidentiality+Notice+and+Disclaimer.htm. 
Should you not have Web access, send a mail to disclaim...@is.co.za and a copy 
will be emailed to 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


increasing memory for no root users on freebsd 8.0

2010-05-20 Thread Robert Huff

Vikash Badal writes:

  Can someone assist me with tunning freebsd 8.0 so that I can
  allocate more memory to a process that is not owned by root or
  running as root.

man (5) login.conf ??


Robert Huff

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


Re: increasing memory for no root users on freebsd 8.0

2010-05-20 Thread Adam Vande More
On Thu, May 20, 2010 at 10:26 AM, Vikash Badal vikash.ba...@is.co.zawrote:


 Any idea where I'm going wrong ?


http://www.freebsd.org/doc/en/books/handbook/users-limiting.html


-- 
Adam Vande 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


freeBSD 8.0

2010-05-11 Thread Chohwora
Hello,

I am trying to download freeBSD version 8.0 I would like to find out, for a 
complete installation of a freeBSD 8.0. how many disks does it contain? I mean 
does it have disk1, disk2, etc?

After downloading in ISO image, how do I burn it on a Cd so that it can be 
installed as a bootable cd?

Hoping to hear from you.

God bless.



  
___
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

2010-05-11 Thread Aiza

Chohwora wrote:

Hello,

I am trying to download freeBSD version 8.0 I would like to find out, for a 
complete installation of a freeBSD 8.0. how many disks does it contain? I mean 
does it have disk1, disk2, etc?

After downloading in ISO image, how do I burn it on a Cd so that it can be 
installed as a bootable cd?

Hoping to hear from you.

God bless.



  
___

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



All your questions are answered in the handbook.
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/
___
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

2010-05-11 Thread Matthew Seaman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1


Various leading lights of the FreeBSD project dropped from the CC -- you
really only need to ask on freebsd-questi...@...  or even better, *read*
the archives where your questions have certainly been answered already
many times.

On 11/05/2010 09:25:40, Chohwora wrote:

 I am trying to download freeBSD version 8.0 I would like to find
 out,for a complete installation of a freeBSD 8.0. how many disks does it
 contain? I mean does it have disk1, disk2, etc?

You only need the disk1 CD .iso image to have everything you need to
install FreeBSD.  Or the DVD .iso image if you're using that medium.
The contents of the various different .iso images are fairly self
explanatory really. Lets look at the contents of
ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/ISO-IMAGES/8.0/

 File:8.0-RELEASE-amd64-bootonly.iso
46256 KB
22/11/2009
03:40:00

This is a bootable image containing little more than sysinstall
-- it's designed for people who want to install from the net
directly.

 File:8.0-RELEASE-amd64-disc1.iso
674050 KB
22/11/2009
03:41:00

This is everything you need to install a FreeBSD system using
CD media

 File:8.0-RELEASE-amd64-dvd1.iso.gz
1892469 KB
22/11/2009
03:43:00

This is both a livefs disk and everything you need to install
the system using DVD media

 File:8.0-RELEASE-amd64-livefs.iso
328748 KB
22/11/2009
03:43:00

This is a live filesystem image for use with CD media.
Advanced users could install a working system using it, but the
intention is more for testing system compatibility with FreeBSD
and for fixing unbootable systems.

 File:8.0-RELEASE-amd64-memstick.img
1020240 KB
22/11/2009
04:32:00

This is both the livefs and system installer for a memory stick

 File:CHECKSUM.MD5
1 KB
22/11/2009
04:39:00

 File:CHECKSUM.SHA256
1 KB
22/11/2009
04:39:00

These are the MD5 and SHA1 checksums respectively of the other
files in this directory.  Check that the hundreds of MB you
just downloaded is actually correct before trying to burn a
disk.

 After downloading in ISO image, how do I burn it on a Cd so that it
 can be installed as a bootable cd?

Complete and clear instructions for just about everything you would need
to know when trying to install FreeBSD are available in the Handbook.
In this case look at:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install-diff-media.html

and links therein which tell you exactly what to do to create bootable
media on an already-installed FreeBSD machine.  For instructions on what
to do to create media on other OSes, search the web or ask again here,
not forgetting to say /what/ OS you will be using.

Cheers,

Matthew

- -- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
  Kent, CT11 9PW
-BEGIN PGP SIGNATURE-
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvpIpgACgkQ8Mjk52CukIwZnACgiu97iOHy1lAokciX5lVN4hYb
2RIAnRoMZqaXNwqIZPJ8grTXIGBgSWbU
=6zYN
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RT 3.8.6 web page wont display after configuration on FreeBSD 8.0

2010-05-10 Thread Pamela Pomary
Hello,
I have installed rt3.8.6 with apache2-modperl2 on freebsd 8.0. I have
configured RT_SiteConfig.pm and /apache22/Includes/http-local.conf files
as directed by RT's wiki website
http://wiki.bestpractical.com/view/UserManual. I get the following message
when i want to launch the web page http://monitor.ug.edu.gh/rt/

You don't have permission to access /rt/ on this server.

I have included mod_perl in /apache22/Includes/http-local.conf

When i checked httpd-error.log, it said [Mon May 10 08:56:56 2010] [error]
[client 82.206.239.244] client denied by server configuration:
/usr/local/share/rt38/html/


Below is my RT_SiteConfig.pm and /apache22/Includes/http-local.conf
respectively:


Set( $rtname , ug.edu.gh);
Set($Organization , ug.edu.gh);
Set($MinimumPasswordLength , 5);
Set($Timezone , 'GMT');
Set($DatabaseType ,'mysql');
Set($DatabaseHost , 'localhost');
Set($DatabaseRTHost , 'localhost');
Set($DatabaseUser , 'root');
Set($DatabasePassword , '1234asdf');
Set($DatabaseName , 'mysql');
Set($DatabasePort , '');
Set($DatabaseRequireSSL , undef);
Set($UseSQLForACLChecks, 1);
Set($OwnerEmail , 'root');
Set($LoopsToRTOwner , 1);
Set($StoreLoops , undef);
Set($MaxAttachmentSize , 1000);
Set($TruncateLongAttachments , undef);
Set($DropLongAttachments , undef);
Set($ParseNewMessageForTicketCcs , undef);
Set($RTAddressRegexp , '^moni...@ug.edu.gh$');
Set($CanonicalizeEmailAddressMatch , '@monitor\.ug.edu\.gh$');
Set($CanonicalizeEmailAddressReplace , '@ug.edu.gh');
Set($CanonicalizeOnCreate, 0);
Set($SenderMustExitInExternalDatabase , undef);
Set($ValidateUserEmailAddress,undef);
Set($ExtractSubjectTagMatch, qr/\[.+? #\d+\]/);
Set($ExtraSubjectTagNoMatch, ( ${RT::EmailSubjectTagRegex}
   ? qr/\[(?{RT::EmailSubjectTagRegex}) #\d+\]/
   : qr/\[\Q$RT::rtname\E #\d+\]/));
Set($MailCommand , 'sendmailpipe');
Set($MailCommand , 'sendmailpipe');
Set($SendmailArguments , -oi -t);
Set($SendmailBounceArguments , '-f ');
Set($SendmailPath , /usr/sbin/sendmail);
Set($SMTPServer, undef);
Set($SMTPFrom,undef);
Set($SMTPDebug, 0);
Set(@MailParams, ());
Set($CorrespondAddress , 'ppom...@ug.edu.gh');
Set($CommentAddress , 'ppom...@ug.edu.gh');
Set($DashboardAddress, 'ppom...@ug.edu.gh');
Set($UseFriendlyFromLine, 1);
Set($FriendlyFromLineFormat, \%s via RT\ %s);
Set($WebPath, /rt);
Set($WebBaseURL , http://monitor.ug.edu.gh;);
Set($WebURL , $WebBaseURL . $WebPath . /);


   Directory /usr/local/share/rt38/html/
   AllowOverride None
   order allow,deny
   Allow from all
 /Directory
Alias /rt/ /usr/local/share/rt38/html/

Counting on your help to complete my RT setup soon.

Thank You.




-- 
Pamela Pomary
ICT Assistant (Network Administration)
ICT Directorate
University of Ghana
Tel:+233 244 994 020




-- 
Pamela Pomary
ICT Assistant (Network Administration)
ICT Directorate
University of Ghana
Tel:+233 244 994 020
g-mail:ppom...@gmail.com
yahoo-mail: mawua2...@yahoo.com
skype:ppomary











___
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: RT 3.8.6 web page wont display after configuration on FreeBSD 8.0

2010-05-10 Thread Joseph Olatt
On Mon, May 10, 2010 at 09:14:13AM -, Pamela Pomary wrote:
 Hello,
 I have installed rt3.8.6 with apache2-modperl2 on freebsd 8.0. I have
 configured RT_SiteConfig.pm and /apache22/Includes/http-local.conf files
 as directed by RT's wiki website
 http://wiki.bestpractical.com/view/UserManual. I get the following message
 when i want to launch the web page http://monitor.ug.edu.gh/rt/
 
 You don't have permission to access /rt/ on this server.
 
 I have included mod_perl in /apache22/Includes/http-local.conf
 
 When i checked httpd-error.log, it said [Mon May 10 08:56:56 2010] [error]
 [client 82.206.239.244] client denied by server configuration:
 /usr/local/share/rt38/html/
 
 
 Below is my RT_SiteConfig.pm and /apache22/Includes/http-local.conf
 respectively:
 
 
 Set( $rtname , ug.edu.gh);
 Set($Organization , ug.edu.gh);
 Set($MinimumPasswordLength , 5);
 Set($Timezone , 'GMT');
 Set($DatabaseType ,'mysql');
 Set($DatabaseHost , 'localhost');
 Set($DatabaseRTHost , 'localhost');
 Set($DatabaseUser , 'root');
 Set($DatabasePassword , '1234asdf');
 Set($DatabaseName , 'mysql');
 Set($DatabasePort , '');
 Set($DatabaseRequireSSL , undef);
 Set($UseSQLForACLChecks, 1);
 Set($OwnerEmail , 'root');
 Set($LoopsToRTOwner , 1);
 Set($StoreLoops , undef);
 Set($MaxAttachmentSize , 1000);
 Set($TruncateLongAttachments , undef);
 Set($DropLongAttachments , undef);
 Set($ParseNewMessageForTicketCcs , undef);
 Set($RTAddressRegexp , '^moni...@ug.edu.gh$');
 Set($CanonicalizeEmailAddressMatch , '@monitor\.ug.edu\.gh$');
 Set($CanonicalizeEmailAddressReplace , '@ug.edu.gh');
 Set($CanonicalizeOnCreate, 0);
 Set($SenderMustExitInExternalDatabase , undef);
 Set($ValidateUserEmailAddress,undef);
 Set($ExtractSubjectTagMatch, qr/\[.+? #\d+\]/);
 Set($ExtraSubjectTagNoMatch, ( ${RT::EmailSubjectTagRegex}
? qr/\[(?{RT::EmailSubjectTagRegex}) #\d+\]/
: qr/\[\Q$RT::rtname\E #\d+\]/));
 Set($MailCommand , 'sendmailpipe');
 Set($MailCommand , 'sendmailpipe');
 Set($SendmailArguments , -oi -t);
 Set($SendmailBounceArguments , '-f ');
 Set($SendmailPath , /usr/sbin/sendmail);
 Set($SMTPServer, undef);
 Set($SMTPFrom,undef);
 Set($SMTPDebug, 0);
 Set(@MailParams, ());
 Set($CorrespondAddress , 'ppom...@ug.edu.gh');
 Set($CommentAddress , 'ppom...@ug.edu.gh');
 Set($DashboardAddress, 'ppom...@ug.edu.gh');
 Set($UseFriendlyFromLine, 1);
 Set($FriendlyFromLineFormat, \%s via RT\ %s);
 Set($WebPath, /rt);
 Set($WebBaseURL , http://monitor.ug.edu.gh;);
 Set($WebURL , $WebBaseURL . $WebPath . /);
 
 
Directory /usr/local/share/rt38/html/
AllowOverride None
order allow,deny
Allow from all
  /Directory
 Alias /rt/ /usr/local/share/rt38/html/
 
 Counting on your help to complete my RT setup soon.
 
 Thank You.

Have you checked the permissions on /usr/local/share/rt38/html.
If you are using Apache from the ports, then it is probably running
as user www and group www.

User www should be able to read and cd into /usr/local/share/rt38/html

I would first check that.

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

2010-05-04 Thread Alejandro Imass
On Tue, May 4, 2010 at 5:33 AM, Ivan Voras ivo...@freebsd.org wrote:
 On 05/04/10 00:38, Bruce Cran wrote:
[...]

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


Does anyone know of a paper(s) that compare the different threading
model of say FBSD, Linux and OpenSolaris, etc. ?

As a programmer, I know the basic theory and _effects_ of using
threads vs. processes vs. EDA/SEDA, etc., and in fact I use threads in
several applications, like Perl Gtk2 and also web-based software using
Apache mod_worker and mod_perl. But I haven't stumbled uppon
information that does a comparison of the different threading models
in the most popular Open Source OSs.

I have 'heard' people say the OpenSolaris' threading model is quite
different and supposedly better that other *nix´s in general, but is
that actualy true? Or is that just applied to Java? How would one know
especially in Open Source systems where you may have different
threading models (like in FBSD uthreads, kse, etc.)?

Thanks beforehand,
Alejandro Imass



 ___
 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


KSE (Kernel Supported Threading) support in FreeBSD 8.0

2010-05-03 Thread Traiano Welcome
Hi List

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

Thanks in Advance,
Traiano Welcome


NOTE: This e-mail message and all attachments thereto contain confidential 
information intended for a specific addressee and purpose. If you are not the 
addressee (a) you may not disclose, copy, distribute or take any action based 
on the contents hereof; (b) kindly inform the sender immediately and destroy 
all copies hereof. Any copying, publication or disclosure of this message, or 
part hereof, in any form whatsoever, without the sender's express written 
consent, is prohibited. No opinion expressed or implied by the sender 
necessarily constitutes the opinion of MTN. This message does not constitute a 
guarantee or proof of the facts mentioned herein. No Employee or intermediary 
is authorised to conclude a binding agreement on behalf of MTN Group Limited, 
or any of its subsidiary companies, by e-mail without the express written 
confirmation by a duly authorised representative of MTN Group Limited.
___
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-03 Thread Bruce Cran
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

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


FreeBSD 8.0-RELEASE-p2 Xen DomU vcpus = 2 issue

2010-04-27 Thread Yuriy Kohut
/sbin/init get Segmentation Fault while FreeBSD 8.0-RELEASE-p2 i386 Xen DomU 
is booting.

Xen Dom0 info:
OS: CentOS release 5.4 (Final)
Arch: x86_64
Kernel: 2.6.18-164.6.1.el5xen #1 SMP Tue Nov 3 16:48:13 EST 2009 x86_64 x86_64 
x86_64 GNU/Linux
CPU: Intel(R) Xeon(R) CPU5148  @ 2.33GHz

Xen info:
xen-libs-3.0.3-94.el5_4.2
kernel-xen-devel-2.6.18-164.6.1.el5
xen-libs-3.0.3-94.el5_4.2
kernel-xen-2.6.18-164.6.1.el5
xen-3.0.3-94.el5_4.2

FreeBSD DomU info:
# uname -a
FreeBSD freebsd.vps.net 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #1: Fri Apr 23 
18:45:04 EEST 2010 r...@fbsd.devel:/mnt/usr/src/sys/XEN  i386

# sysctl -a | egrep -i 'hw.machine|hw.model|hw.ncpu'
hw.machine: i386
hw.model: Intel(R) Xeon(R) CPU5148  @ 2.33GHz
hw.ncpu: 1
hw.machine_arch: i386


The Segmentation Fault issue appears when the DomU is configures with option 
'vcpus' value  =2.
In case 'vcpus' undefined, the DomU boot fine with single CPU.


Here is FreeBSD Domu console boot messages (when vcpus = 2):
Started domain TUDKyLzlA8Hx
WARNING: loader(8) metadata is missing!
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-RELEASE-p2 #1: Fri Apr 23 18:45:04 EEST 2010
r...@fbsd.devel:/mnt/usr/src/sys/XEN
WARNING: WITNESS option enabled, expect reduced performance.
Xen reported: 2333.410 MHz processor.
Timecounter ixen frequency 10 Hz quality 0
CPU: Intel(R) Xeon(R) CPU5148  @ 2.33GHz (2333.41-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x6f6  Stepping = 6
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  Features2=0x4e3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA
  AMD Features=0x2010NX,LM
  AMD Features2=0x1LAHF
  TSC: P-state invariant

Instruction TLB: 4 KB Pages, 4-way set associative, 128 entries
1st-level instruction cache: 32 KB, 8-way set associative, 64 byte line size
1st-level data cache: 32 KB, 8-way set associative, 64 byte line size
L2 cache: 4096 kbytes, 16-way associative, 64 bytes/line
real memory  = 134217728 (128 MB)
Physical memory chunk(s):
0x0064e000 - 0x07d5dfff, 124846080 bytes (30480 pages)
avail memory = 123199488 (117 MB)
APIC: Using the MPTable enumerator.
SMP: Added CPU 0 (BSP)
SMP: Added CPU 1 (AP)
gdtpfn=79a0d pdptpfn=73aff
INTR: Adding local APIC 1 as a target
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ULE: setup cpu 0
ULE: setup cpu 1
[XEN] IPI cpu=0 irq=128 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=0 irq=129 vector=CALL_FUNCTION_VECTOR (1)
[XEN] IPI cpu=1 irq=130 vector=RESCHEDULE_VECTOR (0)
[XEN] IPI cpu=1 irq=131 vector=CALL_FUNCTION_VECTOR (1)
Event-channel device installed.
null: null device, zero device
nfslock: pseudo-device
random: entropy source, Software, Yarrow
kbd0 at kbdmux0
io: I/O
mem: memory
Pentium Pro MTRR support enabled
Grant table initialized
xenbus0: Xen Devices on motherboard
xc0: Xen Console on motherboard
[XEN] xen_rtc_probe: probing Hypervisor RTC clock
rtc0: Xen Hypervisor Clock on motherboard
[XEN] xen_rtc_attach: attaching Hypervisor RTC clock
rtc0: registered as a time-of-day clock (resolution 100us)
npx0: INT 16 interface
Device configuration finished.
procfs registered
Timecounters tick every 10.000 msec
lo0: bpf attached
xbd0: 1024MB Virtual Block Device at device/vbd/2048 on xenbus0
xbd0: attaching as da0
GEOM: new disk da0
xbd1: 1024MB Virtual Block Device at device/vbd/2064 on xenbus0
xbd1: attaching as da1
xn0: Virtual Network Interface at device/vif/0 on xenbus0
xn0: bpf attached
xn0: Ethernet address: 00:16:3e:b3:32:55
SMP: AP CPU #1 Launched!
WARNING: WITNESS option enabled, expect reduced performance.
GEOM: new disk da1
Trying to mount root from ufs:/dev/da0
rtc0: [XEN] xen_rtc_gettime
rtc0: [XEN] xen_rtc_gettime: wallclock 1270321980 sec; 211900550 nsec
rtc0: [XEN] xen_rtc_gettime: uptime 2033113 sec; 505886216 nsec
rtc0: [XEN] xen_rtc_gettime: TOD 1272355093 sec; 717786766 nsec
start_init: trying /sbin/init
pid 22 (sysctl), uid 0: exited on signal 11
Segmentation fault
pid 23 (sysctl), uid 0: exited on signal 11
Segmentation fault
pid 24 (ps), uid 0: exited on signal 11
Segmentation fault
Setting hostuuid: 63a0b474-51d1-11df-bd85-00163eb33255.
kern.hostuuid=63a0b474-51d1-11df-bd85-00163eb33255: not found
Setting hostid: 0x306059f1.
kern.hostid=0x306059f1: not found
pid 37 (ps), uid 0: exited on signal 11



Thanks in advance for any replay/assistance.
---
Yuriy Kohut
Cloud Images Developer
VPS.NET
UK2






___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman

FreeBSD 8.0 with geom_journal and fsck

2010-04-22 Thread Paulo Fragoso

Hi,

Is realy necessary check fsck on boot for journaled file sistem?

Can I put this line in fstab?

# DeviceMountpoint  FStype  Options Dump
Pass#

/dev/ad0s3d.journal/var/db  ufs rw,async0   0

I can't boot if set Dump, Pass to 2 2 im /etc/fstab.

Pulo.
___
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 with geom_journal and fsck

2010-04-22 Thread Vincent Hoffman
On 22/04/2010 16:10, Paulo Fragoso wrote:
 Hi,

 Is realy necessary check fsck on boot for journaled file sistem?

Yes, but it should be a very quick check,
see these for some more details
http://lists.freebsd.org/pipermail/freebsd-geom/2008-August/003020.html
http://lists.freebsd.org/pipermail/freebsd-geom/2008-August/003026.html

Vince

 Can I put this line in fstab?

 # DeviceMountpoint  FStype  Options
 DumpPass#
 /dev/ad0s3d.journal/var/db  ufs rw,async0   0

 I can't boot if set Dump, Pass to 2 2 im /etc/fstab.

 Pulo.
 ___
 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: FreeBSD 8.0 with geom_journal and fsck

2010-04-22 Thread Paulo Fragoso

Em 22/04/2010 16:33, Vincent Hoffman escreveu:

On 22/04/2010 16:10, Paulo Fragoso wrote:
  

Hi,

Is realy necessary check fsck on boot for journaled file sistem?



Yes, but it should be a very quick check,
see these for some more details
http://lists.freebsd.org/pipermail/freebsd-geom/2008-August/003020.html
http://lists.freebsd.org/pipermail/freebsd-geom/2008-August/003026.html

Vince
  


Why when I put to check in /etc/fstab the system halts with this error:

/dev/mirror/gm0s3d.journal: CANNOT READ BLK: 167476800
/dev/mirror/gm0s3d.journal: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY:

ufs: /dev/mirror/gm0s3d.journal (/var/db)
Automatic file system check failed; help!
ERROR: ABORTING BOOT (sending SIGTERM to parent)!

$ cat fstab
# DeviceMountpoint  FStype  Options Dump
Pass#

/dev/mirror/gm0s2b  noneswapsw  0   0
/dev/mirror/gm0s1a  /   ufs rw  1   1
/dev/mirror/gm0s3f  /home   ufs rw,nosuid   2   2
/dev/mirror/gm0s2d  /tmpufs rw,nosuid,nosymfollow 2 2
/dev/mirror/gm0s2f  /usrufs rw  2   2
/dev/mirror/gm0s2g  /usr/local  ufs rw  2   2
/dev/mirror/gm0s2e  /varufs rw  2   2
/dev/mirror/gm0s3d.journal /var/db  ufs rw,async2   2
/dev/mirror/gm0s3e.journal /var/log ufs rw,async0   0
/dev/acd0   /cdrom  cd9660  ro,noauto   0   0

Paulo.

___
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


NFS Mount FreeBSD 8.0

2010-04-15 Thread Grant Peel

  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

Obviously backgrounded.

It never connects. df- h confirms this.

I have tested the network thuroughly, i.e. I can connect to the backup 
machine using ssh, ftp etc. named is working fine, hosts file is correct.


-No firewalling issues,
-quadruple checked the network settings,
-Checked all the settings for nfs.
-Have added the patches from Errata (all 7 of them).

I was wondering if there is some new/changed settings for the client that I 
missed in the documentation somewhere.


SERVER SETTINGS:

   rc.conf
   nfs_client_enable=YES
   nfs_server_enable=YES
   nfs_server_flags=-h 192.168.0.4 -n 15
   rpcbind_enable=YES

   /etc/exports
   /mnt -alldirs -mapall root -network 192.168.0.0 -mask 255.255.255.0

CLIENT SETTINGS:

   rc.conf
   nfs_reserved_port_only=YES
   nfs_client_enable=YES

   fstab
   enterprise:/mnt /mntnfs -t=10,-b,rw 0 
0


Any hints would be appreciated.

-Grant

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

2010-04-15 Thread Grant Peel

Ivan,

I actually just got it to work. Not sure why the default TCP no longer works 
but I added the -U flag to the fstab for the mount and it works.


Anyone know what may bave changed in FreeBSD 8 to cause this?

-Grant

P.S on the server machine the output you were looking for was
/mnt   192.168.0.0


- Original Message - 
From: Ivan Voras ivo...@freebsd.org

To: freebsd-questions@freebsd.org
Sent: Thursday, April 15, 2010 10:19 AM
Subject: Re: NFS Mount FreeBSD 8.0



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




___
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 Adam Vande More
On Thu, Apr 15, 2010 at 9:47 AM, Grant Peel gp...@thenetnow.com wrote:

 Ivan,

 I actually just got it to work. Not sure why the default TCP no longer
 works but I added the -U flag to the fstab for the mount and it works.

 Anyone know what may bave changed in FreeBSD 8 to cause this?

 -Grant

 P.S on the server machine the output you were looking for was
 /mnt   192.168.0.0


Please don't top post.

FBSD 8 has a new NFS implementation which might be the cause of your
issues.  In particular this seems relevant.

http://lists.freebsd.org/pipermail/freebsd-current/2009-November/013172.html

There's been more than one nfs issue on 8 however so it could easily be
something else.  8-STABLE has received a lot of NFS love so you could try
that on your clients perhaps.

-- 
Adam Vande 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


pyglet segfaults on FreeBSD 8.0/amd64/nVidia

2010-04-15 Thread Giuseppe Pagnoni
Hi Michael,

thanks for replying.  Unfortunately changing the driver to the nv one does 
not work since nv does not support GLX which is required by pyglet.  I 
appreciate your suggestion, though.

cheers,
   giuseppe


--
Giuseppe Pagnoni
Dip. Scienze Biomediche
Sezione Fisiologia
Univ. di Modena e Reggio Emilia
Via Campi 287
I-41100 Modena, Italy
Tel: +39-059-205-5742
Fax: +39-059-205-5363




___
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


pyglet segfaults on FreeBSD 8.0/amd64/nVidia

2010-04-14 Thread Giuseppe Pagnoni
Hello,

First of all, let me apologize for the re- and cross-posting , but
after a couple of weeks scouring the web and forums to no avail, I
thought I would try again and query the FreeBSD mother source...

I installed pyglet from the ports (latest version as of yesterday,
py26-pyglet-1.1.2_1) on a FreeBSD 8.0 amd64 box, running the latest
version of the ports' nvidia driver (nvidia-driver-195.36.15).  I
found that I cannot use either font.Text or text.label without causing
segfaults.  Here is some sample code that makes python crash:

- SNIPPET 1
import pyglet
luxi = pyglet.font.load('Luxi Sans', 14)
---   SEGMENTATION FAULT

- SNIPPET 2
import pyglet
window = pyglet.window.Window()
label = pyglet.text.Label('Hello, world',
   font_name='Luxi Sans',
   font_size=36,
   x=window.width//2,
   y=window.height//2,
   anchor_x='center',
   anchor_y='center')
---   SEGMENTATION FAULT

It seems that the problem arises already at the stage of font loading.
I am not at all a python expert, perhaps somebody can suggest a
way to narrow down the problem?

Here is some more information on my system reported by a routine
included in a python package (PsychoPy) I am trying to use:

System info:
FreeBSD-8.0-RELEASE-p2-amd64-64bit-ELF

Python info
/usr/local/bin/python
2.6.4 (r264:75706, Mar 23 2010, 15:20:14)
[GCC 4.2.1 20070719  [FreeBSD]]
numpy 1.4.0
scipy 0.7.1
matplotlib 0.99.1
pyglet 1.1.2
PsychoPy 1.60.03

OpenGL info:
vendor: NVIDIA Corporation
rendering engine: GeForce 9500 GT/PCI/SSE2
OpenGL version: 3.2.0 NVIDIA 195.36.15
(Selected) Extensions:
   True GL_ARB_multitexture
   True GL_EXT_framebuffer_object
   True GL_ARB_fragment_program
   True GL_ARB_shader_objects
   True GL_ARB_vertex_shader
   True GL_ARB_texture_non_power_of_two
   True GL_ARB_texture_float


Thanks in advance for any suggestion/comment,

cheers,

  giuseppe

-- 
Giuseppe Pagnoni
Dip. Scienze Biomediche
Sezione Fisiologia
Univ. di Modena e Reggio Emilia
Via Campi 287
I-41125 Modena, Italy
Tel: +39-059-205-5742
Fax: +39-059-205-5336
___
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: pyglet segfaults on FreeBSD 8.0/amd64/nVidia

2010-04-14 Thread Jorge Medina
On Wed, Apr 14, 2010 at 7:44 AM, Giuseppe Pagnoni gpagn...@gmail.com wrote:
 Hello,

 First of all, let me apologize for the re- and cross-posting , but
 after a couple of weeks scouring the web and forums to no avail, I
 thought I would try again and query the FreeBSD mother source...

 I installed pyglet from the ports (latest version as of yesterday,
 py26-pyglet-1.1.2_1) on a FreeBSD 8.0 amd64 box, running the latest
 version of the ports' nvidia driver (nvidia-driver-195.36.15).  I
 found that I cannot use either font.Text or text.label without causing
 segfaults.  Here is some sample code that makes python crash:

 - SNIPPET 1
 import pyglet
 luxi = pyglet.font.load('Luxi Sans', 14)
 ---   SEGMENTATION FAULT

 - SNIPPET 2
 import pyglet
 window = pyglet.window.Window()
 label = pyglet.text.Label('Hello, world',
   font_name='Luxi Sans',
   font_size=36,
   x=window.width//2,
   y=window.height//2,
   anchor_x='center',
   anchor_y='center')
 ---   SEGMENTATION FAULT

 It seems that the problem arises already at the stage of font loading.
 I am not at all a python expert, perhaps somebody can suggest a
 way to narrow down the problem?

 Here is some more information on my system reported by a routine
 included in a python package (PsychoPy) I am trying to use:

 System info:
 FreeBSD-8.0-RELEASE-p2-amd64-64bit-ELF

 Python info
 /usr/local/bin/python
 2.6.4 (r264:75706, Mar 23 2010, 15:20:14)
 [GCC 4.2.1 20070719  [FreeBSD]]
 numpy 1.4.0
 scipy 0.7.1
 matplotlib 0.99.1
 pyglet 1.1.2
 PsychoPy 1.60.03

 OpenGL info:
 vendor: NVIDIA Corporation
 rendering engine: GeForce 9500 GT/PCI/SSE2
 OpenGL version: 3.2.0 NVIDIA 195.36.15
 (Selected) Extensions:
       True GL_ARB_multitexture
       True GL_EXT_framebuffer_object
       True GL_ARB_fragment_program
       True GL_ARB_shader_objects
       True GL_ARB_vertex_shader
       True GL_ARB_texture_non_power_of_two
       True GL_ARB_texture_float


 Thanks in advance for any suggestion/comment,

 cheers,

  giuseppe

 --
 Giuseppe Pagnoni
 Dip. Scienze Biomediche
 Sezione Fisiologia
 Univ. di Modena e Reggio Emilia
 Via Campi 287
 I-41125 Modena, Italy
 Tel: +39-059-205-5742
 Fax: +39-059-205-5336
 ___
 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


which is the resolution that you have running  the xorg?

-- 
Jorge Andrés Medina Oliva.
___
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: pyglet segfaults on FreeBSD 8.0/amd64/nVidia

2010-04-14 Thread Michael Powell
Giuseppe Pagnoni wrote:

 Hello,
 
 First of all, let me apologize for the re- and cross-posting , but
 after a couple of weeks scouring the web and forums to no avail, I
 thought I would try again and query the FreeBSD mother source...
 
 I installed pyglet from the ports (latest version as of yesterday,
 py26-pyglet-1.1.2_1) on a FreeBSD 8.0 amd64 box, running the latest
 version of the ports' nvidia driver (nvidia-driver-195.36.15).  I
 found that I cannot use either font.Text or text.label without causing
 segfaults.  Here is some sample code that makes python crash:
 
 - SNIPPET 1
 import pyglet
 luxi = pyglet.font.load('Luxi Sans', 14)
 ---   SEGMENTATION FAULT
 
 - SNIPPET 2
 import pyglet
 window = pyglet.window.Window()
 label = pyglet.text.Label('Hello, world',
font_name='Luxi Sans',
font_size=36,
x=window.width//2,
y=window.height//2,
anchor_x='center',
anchor_y='center')
 ---   SEGMENTATION FAULT
 
 It seems that the problem arises already at the stage of font loading.
 I am not at all a python expert, perhaps somebody can suggest a
 way to narrow down the problem?

I'm not a coder, but possibly this may help: 

http://pyglet.org/doc/api/index.html

Then look at pyglet.font and pyglet.font.base for example purposes.

 
 Here is some more information on my system reported by a routine
 included in a python package (PsychoPy) I am trying to use:
 
 System info:
 FreeBSD-8.0-RELEASE-p2-amd64-64bit-ELF
 
 Python info
 /usr/local/bin/python
 2.6.4 (r264:75706, Mar 23 2010, 15:20:14)
 [GCC 4.2.1 20070719  [FreeBSD]]
 numpy 1.4.0
 scipy 0.7.1
 matplotlib 0.99.1
 pyglet 1.1.2
 PsychoPy 1.60.03
 
 OpenGL info:
 vendor: NVIDIA Corporation
 rendering engine: GeForce 9500 GT/PCI/SSE2
 OpenGL version: 3.2.0 NVIDIA 195.36.15
 (Selected) Extensions:
True GL_ARB_multitexture
True GL_EXT_framebuffer_object
True GL_ARB_fragment_program
True GL_ARB_shader_objects
True GL_ARB_vertex_shader
True GL_ARB_texture_non_power_of_two
True GL_ARB_texture_float

To drive a wedge you might consider as an experiment temporarily replacing 
the Nvidia driver in xorg.cong with the nv driver. If same problem, it may 
be confirming the problem is not an interaction with a video display driver 
but rather the Python coding itself. Notice the different approach in the 
doc example(s).

I'm not really a coder and don't know a whole lot about Python, but since 
this seems to have been a problem to you for a while now I thought maybe I'd 
toss out my ideas. YMMV  :-)

-Mike


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