Re: Load balance for POP3

2008-06-30 Thread scuba
Roger,

On Fri, 27 Jun 2008, Roger Olofsson wrote:

|[EMAIL PROTECTED] skrev:
| 
| I need to switch the users connections between two POP3 servers based on
| login information.
| Since the login is part of the pop3 handshake, I'm stuck on how to
| transfer the connection and pass the info already sent.
| I'm trying to script something with socat
| (http://www.dest-unreach.org/socat/doc/socat.html).
| 
| I'll appreciate any clue.
|
|You might want to take a look at Pen /usr/ports/net/pen.

In this case Pen does not help, since I want to decide which 
server to switch after login.


- Marcelo

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


Re: Too Much Context Switching?

2008-06-30 Thread Kris Kennaway

[EMAIL PROTECTED] wrote:

First off, thanks for such a prompt response. :-)


[EMAIL PROTECTED] wrote:
I'm the webmaster for www.marssociety.org, which is a FreeBSD 
6.2-RELEASE box running on a dual-core AMD Opteron setup with 4GB of 
RAM. The box is reasonably busy, as it's the sole piece of hardware 
running web, database, and mail operations for the Mars Society, an 
international nonprofit group dedicated to space exploration. We 
regularly send out newsletters to ~10,000 members, and our web site 
is averaging ~50,000-100,000 hits/day.


The main portion of the web site is run via the Zope/Plone CMS system 
(Plone 2.5, for anyone who may care). Recently, it's been slowing 
down dramatically, and our Plone guy (not me -- I inherited the 
system and can't stand it) can't figure out why. I've been diving 
into OS-related issues, and in so doing, I ran across what appears to 
be a very high number of context switches going on. Here's some 
sample output from vmstat 2:


A few hundred or thousand context switches per second is trivial load.
That is not your problem.  Modern CPUs can do hundreds of thousands per
second before it starts to become a problem.


OK, well that's good to know.


Note that your system is 50% idle and spending almost no time in the
kernel.  This basically means that only one core is doing work, which
might be because you're not giving it enough work to do.  There are only
1-2 running tasks for most of your trace, one of which is probably
vmstat itself, so that means there is only one running server process
(which can obviously only saturate at most 1 CPU).


Actually, I decided to run vmstat this morning for a little while after 
turning off Zope, and during the couple of minutes I had it going, the 
number of processes running (as indicated by the leftmost column of 
vmstat's output) was at 0 for all but one line worth of output, so I 
would guess that vmstat's not including itself in the number of 
processes there. Even so, though, your assessment about how saturated 
the CPU is is of course still valid, which leads me to a follow-up 
question: by default, can a multi-threaded app use both cores? Or would 
I need to have two instances of the process running (Zope is apparently 
able to handle multiple instances running reasonably well) in order to 
have it fully utilize the CPU?


In 6.x. the default thread library is quite inefficient although it can 
make use of multiple CPUs (again, providing the application is giving 
them work to do).  For multi-threaded performance you will be better off 
switching to the libthr library (see libmap.conf(5)) or updating to 7.0 
(where it is the default).  This isn't likely to be the underlying issue 
if you are trying to debug a loss of performance relative to the same 
configuration in the past though.


However it may well be that you can obtain better performance either by 
upgrading the OS, or tuning zope to give a better work distribution.



The trace suggests that your performance problems are either in
userland, or elsewhere in your network or application stack, possibly
due to interactions between components.  Try to look at why the system
is not being given enough work to keep it saturated.


Any tips on tools I could use to check this out? I'll of course be 
looking at Zope profiling tools, to see if I can have them tell me where 
any bottlenecks are, but if there are any OS-level tools that I could 
use to profile a given process (or group thereof) for problems, I'd 
really appreciate hearing about them (simple links to man pages or the 
like would be fine, I don't mean to waste your time explaining how tools 
work when I can usually figure it out on my own).


ktrace, tcpdump, hwpmc, the kernel audit system, 
MUTEX_PROFILING/LOCK_PROFILING(9) are various utilities you can use to 
profile the system workload (probably in decreasing order of utility for 
you).  Some of these are less usable in 6.x though.


Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Too Much Context Switching?

2008-06-30 Thread cpghost
On Mon, 30 Jun 2008 10:48:25 -0400
[EMAIL PROTECTED] wrote:

 Actually, I decided to run vmstat this morning for a little while
 after turning off Zope, and during the couple of minutes I had it
 going, the number of processes running (as indicated by the leftmost
 column of vmstat's output) was at 0 for all but one line worth of
 output, so I would guess that vmstat's not including itself in the
 number of processes there. Even so, though, your assessment about how
 saturated the CPU is is of course still valid, which leads me to a
 follow-up question: by default, can a multi-threaded app use both
 cores? Or would I need to have two instances of the process running
 (Zope is apparently able to handle multiple instances running
 reasonably well) in order to have it fully utilize the CPU?

You need to run ZEO if you want to make use of multiple CPUs in Zope.
Here's a small HOWTO. It's for gentoo, but easily adaptable to
FreeBSD:

http://gentoo-wiki.com/HOWTO_ZEO/Zope_and_Plone

Good luck optimizing the Beast! ;-)

 Alex Kirk

-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 [EMAIL PROTECTED]


Re: Load balance for POP3

2008-06-30 Thread Vince Hoffman
[EMAIL PROTECTED] wrote:
 Roger,
 
 On Fri, 27 Jun 2008, Roger Olofsson wrote:
 
 |[EMAIL PROTECTED] skrev:
 | 
 | I need to switch the users connections between two POP3 servers based 
 on
 | login information.
 | Since the login is part of the pop3 handshake, I'm stuck on how to
 | transfer the connection and pass the info already sent.
 | I'm trying to script something with socat
 | (http://www.dest-unreach.org/socat/doc/socat.html).
 | 
 | I'll appreciate any clue.
 |
 |You might want to take a look at Pen /usr/ports/net/pen.
 
   In this case Pen does not help, since I want to decide which 
 server to switch after login.
 
would nginx (as described here
http://highscalability.com/nginx-high-performance-smpt-pop-imap-proxy)
be more what your after?

Vince
 
 - Marcelo
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

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


FreeBSD, Squid, Active Directory integration

2008-06-30 Thread Matt Kosht
I am searching for a way to passthru (not prompt the user for
authentication) a Windows users' Active Directory credentials to Squid
running on FreeBSD. With this AD info I can ACL where the user can go
and have their individual usage logged  All the HOWTO's I found seem
to require a manual authentication though.  I would prefer this to
other alternatives ($) which can do this natively, Window ISA server
being one of these products.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Off Topic: Sunbird calendar server?

2008-06-30 Thread Michael W. Holdeman


On Sunday 29 June 2008 13:20:11 Andrew Berry wrote:
 On 28-Jun-08, at 12:01 AM, Jack Barnett wrote:
  She is a fan of Google Calendars (which I admit works well), but I'm
  a fan of Sunbird (since it's local and don't need internets for it
  to work).
  I could probably convert her to Sunbird if I found a good way to
  share out our calendars.

 As long as you just want to see the other persons calendar, Google can
 export a calendar as an iCal subscription, or as an XML feed.
 gcaldaemon might also be something to look into:

 http://gcaldaemon.sourceforge.net/index.html

 The problem that I've had is that I want a web front end which can
 talk to a CalDav server. Zimbra has it, but it's a very heavy install
 and only supports Linux :(

 --Andrew

The latest sunbird has an add on google provider I think it is called. It will 
enable 2 way with sunbird to access to your google cals.

Mike

-- 
Michael W. Holdeman
Chief
Porter Fire Department

Powered by Kubunty Hardy 8.04, KDE-4.1 beta
http://kubuntu.org

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


RE: FreeBSD and Active Directory

2008-06-30 Thread Chris Edwards
What version of Samba are you using?  I am getting an error trying to load
the pam_winbind.so when a user tries to authenticate.

---

Chris Edwards
Smartech Corp.
Div. of AirNet Group
http://www.airnetgroup.com
http://www.smartechcorp.net
[EMAIL PROTECTED]
P:  423-664-7678 x114
C:  423-593-6964
F:  423-664-7680


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Derek Ragona
Sent: Thursday, June 26, 2008 3:48 PM
To: Chris Edwards; freebsd-questions@freebsd.org
Subject: Re: FreeBSD and Active Directory

At 02:20 PM 6/26/2008, Chris Edwards wrote:
I have been put in charge of creating a single sign-on mechanism for our
Windows 2003 and FreeBSD servers.  We are wanting to use Active Directory
as
our LDAP server.  I know of four different methods that could possibly
work.

1. OpenLDAP
2. Radius
3. NIS
4. WinBind / Samba

Which is the most excepted/supported way to do this?  Several of the severs
are very old, 4+ years old.

Thanks for any help,

---

Chris Edwards

I have had no trouble using winbind/samba as a secondary controller to the 
Windows 2003 AD server.  I will say that not all the utilities work, but 
the functionality does work just fine.

 -Derek

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


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


Re: Off Topic: Sunbird calendar server?

2008-06-30 Thread Michael W. Holdeman


On Monday 30 June 2008 10:53:00 Michael W. Holdeman wrote:
 On Sunday 29 June 2008 13:20:11 Andrew Berry wrote:
  On 28-Jun-08, at 12:01 AM, Jack Barnett wrote:
   She is a fan of Google Calendars (which I admit works well), but I'm
   a fan of Sunbird (since it's local and don't need internets for it
   to work).
   I could probably convert her to Sunbird if I found a good way to
   share out our calendars.
 
  As long as you just want to see the other persons calendar, Google can
  export a calendar as an iCal subscription, or as an XML feed.
  gcaldaemon might also be something to look into:
 
  http://gcaldaemon.sourceforge.net/index.html
 
  The problem that I've had is that I want a web front end which can
  talk to a CalDav server. Zimbra has it, but it's a very heavy install
  and only supports Linux :(
 
  --Andrew

 The latest sunbird has an add on google provider I think it is called. It
 will enable 2 way with sunbird to access to your google cals.

 Mike
Hate replting to my own.

But FWIW I also set up Kontact-4.1-beta with the gcaldeamon and it seems to be 
working swell.

Mike
-- 
Michael W. Holdeman
Chief
Porter Fire Department

Powered by Kubunty Hardy 8.04, KDE-4.1 beta
http://kubuntu.org

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


Re: usb mouse is detected by fbsd 7 but not X

2008-06-30 Thread Aggelidis Nikos
I had the same problem when 2 weeks ago i installed FreeBSD7.

the solution was:

# Xorg -configure to create an default xorg.conf file.

{http://www.freebsd.org/doc/en/books/handbook/x-config.html}

Apparently for the mouse to work it needs a default{at least} xorg.conf file.

-nicolas

PS: If this is regular behaviour of X11 shouldn't a note be made in
the handbook?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Change in /etc/rc.conf:ipv6_defaultrouter

2008-06-30 Thread Ashish Shukla आशीष शुक्ल
,--- Kirk Strauser writes:
| On Sunday 29 June 2008, Ashish Shukla आशीष शुक्ल wrote:
|| I think how without specifying zone index[1] in link-local address
|| worked, it is probably due to availability of only single inet6
|| interface except lo0.

| The physical and virtual interfaces on the system are exactly as before.  
| I'm guessing that my setup worked as a side effect of a now-fixed bug, 
| probably the same one that was preventing me from using the 2001: 
| defaultrouter when I first got the system up and running.

Did you mean your setup stopped working after you compiled new kernel, hmm...?

|| Just wanted to confirm, is following command worked ? if possible paste
|| the output:
|| 
|| % ping6 fe80::213:10ff:fe79:137a

| $ ping6 fe80::213:10ff:fe79:137a
| ping6: UDP connect: Network is unreachable

Yes, this is the expected behavior.

Ashish
-- 
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


pgpgB8LucLOXT.pgp
Description: PGP signature


Re: Change in /etc/rc.conf:ipv6_defaultrouter

2008-06-30 Thread Kirk Strauser
On Monday 30 June 2008, Ashish Shukla आशीष शुक्ल wrote:

 Did you mean your setup stopped working after you compiled new kernel,
 hmm...?

Yes.  Unfortunately, I'm not sure exactly when it happened.  I saw an 
article on Slashdot about IPv6, went to look at my maillog to see how much 
traffic I'd been getting, and found none.

So back to my original post: take this as a heads-up.  Anyone who had a 
setup like mine that suddenly stopped working might be able to fix it by 
updating their defaultrouter.
-- 
Kirk Strauser


signature.asc
Description: This is a digitally signed message part.


Re: filesystem information

2008-06-30 Thread Jim
On Mon, Jun 30, 2008 at 7:30 AM, Bill Moran [EMAIL PROTECTED] wrote:
 In response to Jim [EMAIL PROTECTED]:

 I have a computer that is in a situation where it is losing power
 occasionally. All but one of the filesystems are going along fine.
 Once file system seems to lose data on a power outage. Even if it only
 reads a file, and doesn't write it, it may still lose a file (ex,
 about half the audio files on my xmms playlist, a couple data files in
 my wine directory that, to my knowledge, are unlikely to be written
 after they are first installed).

 What I'd like to do is get an output of the flags and options on my
 filesystems to see what is different between that filesystem and the
 others. Any suggestion on how to do that? This particular FS has
 lasted through several rebuilds since it doesn't hold OS critical
 stuff, just data files.

 tunefs -p and/or dumpfs -m

 Any suggestions?

 Sounds like you're on the right track with hunting this down.  Perhaps
 turn softupdates off and mount the filesystem sync if you're seeing
 lots of power outages.

 --
 Bill Moran
 http://www.potentialtech.com


Thanks, it looks like the 'good' filesystems have softupdates off
(except one), and the one the broke has it off. I thought softupdates
were supposed to fix this? Is gjournal a better solution? Is 'just use
neither' a better solution? Any reference material on the subject
would be appreciated (I'm about to use google now).

Thanks,
-Jim Stapleton
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: fusefs-ghoto2fs

2008-06-30 Thread Lowell Gilbert
chip [EMAIL PROTECTED] writes:

 I found a pkg to add that supposed will allow me to mount the camera
 as a filesystem, it's called fusefs-gphotofs. The following
 instructions are given at the end of the pkg_add process -

 Now fuse filesystems (sysutils/fusefs-*) can be mounted at startup from
 /etc/fstab with the late parameter. This requires a symlink in /usr/sbin
 named mount_fstype, which is not created by all the fusefs ports.

 I am not sure what this means. Iknow how to add an entry to the fstab,
 I've done that years ago for a floppy drive. But there appears to be
 not enough info in those instructions to get the fusefs listed in the
 fstab. Anyone have any experience with this?

What *is* the filesystem type?  Is there an /sbin/mount_fstype on
your system?

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Change in /etc/rc.conf:ipv6_defaultrouter

2008-06-30 Thread Ashish Shukla आशीष शुक्ल
,--- Kirk Strauser writes:
| On Monday 30 June 2008, Ashish Shukla आशीष शुक्ल wrote:

|| Did you mean your setup stopped working after you compiled new kernel,
|| hmm...?

| Yes.  Unfortunately, I'm not sure exactly when it happened.  I saw an 
| article on Slashdot about IPv6, went to look at my maillog to see how much 
| traffic I'd been getting, and found none.

| So back to my original post: take this as a heads-up.  Anyone who had a 
| setup like mine that suddenly stopped working might be able to fix it by 
| updating their defaultrouter.

Okay, thanks for the info.

Ashish
-- 
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


pgpIPIAY2FiM1.pgp
Description: PGP signature


Re: filesystem information

2008-06-30 Thread Roland Smith
On Mon, Jun 30, 2008 at 12:30:38PM -0400, Jim wrote:
 On Mon, Jun 30, 2008 at 7:30 AM, Bill Moran [EMAIL PROTECTED] wrote:
  In response to Jim [EMAIL PROTECTED]:
 
  I have a computer that is in a situation where it is losing power
  occasionally. All but one of the filesystems are going along fine.
  Once file system seems to lose data on a power outage. Even if it only
  reads a file, and doesn't write it, it may still lose a file (ex,
  about half the audio files on my xmms playlist, a couple data files in
  my wine directory that, to my knowledge, are unlikely to be written
  after they are first installed).
 
  What I'd like to do is get an output of the flags and options on my
  filesystems to see what is different between that filesystem and the
  others. Any suggestion on how to do that? This particular FS has
  lasted through several rebuilds since it doesn't hold OS critical
  stuff, just data files.
 
  tunefs -p and/or dumpfs -m
 
  Any suggestions?
 
  Sounds like you're on the right track with hunting this down.  Perhaps
  turn softupdates off and mount the filesystem sync if you're seeing
  lots of power outages.

Ans set 'hw.ata.wc=0' in /boot/loader.conf to stop the drives from
caching writes.

 Thanks, it looks like the 'good' filesystems have softupdates off
 (except one), and the one the broke has it off. I thought softupdates
 were supposed to fix this? Is gjournal a better solution? Is 'just use
 neither' a better solution? 

WRT softupdates/gjournal, see below.

In case of frequent power outages, I guess the right answer is get a
UPS. :)

Without a UPS nothing can protect you against power outages. Even when
running the filesystem with the sync flag and setting ATA devices to
write-through the cache cannot guarantee you won't lose data. If the
power fails when a write is in progress, you're screwed.

A proper UPS with monitoring software will give your system time to shut
down properly (finishing writes, unmounting etc) before its battery runs out. 

 Any reference material on the subject

See http://en.wikipedia.org/wiki/Soft_updates :

  Instead of duplicating metadata writes in a journal, soft updates work
  by properly ordering the metadata writes to guarantee consistency
  after a crash. Like journaling, soft updates do not guarantee that no
  data will be lost, but do make sure the filesystem is consistent

In FreeBSD softupdates have a longer track record than journaling. 

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


pgpSsHWWBWGIU.pgp
Description: PGP signature


Re: filesystem information

2008-06-30 Thread Wojciech Puchar

Ans set 'hw.ata.wc=0' in /boot/loader.conf to stop the drives from
caching writes.


it will GREATLY reduce write performance. not just a bit, but many times.


WRT softupdates/gjournal, see below.

In case of frequent power outages, I guess the right answer is get a
UPS. :)


it is definitely the only solution. and not expensive today
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: calcru: runtime went backwards errors

2008-06-30 Thread Wojciech Puchar

I've been seeing errors like the following appearing:

Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 261
usec to 258 usec for pid 516 (devd)
Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 4976
usec to 4926 usec for pid 367 (pflogd)
Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 588
usec to 582 usec for pid 133 (adjkerntz)
Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 681
usec to 674 usec for pid 20 (swi6: task queue)
Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 486
usec to 481 usec for pid 0 (swapper)

and narrowed down the cause to openntpd.

Do these errors fall into the Mostly Harmless category?

yes.

time turned backward and system get confused.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Too Much Context Switching?

2008-06-30 Thread Michel Talon
Kris Kennaway wrote:

 In 6.x. the default thread library is quite inefficient although it can 
 make use of multiple CPUs (again, providing the application is giving 
 them work to do).  For multi-threaded performance you will be better off 
 switching to the libthr library (see libmap.conf(5)) or updating to 7.0 
 (where it is the default).  This isn't likely to be the underlying issue 
 if you are trying to debug a loss of performance relative to the same 
 configuration in the past though.

Indeed Plone is written in python, and python has a Big Giant Lock
inside which insures that only one thread can execute, in order to
protect the python structures. This lock is only released under special
circumstances, such as doing IO. Hence it is necessary to run several
instances of python programs and do synchronization work, if one wants
to make use of several CPUs, or use python threads, and immediately make 
some IOs, or similar techniques. It may be that using Jython, if
possible, yields better threading behavior. When doing some work
according to these ideas, i had found quite severe contention, and this
was not cured when switching native threading libraries (libksd, libthr,
etc.). The problem is really inside python.


-- 

Michel TALON

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


Re: filesystem information

2008-06-30 Thread Roland Smith
On Mon, Jun 30, 2008 at 07:05:51PM +0200, Wojciech Puchar wrote:
  Ans set 'hw.ata.wc=0' in /boot/loader.conf to stop the drives from
  caching writes.
 
 it will GREATLY reduce write performance. not just a bit, but many times.

Of course. And mounting filesystems with sync will also reduce
performance. But if you have frequent outages and without a UPS they
will at least help shorten fsck times and lessen potential data loss.

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


pgpjJuylc9Yt6.pgp
Description: PGP signature


Re: Too Much Context Switching?

2008-06-30 Thread Kris Kennaway

Michel Talon wrote:

Kris Kennaway wrote:

In 6.x. the default thread library is quite inefficient although it can 
make use of multiple CPUs (again, providing the application is giving 
them work to do).  For multi-threaded performance you will be better off 
switching to the libthr library (see libmap.conf(5)) or updating to 7.0 
(where it is the default).  This isn't likely to be the underlying issue 
if you are trying to debug a loss of performance relative to the same 
configuration in the past though.


Indeed Plone is written in python, and python has a Big Giant Lock
inside which insures that only one thread can execute, in order to
protect the python structures. This lock is only released under special
circumstances, such as doing IO. Hence it is necessary to run several
instances of python programs and do synchronization work, if one wants
to make use of several CPUs, or use python threads, and immediately make 
some IOs, or similar techniques. It may be that using Jython, if

possible, yields better threading behavior. When doing some work
according to these ideas, i had found quite severe contention, and this
was not cured when switching native threading libraries (libksd, libthr,
etc.). The problem is really inside python.


Yep, it could be that -- what confuses me though is that it is claimed 
that performance suddenly regressed.  If so then this cannot be the 
underlying cause.


Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


7.0 No Sound: emu10k1

2008-06-30 Thread David Horn
I'm hoping that someone can help me get my soundcard working properly
with FreeBSD 7.0.  I have tried all of the suggestions in the
handbook, and am at a loss on next steps to diagnose.  I am starting
to think that I am missing something very simple.

Hardware:  SoundBlaster Audigy 2 ZS (PCI bus) installed in Dell
Dimension 4100 (P3 1Ghz circa 2001, no internal sound card)
Software:  FreeBSD 7.0p2 (GENERIC kernel updated using freebsd-update)
Driver:  snd_emu10k1 (via loader.conf)

I am not getting any error messages that indicate a problem.  The
driver is loading and /dev/sndstat shows proper output.

The issue is that I get absolutely no sound out of my soundcard.  I
have tried using mpg123, and cat file /dev/dsp without any output.
The mixer levels look good (to me), and I am getting no failure
messages.

I have tested the speakers with another audio source (no issues), and
am about the try swapping the soundcard into a new machine (running a
different OS) to ensure that the card itself is not fried.

Apologies for the long email, see detailed output below...

Thanks in advance!
--Dave

==
uname -a

FreeBSD x-bsd.private.nullcore.com 7.0-RELEASE-p2 FreeBSD
7.0-RELEASE-p2 #0: Wed Jun 18 07:33:20 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
===
cat loader.conf

snd_emu10k1_load=YES
===
sysctl -a |grep hw.snd

hw.snd.latency_profile: 1
hw.snd.latency: 5
hw.snd.report_soft_formats: 1
hw.snd.compat_linux_mmap: 0
hw.snd.feeder_buffersize: 16384
hw.snd.feeder_rate_round: 25
hw.snd.feeder_rate_max: 2016000
hw.snd.feeder_rate_min: 1
hw.snd.verbose: 4
hw.snd.maxautovchans: 16
hw.snd.default_unit: 0
hw.snd.version: 2007061600/i386
hw.snd.default_auto: 0

sysctl -a |grep pcm

dev.pcm.0.%desc: Creative Audigy (EMU10K2)
dev.pcm.0.%driver: pcm
dev.pcm.0.%location: slot=9 function=0
dev.pcm.0.%pnpinfo: vendor=0x1102 device=0x0004 subvendor=0x1102
subdevice=0x2005 class=0x040100
dev.pcm.0.%parent: pci2
dev.pcm.0.eapd: 1
dev.pcm.0.play.vchans: 1
dev.pcm.0.play.vchanrate: 48000
dev.pcm.0.play.vchanformat: s16le
dev.pcm.0.rec.vchans: 1
dev.pcm.0.rec.vchanrate: 48000
dev.pcm.0.rec.vchanformat: s16le
dev.pcm.0.buffersize: 4096
=
dmesg |grep pcm

pcm0: Creative Audigy (EMU10K2) port 0xdf00-0xdf3f irq 10 at device
9.0 on pci2
pcm0: SigmaTel STAC9750/51 AC97 Codec
pcm0: [ITHREAD]

with hw.snd.verbose=4, dmesg shows the following after trying to play
an mp3 file for several seconds:

sndbuf_remalloc(): b=0xc2883b00 0 - 4096 [4096]
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
bs[4096/64/64] limit=4096
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
bs[4096/64/64] limit=4096
sndbuf_remalloc(): b=0xc2883b00 4096 [4096] NOCHANGE
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
bs[2048/64/32] limit=0
sndbuf_remalloc(): b=0xc2883b00 4096 [2048] NOCHANGE
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=512 b[4096/128/2]
bs[4096/128/32] limit=4096
pcm0: chn_trigger() pcm0:play:dsp0.p1: calling go=0x , prev=0x
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=512 b[4096/128/2]
bs[4096/128/32] limit=0
sndbuf_remalloc(): b=0xc2883b00 4096 [4096] NOCHANGE
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
bs[4096/64/64] limit=4096
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
bs[4096/64/64] limit=4096
sndbuf_remalloc(): b=0xc2883b00 4096 [4096] NOCHANGE
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
bs[2048/64/32] limit=0
sndbuf_remalloc(): b=0xc2883b00 4096 [2048] NOCHANGE
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=512 b[4096/128/2]
bs[4096/128/32] limit=4096
sndbuf_remalloc(): b=0xc2883b00 4096 - 8192 [8192]
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=256 b[4096/256/2]
bs[8192/256/32] limit=4096
sndbuf_remalloc(): b=0xc2883b00 8192 - 16384 [16384]
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=128 b[4096/512/2]
bs[16384/512/32] limit=4096
sndbuf_remalloc(): b=0xc2883b00 16384 - 65536 [65536]
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=23 b[4096/2048/2]
bs[65536/2048/32] limit=4096
pcm0: chn_trigger() pcm0:play:dsp0.p1: calling go=0x , prev=0x
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=23 b[4096/2048/2]
bs[65536/2048/32] limit=0
sndbuf_remalloc(): b=0xc2883b00 65536 [65536] NOCHANGE
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
bs[4096/64/64] limit=4096
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
bs[4096/64/64] limit=4096
sndbuf_remalloc(): b=0xc2883b00 65536 [4096] NOCHANGE
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
bs[2048/64/32] limit=0
sndbuf_remalloc(): b=0xc2883b00 65536 [2048] NOCHANGE
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=512 b[4096/128/2]
bs[4096/128/32] limit=4096
sndbuf_remalloc(): b=0xc2883b00 65536 [4096] NOCHANGE
chn_resizebuf: PCMDIR_PLAY (hardware) timeout=256 b[4096/256/2]

Re: Too Much Context Switching?

2008-06-30 Thread Michel Talon
On Mon, Jun 30, 2008 at 07:53:00PM +0200, Kris Kennaway wrote:
 Yep, it could be that -- what confuses me though is that it is claimed 
 that performance suddenly regressed.  If so then this cannot be the 
 underlying cause.

It may be that the load has augmented to the point that contention
imposes a rapid regression on throughput.


-- 

Michel TALON

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


Re: 7.0 No Sound: emu10k1

2008-06-30 Thread Gonzalo Nemmi
Besides having loaded the snd_emu10k1, have you made sure you have 
the sound driver loaded?

In order to get any sound you need both of them loaded into the kernel .. 
the sound module loads the sound system .. and the snd_xxx just loads the 
right module for your sound card... so, basically, check you have both 
modules loaded ... 

This is how my sound config looks like on my kernel configuration:

# Sound
device  sound
device  snd_emu10k1 # SoundBlaster Live!

If you do have the sound module loaded, try unloading the snd_emu10k1 and 
load the snd_emu10kx which seem to be the right module for Audigy cards.

More info: man snd_emu10kx

Hope this helped :)

-- 
Blessings
Gonzalo Nemmi

On Monday 30 June 2008 14:43:11 David Horn wrote:
 I'm hoping that someone can help me get my soundcard working properly
 with FreeBSD 7.0.  I have tried all of the suggestions in the
 handbook, and am at a loss on next steps to diagnose.  I am starting
 to think that I am missing something very simple.

 Hardware:  SoundBlaster Audigy 2 ZS (PCI bus) installed in Dell
 Dimension 4100 (P3 1Ghz circa 2001, no internal sound card)
 Software:  FreeBSD 7.0p2 (GENERIC kernel updated using freebsd-update)
 Driver:  snd_emu10k1 (via loader.conf)

 I am not getting any error messages that indicate a problem.  The
 driver is loading and /dev/sndstat shows proper output.

 The issue is that I get absolutely no sound out of my soundcard.  I
 have tried using mpg123, and cat file /dev/dsp without any output.
 The mixer levels look good (to me), and I am getting no failure
 messages.

 I have tested the speakers with another audio source (no issues), and
 am about the try swapping the soundcard into a new machine (running a
 different OS) to ensure that the card itself is not fried.

 Apologies for the long email, see detailed output below...

 Thanks in advance!
 --Dave

 ==
 uname -a

 FreeBSD x-bsd.private.nullcore.com 7.0-RELEASE-p2 FreeBSD
 7.0-RELEASE-p2 #0: Wed Jun 18 07:33:20 UTC 2008
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386
 ===
 cat loader.conf

 snd_emu10k1_load=YES
 ===
 sysctl -a |grep hw.snd

 hw.snd.latency_profile: 1
 hw.snd.latency: 5
 hw.snd.report_soft_formats: 1
 hw.snd.compat_linux_mmap: 0
 hw.snd.feeder_buffersize: 16384
 hw.snd.feeder_rate_round: 25
 hw.snd.feeder_rate_max: 2016000
 hw.snd.feeder_rate_min: 1
 hw.snd.verbose: 4
 hw.snd.maxautovchans: 16
 hw.snd.default_unit: 0
 hw.snd.version: 2007061600/i386
 hw.snd.default_auto: 0

 sysctl -a |grep pcm

 dev.pcm.0.%desc: Creative Audigy (EMU10K2)
 dev.pcm.0.%driver: pcm
 dev.pcm.0.%location: slot=9 function=0
 dev.pcm.0.%pnpinfo: vendor=0x1102 device=0x0004 subvendor=0x1102
 subdevice=0x2005 class=0x040100
 dev.pcm.0.%parent: pci2
 dev.pcm.0.eapd: 1
 dev.pcm.0.play.vchans: 1
 dev.pcm.0.play.vchanrate: 48000
 dev.pcm.0.play.vchanformat: s16le
 dev.pcm.0.rec.vchans: 1
 dev.pcm.0.rec.vchanrate: 48000
 dev.pcm.0.rec.vchanformat: s16le
 dev.pcm.0.buffersize: 4096
 =
 dmesg |grep pcm

 pcm0: Creative Audigy (EMU10K2) port 0xdf00-0xdf3f irq 10 at device
 9.0 on pci2
 pcm0: SigmaTel STAC9750/51 AC97 Codec
 pcm0: [ITHREAD]

 with hw.snd.verbose=4, dmesg shows the following after trying to play
 an mp3 file for several seconds:

 sndbuf_remalloc(): b=0xc2883b00 0 - 4096 [4096]
 chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
 bs[4096/64/64] limit=4096
 chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
 bs[4096/64/64] limit=4096
 sndbuf_remalloc(): b=0xc2883b00 4096 [4096] NOCHANGE
 chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
 bs[2048/64/32] limit=0
 sndbuf_remalloc(): b=0xc2883b00 4096 [2048] NOCHANGE
 chn_resizebuf: PCMDIR_PLAY (hardware) timeout=512 b[4096/128/2]
 bs[4096/128/32] limit=4096
 pcm0: chn_trigger() pcm0:play:dsp0.p1: calling go=0x ,
 prev=0x chn_resizebuf: PCMDIR_PLAY (hardware) timeout=512
 b[4096/128/2]
 bs[4096/128/32] limit=0
 sndbuf_remalloc(): b=0xc2883b00 4096 [4096] NOCHANGE
 chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
 bs[4096/64/64] limit=4096
 chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
 bs[4096/64/64] limit=4096
 sndbuf_remalloc(): b=0xc2883b00 4096 [4096] NOCHANGE
 chn_resizebuf: PCMDIR_PLAY (hardware) timeout=1024 b[4096/64/2]
 bs[2048/64/32] limit=0
 sndbuf_remalloc(): b=0xc2883b00 4096 [2048] NOCHANGE
 chn_resizebuf: PCMDIR_PLAY (hardware) timeout=512 b[4096/128/2]
 bs[4096/128/32] limit=4096
 sndbuf_remalloc(): b=0xc2883b00 4096 - 8192 [8192]
 chn_resizebuf: PCMDIR_PLAY (hardware) timeout=256 b[4096/256/2]
 bs[8192/256/32] limit=4096
 sndbuf_remalloc(): b=0xc2883b00 8192 - 16384 [16384]
 chn_resizebuf: PCMDIR_PLAY (hardware) timeout=128 b[4096/512/2]
 bs[16384/512/32] limit=4096
 sndbuf_remalloc(): b=0xc2883b00 16384 - 65536 [65536]
 chn_resizebuf: PCMDIR_PLAY (hardware) 

Re: Too Much Context Switching?

2008-06-30 Thread Kris Kennaway

Michel Talon wrote:

On Mon, Jun 30, 2008 at 07:53:00PM +0200, Kris Kennaway wrote:
Yep, it could be that -- what confuses me though is that it is claimed 
that performance suddenly regressed.  If so then this cannot be the 
underlying cause.


It may be that the load has augmented to the point that contention
imposes a rapid regression on throughput.


Yes, it could be that.  I don't know off-hand whether multiple threads 
are counted separately by vmstat (at a guess I'd say no), but ps/top/etc 
should show how many are active in the python process.


Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: filesystem information

2008-06-30 Thread Jim
 In case of frequent power outages, I guess the right answer is get a
 UPS. :)

Aye, I just got one. But for the longest time, it was a bit out of my
price range due to other priorities. Actually, the whole model line
was defective, so they are sending me a new one, and I have to wait
for it to arrive.

 Without a UPS nothing can protect you against power outages. Even when
 running the filesystem with the sync flag and setting ATA devices to
 write-through the cache cannot guarantee you won't lose data. If the
 power fails when a write is in progress, you're screwed.

I'm aware of nothing but a UPS can completely protect me from an
outage. I was just wondering why that ONE file system was misbehaving,
and the rest are prefectly fine - which seemed odd. Additionally, why
were files that are read, but not written, being lost? I can
understand losing files that are being written, but if there's a file
that has bene written several restarts ago, not written to thereafter,
and has been fine ever since, why is it being lost now?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: filesystem information

2008-06-30 Thread Bill Moran
In response to Jim [EMAIL PROTECTED]:
 
 I'm aware of nothing but a UPS can completely protect me from an
 outage. I was just wondering why that ONE file system was misbehaving,
 and the rest are prefectly fine - which seemed odd. Additionally, why
 were files that are read, but not written, being lost? I can
 understand losing files that are being written, but if there's a file
 that has bene written several restarts ago, not written to thereafter,
 and has been fine ever since, why is it being lost now?

If the files themselves are disappearing, then it could be the directory
entry that's getting corrupted.  You mentioned mp3s earlier ... if I
had to guess, I'd say you frequently add and rename files in that directory.
If the power goes out during an update to the directory entry, it's
anybody's guess as to what filenames could disappear.  Even if you're
not doing it directly, is your mp3 software writing temp or other
status files to that directory?  If you're curious, you could run your
mp3 software under ktrace and then grep the output for file creation
and removal syscalls.

Just speculation.

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Too Much Context Switching?

2008-06-30 Thread alex
In 6.x. the default thread library is quite inefficient although it 
can make use of multiple CPUs (again, providing the application is 
giving them work to do).  For multi-threaded performance you will 
be better off switching to the libthr library (see libmap.conf(5)) 
or updating to 7.0 (where it is the default).  This isn't likely to 
be the underlying issue if you are trying to debug a loss of 
performance relative to the same configuration in the past though.


Indeed Plone is written in python, and python has a Big Giant Lock
inside which insures that only one thread can execute, in order to
protect the python structures. This lock is only released under special
circumstances, such as doing IO. Hence it is necessary to run several
instances of python programs and do synchronization work, if one wants
to make use of several CPUs, or use python threads, and immediately 
make some IOs, or similar techniques. It may be that using Jython, if

possible, yields better threading behavior. When doing some work
according to these ideas, i had found quite severe contention, and this
was not cured when switching native threading libraries (libksd, libthr,
etc.). The problem is really inside python.


Yep, it could be that -- what confuses me though is that it is claimed
that performance suddenly regressed.  If so then this cannot be the
underlying cause.



It's actually been a long, slow, steady degradation of performance as 
best I can tell, that's recently just reached proportions that are so 
ridiculous that it's gone from this sucks but I can deal to this is 
completely unusable. The system has been slow from the start, just not 
this slow. I guess I'll need to investigate this...and while I know 
that Python is somewhat off-topic, if anyone here has any suggestions 
on where to start, they'd be much appreciated. :-)


Alex
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 7.0 No Sound: emu10k1

2008-06-30 Thread David Horn
Thanks for the hint.   snd_emu10kx instead of snd_emu10k1 (doh!)

I knew it had to be something simple.  Everything is working great now.

--_Dave
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: filesystem information

2008-06-30 Thread Jim
 If the files themselves are disappearing, then it could be the directory
 entry that's getting corrupted.

The files are there, but their content is corrupted.

 Even if you're
 not doing it directly, is your mp3 software writing temp or other
 status files to that directory?  If you're curious, you could run your
 mp3 software under ktrace and then grep the output for file creation
 and removal syscalls.

OK. The files are actually FLAC, and I use XMMS. I assume I trace XMMS
and not the FLAC library? I'll try when I get home. Thanks

-Jim Stapleton
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: filesystem information

2008-06-30 Thread Bill Moran
In response to Jim [EMAIL PROTECTED]:

  If the files themselves are disappearing, then it could be the directory
  entry that's getting corrupted.
 
 The files are there, but their content is corrupted.

Well ... that seems to contradict my theory ...

  Even if you're
  not doing it directly, is your mp3 software writing temp or other
  status files to that directory?  If you're curious, you could run your
  mp3 software under ktrace and then grep the output for file creation
  and removal syscalls.
 
 OK. The files are actually FLAC, and I use XMMS. I assume I trace XMMS
 and not the FLAC library? I'll try when I get home. Thanks

Not familiar with the XMMS/FLAC software architecture, so I can't be
sure ... but my guess would be that tracing XMMS is going to catch
any oddities in file creation.

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 7.0 No Sound: emu10k1

2008-06-30 Thread Gonzalo Nemmi
Glad to hear I helped you out and you solved your problem :)

-- 
Blessings
Gonzalo Nemmi

On Monday 30 June 2008 16:28:37 David Horn wrote:
 Thanks for the hint.   snd_emu10kx instead of snd_emu10k1 (doh!)

 I knew it had to be something simple.  Everything is working great now.

 --_Dave
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: trouble shooting samba performance

2008-06-30 Thread worms
On Tue, Jun 24, 2008 at 5:25 PM, Sten Daniel Soersdal
[EMAIL PROTECTED] wrote:
 worms wrote:

 Hello,


 Can anyone point me to a guide on trouble shooting samba performance
 or a quick list of common issues I can check for.
 I've been googling but haven't found much that referenced a recent
 version of FreeBSD and Samba.

 I am running FreeBSD 7.0 on VmWare Server 2.0 hosted on a CentOS Linux
 box.
 I've used nttcp and iozone to verify that the performance of the
 FreeBSD 7.0 VM is good and am able to copy 6.5GB on disk from one
 location to another in about 2.5 minutes.

 Copying to a Windows 2003 server yields a 45 minute transfer time.

 Copying to a Windows XP workstation yields a 4 minute transfer time

 Summary:
 FreeBSD 7.0  -- FreeBSD 7.0  -- 2.5 minutes ( copying on disk )
 FreeBSD 7.0 -- WinXP -- 4 minutes ( samba )
 FreeBSD 7.0 - Windows 2003 -- 45 minutes ( samba )
 WinXP -- Windows 2003 -- 5 minutes

 Both windows machines are on the same domain.

 I've used samba for a number of years and this is the first time I've
 ran into a problem such as this.

 So if someone could give me a good starting point on how to
 troubleshoot this I'd appreciate it.

 Thanks
 --Lance

 The numbers indicate something i've seen several times but there has been
 different answers to it. Sometimes it was the indication that the RAID on
 the Windows2003 server was misconfigured or running in DEGRADED mode.
 However i've also seen issues regarding TCP/IP settings.
 Often it can be a good exercise to try to toggle this sysctl before transfer
 (net.inet.tcp.delayed_ack).
 Of course these are just clues and not real answers.

 --
 Sten Daniel Soersdal


Thanks for the advice Sten, I'll give that sysctl a try and double
check the RAID on the windows machine.

--Lance
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


OT: anyone been crazy enough to mirror wikipedia?

2008-06-30 Thread Steve Franks
So call me a sociopath, but times are a bit scary.  I'd like to do the
2000's equivalent of the 1960's bomb shelter, and have my very own
snapshot in case of major local/regional internet disruption, etc.

What would be the best way to go about this.  I see with 1T words, it
appears doable on current technology.  Maybe they should offer a
snapshot on DVDs or disk as a fundraiser?  I'd drop $300 for some sort
of officially licenced copy, I suspect there are other freaks that
would too...

Steve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


priority or order for /usr/local/etc/rc.d scripts?

2008-06-30 Thread fred
Hi guys,

 

Basically, I have 2 scripts in the folder “/usr/local/etc/rc.d/”

 

Resin.sh and apache.sh

 

I need resin to be started when apache is starting, how can I do that? I
can’t find any documentation on priority or order for startup scripts.

 

I have tried adding a line at the end of resin.sh to start apache.sh but it
doesn’t work.

 

# uname -a

FreeBSD www.mydomain.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24
19:59:52 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

 

Thanks for your help!

 

-fred

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


Re: OT: anyone been crazy enough to mirror wikipedia?

2008-06-30 Thread Bill Moran
In response to Steve Franks [EMAIL PROTECTED]:

 So call me a sociopath, but times are a bit scary.  I'd like to do the
 2000's equivalent of the 1960's bomb shelter, and have my very own
 snapshot in case of major local/regional internet disruption, etc.

http://en.wikipedia.org/wiki/Wikipedia:Database_download

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: priority or order for /usr/local/etc/rc.d scripts?

2008-06-30 Thread Derek Ragona

At 03:37 PM 6/30/2008, fred wrote:

Hi guys,



Basically, I have 2 scripts in the folder /usr/local/etc/rc.d/



Resin.sh and apache.sh



I need resin to be started when apache is starting, how can I do that? I
can't find any documentation on priority or order for startup scripts.



I have tried adding a line at the end of resin.sh to start apache.sh but it
doesn't work.



# uname -a

FreeBSD www.mydomain.com 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24
19:59:52 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386



Thanks for your help!



-fred


They are mostly done in alphabetic order, so if you need one BEFORE apache, 
rename it aa_something.


-Derek




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

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: OT: anyone been crazy enough to mirror wikipedia?

2008-06-30 Thread DAve

Steve Franks wrote:

So call me a sociopath, but times are a bit scary.  I'd like to do the
2000's equivalent of the 1960's bomb shelter, and have my very own
snapshot in case of major local/regional internet disruption, etc.

What would be the best way to go about this.  I see with 1T words, it
appears doable on current technology.  Maybe they should offer a
snapshot on DVDs or disk as a fundraiser?  I'd drop $300 for some sort
of officially licenced copy, I suspect there are other freaks that
would too...


When the world gets that bad, Wikipedia is the least of my concerns, 
slightly ahead of who is winning American Idol. If it comes to the point 
the internet goes down for a long period of time, that $300 is better 
spent on a garden.


Just my thoughts.

DAve

--
Don't tell me I'm driving the cart!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: priority or order for /usr/local/etc/rc.d scripts?

2008-06-30 Thread Paul Schmehl

--On June 30, 2008 4:37:47 PM -0400 fred [EMAIL PROTECTED] wrote:


Hi guys,



Basically, I have 2 scripts in the folder “/usr/local/etc/rc.d/”



Resin.sh and apache.sh



I need resin to be started when apache is starting, how can I do that? I
can’t find any documentation on priority or order for startup scripts.




Rc scripts are started in numeric, then alphabetic order.  If you need 
resin to start before apache, rename it 001.resin.sh.


Paul Schmehl
If it isn't already obvious,
my opinions are my own and not
those of my employer.


Re: priority or order for /usr/local/etc/rc.d scripts?

2008-06-30 Thread Andrew Wright


Regarding the order of rc scripts,

On Mon, 30 Jun 2008, fred wrote:


I need resin to be started when apache is starting, how can I do that? I
can?t find any documentation on priority or order for startup scripts.



The rcorder(8) page will help you out.  Note the PROVIDE and REQUIRE
keywords.

Andrew.

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


Gmirror Load vs Round-Robin

2008-06-30 Thread Peter Clark
Is there a best practice usage for these 2 balance options. In reading 
the man page, freebsd handbook and various how to's I see no clear 
usage. Or at least it isnt clear to me. When should you use either one? 
I am setting up a Raid 1 in FreeBSD 7.0-p2 Release with some SCSI drives.



Peter

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


Re: priority or order for /usr/local/etc/rc.d scripts?

2008-06-30 Thread Roland Smith
On Mon, Jun 30, 2008 at 04:37:47PM -0400, fred wrote:
 Hi guys,
 
 Basically, I have 2 scripts in the folder /usr/local/etc/rc.d/
 
 Resin.sh and apache.sh

Are these the scripts provided by the ports? They should be installed
without the '.sh' extension. See rc(8).

 I need resin to be started when apache is starting, how can I do that? I
 can't find any documentation on priority or order for startup scripts.

See the manual pages for rc(8) and rcorder(8). 

Basically, you need to put a number of special comments in the scripts
for the rc system to work with them. For instance, the script for resin
(made from /usr/ports/www/resin3/files/resin.sh.in) should be modified like:

# REQUIRE: LOGIN apache22

The latter is provided by the startup script installed by apache. This
is generated from /usr/ports/www/apache22/files/apache22.sh.in. 

Both should of course be enabled in /etc/rc.conf:

apache22_enable=YES
resin_enable=YES

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


pgpt0uwNUZ3VI.pgp
Description: PGP signature


Maximum swap size?

2008-06-30 Thread snott

Is there a maximum swap size limitation?  I'm using a 64-bit arch and only
seem to get about 32GB of usable swap out of a 250GB disk (all of /dev/ad6)

Thanks, Skye

# uname -a
FreeBSD XX 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  amd64
# 
# bsdlabel ad6s1
# /dev/ad6s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  b: 4883920020  swap
  c: 4883920020unused0 0 # raw part, don't
edit
# 
# swapctl -hl
Device:   1048576-blocks  Used:
/dev/ad4s1b 4094  0
/dev/ad6s1b32768  0

-- 
View this message in context: 
http://www.nabble.com/Maximum-swap-size--tp18204938p18204938.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Re: 7.0 No Sound: emu10k1

2008-06-30 Thread RW
On Mon, 30 Jun 2008 15:28:37 -0400
David Horn [EMAIL PROTECTED] wrote:

 Thanks for the hint.   snd_emu10kx instead of snd_emu10k1 (doh!)
 
 I knew it had to be something simple.  Everything is working great
 now.


For future reference there's an easy way to find the correct driver. 

You kldload snd_driver (which loads all sound drivers), start playing
some audio, and then kldunload snd_driver. kldstat will then show you
the driver that couldn't be unloaded because it's in use.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Too Much Context Switching?

2008-06-30 Thread Michel Talon
[EMAIL PROTECTED] wrote:

 It's actually been a long, slow, steady degradation of performance as 
 best I can tell, that's recently just reached proportions that are so 
 ridiculous that it's gone from this sucks but I can deal to this is 
 completely unusable. The system has been slow from the start, just not 
 this slow. I guess I'll need to investigate this...and while I know 
 that Python is somewhat off-topic, if anyone here has any suggestions 
 on where to start, they'd be much appreciated. :-)

If you want to factor FreeBSD out of the problem, try to do the exact
same Plone stuff under a good and easy Linux distro, like Ubuntu, and
you will know if the problem is in Plone. In this case you have a
workaround using a multiplexer as someone else mentioned, assuming your
machine has several cores and a lot of memory. I am not an expert, but i
have heard that Java frameworks have much better scalability, partly
because threads are handled in a more reasonable way, and also because
the JIT is very good. By the way, you can try to run Plone under psyco
http://psyco.sourceforge.net/
provided you have a lot of memory. I have seen good improvement for some
python programs with psyco. I have found a speed comparison which may
enlighten you here:
http://www.alrond.com/en/2007/jan/25/performance-test-of-6-leading-frameworks/
It has some remarks at the end which may help for plone.

-- 

Michel TALON

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


Re: Maximum swap size?

2008-06-30 Thread Ryan Coleman

snott wrote:

Is there a maximum swap size limitation?  I'm using a 64-bit arch and only
seem to get about 32GB of usable swap out of a 250GB disk (all of /dev/ad6)

Thanks, Skye

# uname -a
FreeBSD XX 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 10:35:36 UTC 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  amd64
# 
# bsdlabel ad6s1

# /dev/ad6s1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  b: 4883920020  swap
  c: 4883920020unused0 0 # raw part, don't

edit
# 
# swapctl -hl

Device:   1048576-blocks  Used:
/dev/ad4s1b 4094  0
/dev/ad6s1b32768  0

  


My first question is, why are you partitioning more than 2x your RAM? I 
highly doubt you have 16GB of RAM.

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


Re: Maximum swap size?

2008-06-30 Thread snott

Trust me, I really do want 250GB (or more) of swap.   I'm using swap as a
backing store for an HTTP reverse proxy for very large cache sets.  Its more
efficient to just use the vm layer for LRU object management than to create
a huge mmap'd file with file buf caching.

Skye



Ryan Coleman wrote:
 
 snott wrote:
 Is there a maximum swap size limitation?  I'm using a 64-bit arch and
 only
 seem to get about 32GB of usable swap out of a 250GB disk (all of
 /dev/ad6)

 Thanks, Skye
 
 My first question is, why are you partitioning more than 2x your RAM? I 
 highly doubt you have 16GB of RAM.
 

-- 
View this message in context: 
http://www.nabble.com/Maximum-swap-size--tp18204938p18205925.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

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


Re: Too Much Context Switching?

2008-06-30 Thread alex

Quoting Kris Kennaway [EMAIL PROTECTED]:


Michel Talon wrote:

On Mon, Jun 30, 2008 at 07:53:00PM +0200, Kris Kennaway wrote:
Yep, it could be that -- what confuses me though is that it is 
claimed that performance suddenly regressed.  If so then this 
cannot be the underlying cause.


It may be that the load has augmented to the point that contention
imposes a rapid regression on throughput.


Yes, it could be that.  I don't know off-hand whether multiple threads
are counted separately by vmstat (at a guess I'd say no), but ps/top/etc
should show how many are active in the python process.


Just ran ktrace, and a bit of Googling seems to confirm my initial 
suspicion that the results I'm seeing are abnormal. The first several 
screenfulls of output look like this:


 52929 python2.4 1214867016.469416 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.60 RET   kse_wakeup 0
 52929 python2.4 0.08 RET   kse_release 0
 52929 python2.4 0.40 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000515 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.12 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000365 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.03 RET   kse_release 0
 52929 python2.4 0.10 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000413 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.11 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.09 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000393 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.09 CALL  kse_release(0x811df4c)

I may be mistaken, but it seems like that's a lot of unnecessary 
activity managing the threads; the confirmation I found came from 
http://arkiv.freebsd.se/?ml=freebsd-threadsa=2007-02t=3178634.


Am I correct that this is abnormal behavior? If so, any idea what I may 
need to do to fix the issue?


Alex

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


Re: Maximum swap size?

2008-06-30 Thread Kris Kennaway

snott wrote:

Trust me, I really do want 250GB (or more) of swap.   I'm using swap as a
backing store for an HTTP reverse proxy for very large cache sets.  Its more
efficient to just use the vm layer for LRU object management than to create
a huge mmap'd file with file buf caching.


I am not certain but I think on 64-bit systems the 32GB limitation is 
per swap device (on i386 there is a 16GB total limitation because of a 
32-bit counter of 512 byte blocks), so you can add multiple swap 
devices.  However if you slice up a disk into many partitions you might 
lose performance because it will try to round robin between them, 
assuming they are independent (but they're not; you'll lose I/O 
throughput from seek delays).  It may not be hard to change this behaviour.


In general your strategy is a good one but there are other problems; 
managing that amount of swap will require a lot of auxiliary kernel 
memory.  It is hard to estimate exactly how much for various reasons 
(it's not entirely deterministic), but in my environment even 20GB of 
swap requires increasing


kern.maxswzone=209715200

i.e. about 200MB of memory just to keep track of the allocated swap.  If 
you don't tune this then you'll run out of swap zone when you allocate 
beyond a certain point, and the kernel will deadlock.  I think the 
default value allows about 8GB of swap use.


Other kernel limits will prevent this from being raised above about 
1500MB (although a forthcoming change in 8.0 will bring it up to 4GB).


Basically, even though there are valid reasons to want to do what you're 
doing (and I do it myself on the build cluster that builds the FreeBSD 
packages), you're operating in a zone that would have been considered 
complete insanity until recently, and sufficiently few people have 
wanted to try that no-one has thought about optimizing in this regime.


I think it would be quite an interesting project to try, though.

Kris

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


Re: Too Much Context Switching?

2008-06-30 Thread Kris Kennaway

[EMAIL PROTECTED] wrote:

Quoting Kris Kennaway [EMAIL PROTECTED]:


Michel Talon wrote:

On Mon, Jun 30, 2008 at 07:53:00PM +0200, Kris Kennaway wrote:
Yep, it could be that -- what confuses me though is that it is 
claimed that performance suddenly regressed.  If so then this cannot 
be the underlying cause.


It may be that the load has augmented to the point that contention
imposes a rapid regression on throughput.


Yes, it could be that.  I don't know off-hand whether multiple threads
are counted separately by vmstat (at a guess I'd say no), but ps/top/etc
should show how many are active in the python process.


Just ran ktrace, and a bit of Googling seems to confirm my initial 
suspicion that the results I'm seeing are abnormal. The first several 
screenfulls of output look like this:


 52929 python2.4 1214867016.469416 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.60 RET   kse_wakeup 0
 52929 python2.4 0.08 RET   kse_release 0
 52929 python2.4 0.40 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000515 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.12 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000365 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.03 RET   kse_release 0
 52929 python2.4 0.10 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000413 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.11 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.09 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000393 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.09 CALL  kse_release(0x811df4c)

I may be mistaken, but it seems like that's a lot of unnecessary 
activity managing the threads; the confirmation I found came from 
http://arkiv.freebsd.se/?ml=freebsd-threadsa=2007-02t=3178634.


Am I correct that this is abnormal behavior? If so, any idea what I may 
need to do to fix the issue?


Looks exactly like the python thread problem Michel described.

You will get some improvement by switching to libthr and/or updating to 
7.0 as I discussed, but ultimately you're hitting limits of python, not 
FreeBSD.


Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Too Much Context Switching? - FIXED

2008-06-30 Thread alex

Quoting Kris Kennaway [EMAIL PROTECTED]:


[EMAIL PROTECTED] wrote:

Quoting Kris Kennaway [EMAIL PROTECTED]:


Michel Talon wrote:

On Mon, Jun 30, 2008 at 07:53:00PM +0200, Kris Kennaway wrote:
Yep, it could be that -- what confuses me though is that it is 
claimed that performance suddenly regressed.  If so then this 
cannot be the underlying cause.


It may be that the load has augmented to the point that contention
imposes a rapid regression on throughput.


Yes, it could be that.  I don't know off-hand whether multiple threads
are counted separately by vmstat (at a guess I'd say no), but ps/top/etc
should show how many are active in the python process.


Just ran ktrace, and a bit of Googling seems to confirm my initial 
suspicion that the results I'm seeing are abnormal. The first 
several screenfulls of output look like this:


 52929 python2.4 1214867016.469416 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.60 RET   kse_wakeup 0
 52929 python2.4 0.08 RET   kse_release 0
 52929 python2.4 0.40 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000515 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.12 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000365 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.03 RET   kse_release 0
 52929 python2.4 0.10 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000413 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.11 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.09 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000393 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.09 CALL  kse_release(0x811df4c)

I may be mistaken, but it seems like that's a lot of unnecessary 
activity managing the threads; the confirmation I found came from 
http://arkiv.freebsd.se/?ml=freebsd-threadsa=2007-02t=3178634.


Am I correct that this is abnormal behavior? If so, any idea what I 
may need to do to fix the issue?


Looks exactly like the python thread problem Michel described.

You will get some improvement by switching to libthr and/or updating to
7.0 as I discussed, but ultimately you're hitting limits of python, not
FreeBSD.


WOW...it's *amazing* how much of a difference a single sysctl can make.

I went ahead and set kern.threads.virtual_cpu=1, as suggested in the 
thread above, and the difference is ridiculous -- Zope is now faster 
than I've ever seen. More importantly, my ktracing shows that all of 
the kse_* garabage is now gone.


I'll probably be upgrading to 7.0 in the next month or so, given that 
this is obviously a thread issue and that that release has much 
improved thread code. However, for the time being, the pressing issue 
is fixed, and for anyone in my position stuck on 6.2...this is night  
day.


Alex
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: freebsd-update key error

2008-06-30 Thread Glenn Sieb

Rudi Kramer - MWEB wrote:

Hey Robert,

This error indicates that you are having some sort of connection issues,
I for instance get it when  I forget to use our work proxy, here are
some steps you can try to remedy the problem:

1) Can you resolve update1.FreeBSD.org? 
2) Can you ping update1.FreeBSD.org? 
3) Can you telnet to update1.FreeBSD.org on port 80?


That should give you a idea on what the problem is.
  


Hi Rudi!

I can say that I'm getting the same issue as Robert, and I can answer to 
the affirmative to all three of your questions.


I'm running:

FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #28: Sun Jun  1 10:35:27 EDT 2008 
amd64


Thanks in advance...
Best,
--Glenn

--
...destination is merely a byproduct of the journey
  --Eric Hansen

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


Configuring an older server for speed...

2008-06-30 Thread Kurt Buff
All,

I've got a Compaq ML570 with 2gb RAM, dual PIII Xeon 700s and 5x10k
RPM drives in it attached to a Compaq 5300 RAID card that I'm going to
be using as a squid box.

I've configured two drives as RAID 1 with the third as a hot spare,
and two drives as RAID0 - I intend to put the squid cache on the
latter, and have mounted it as /squid.

I'm running 7STABLE from a couple of days ago.

What might I do to achieve better/best performance? I'm replacing a
less capable whitebox. One of the big issues I've had has manifested
itself recently - we've moved from a T1 to a DS3, and while overall
throughput has increased dramatically, people are now complaining that
the Internet is slow, which I've found is all down to initial page
load. I'm pursuing optimizing squid elsewhere, and want to focus on
getting this box as fast as I reasonably can before sticking squid on
it. I've got more RAM to put into it - I'd be stealing from another
machine that's little used, but I should be able to get it to 4gb RAM.

As a benchmark, there are about 230 people in my site who will be
using this box for their proxy, and their usage is all over the map -
worse, I haven't been given the time to put any analysis tools into
play to figure out the load on the old box, as we're in the middle of
a number of other projects of equal or higher priority.

Kurt
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Too Much Context Switching? - FIXED

2008-06-30 Thread Kris Kennaway

[EMAIL PROTECTED] wrote:

Quoting Kris Kennaway [EMAIL PROTECTED]:


[EMAIL PROTECTED] wrote:

Quoting Kris Kennaway [EMAIL PROTECTED]:


Michel Talon wrote:

On Mon, Jun 30, 2008 at 07:53:00PM +0200, Kris Kennaway wrote:
Yep, it could be that -- what confuses me though is that it is 
claimed that performance suddenly regressed.  If so then this 
cannot be the underlying cause.


It may be that the load has augmented to the point that contention
imposes a rapid regression on throughput.


Yes, it could be that.  I don't know off-hand whether multiple threads
are counted separately by vmstat (at a guess I'd say no), but 
ps/top/etc

should show how many are active in the python process.


Just ran ktrace, and a bit of Googling seems to confirm my initial 
suspicion that the results I'm seeing are abnormal. The first several 
screenfulls of output look like this:


 52929 python2.4 1214867016.469416 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.60 RET   kse_wakeup 0
 52929 python2.4 0.08 RET   kse_release 0
 52929 python2.4 0.40 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000515 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.12 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000365 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.03 RET   kse_release 0
 52929 python2.4 0.10 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000413 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.11 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.09 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000393 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.09 CALL  kse_release(0x811df4c)

I may be mistaken, but it seems like that's a lot of unnecessary 
activity managing the threads; the confirmation I found came from 
http://arkiv.freebsd.se/?ml=freebsd-threadsa=2007-02t=3178634.


Am I correct that this is abnormal behavior? If so, any idea what I 
may need to do to fix the issue?


Looks exactly like the python thread problem Michel described.

You will get some improvement by switching to libthr and/or updating to
7.0 as I discussed, but ultimately you're hitting limits of python, not
FreeBSD.


WOW...it's *amazing* how much of a difference a single sysctl can make.

I went ahead and set kern.threads.virtual_cpu=1, as suggested in the 
thread above, and the difference is ridiculous -- Zope is now faster 
than I've ever seen. More importantly, my ktracing shows that all of the 
kse_* garabage is now gone.


I'll probably be upgrading to 7.0 in the next month or so, given that 
this is obviously a thread issue and that that release has much improved 
thread code. However, for the time being, the pressing issue is fixed, 
and for anyone in my position stuck on 6.2...this is night  day.


Seriously, try libthr.  No matter what you do to libkse it is going to 
suck.  That's why we removed it.


Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Too Much Context Switching? - FIXED

2008-06-30 Thread alex

Quoting Kris Kennaway [EMAIL PROTECTED]:


[EMAIL PROTECTED] wrote:

Quoting Kris Kennaway [EMAIL PROTECTED]:


[EMAIL PROTECTED] wrote:

Quoting Kris Kennaway [EMAIL PROTECTED]:


Michel Talon wrote:

On Mon, Jun 30, 2008 at 07:53:00PM +0200, Kris Kennaway wrote:
Yep, it could be that -- what confuses me though is that it is 
claimed that performance suddenly regressed.  If so then this 
cannot be the underlying cause.


It may be that the load has augmented to the point that contention
imposes a rapid regression on throughput.


Yes, it could be that.  I don't know off-hand whether multiple threads
are counted separately by vmstat (at a guess I'd say no), but ps/top/etc
should show how many are active in the python process.


Just ran ktrace, and a bit of Googling seems to confirm my initial 
suspicion that the results I'm seeing are abnormal. The first 
several screenfulls of output look like this:


 52929 python2.4 1214867016.469416 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.60 RET   kse_wakeup 0
 52929 python2.4 0.08 RET   kse_release 0
 52929 python2.4 0.40 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000515 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.12 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000365 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.03 RET   kse_release 0
 52929 python2.4 0.10 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000413 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.11 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.09 CALL  kse_release(0x811df4c)
 52929 python2.4 0.000393 CALL  kse_wakeup(0x811740c)
 52929 python2.4 0.12 RET   kse_wakeup 0
 52929 python2.4 0.04 RET   kse_release 0
 52929 python2.4 0.09 CALL  kse_release(0x811df4c)

I may be mistaken, but it seems like that's a lot of unnecessary 
activity managing the threads; the confirmation I found came from 
http://arkiv.freebsd.se/?ml=freebsd-threadsa=2007-02t=3178634.


Am I correct that this is abnormal behavior? If so, any idea what 
I may need to do to fix the issue?


Looks exactly like the python thread problem Michel described.

You will get some improvement by switching to libthr and/or updating to
7.0 as I discussed, but ultimately you're hitting limits of python, not
FreeBSD.


WOW...it's *amazing* how much of a difference a single sysctl can make.

I went ahead and set kern.threads.virtual_cpu=1, as suggested in the 
thread above, and the difference is ridiculous -- Zope is now faster 
than I've ever seen. More importantly, my ktracing shows that all of 
the kse_* garabage is now gone.


I'll probably be upgrading to 7.0 in the next month or so, given 
that this is obviously a thread issue and that that release has much 
improved thread code. However, for the time being, the pressing 
issue is fixed, and for anyone in my position stuck on 6.2...this is 
night  day.


Seriously, try libthr.  No matter what you do to libkse it is going to
suck.  That's why we removed it.


I will, probably as part of upgrading to 7.0 (which I may accelerate, 
given this point). I'm just ecstatic at the difference I'm already 
seeing, and specifically wanted to make note of it in the archives. 
Point very much taken, though. :-)


Alex
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


which font previewer?

2008-06-30 Thread Gary Kline

A fellow compunerd got tired of being first-hired and first-fired,
went back to school in art/computer animation.   long-story-story, this
guy came up with the right kind of logo for my website; he sent a 
united 
t+u that at least *i* liked.  Now that I'm learning to use the GIMP 
--*thanks* to the patient and thouhtful -questions members who have help
me with Layers--now i need to find which typeface(s) looks best.

i'd be much obliged for the top couple font viewer a apps so i can 
compare the
bunches [scores] of fonts I've  collected?

gary


-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


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


Re: Too Much Context Switching? - FIXED

2008-06-30 Thread Josh Carroll
 I will, probably as part of upgrading to 7.0 (which I may accelerate, given
 this point). I'm just ecstatic at the difference I'm already seeing, and
 specifically wanted to make note of it in the archives. Point very much
 taken, though. :-)

It's trivial to change to libthr, as pointed out earlier in this
thread. You simply add an entry/entries to /etc/libmap.conf (see man
libmap.conf for details) and then restart whatever it is that is
currently running against libkse.

I'll second Kris' recommendation to move to libthr. I saw a drastic
improvement in MySQL and ffmpeg performance on 6.2 when I switched
from libkse to libthr. Certainly 7.0 would give it to you
automatically, but there's no reason not to use libmap to use it now,
as an interim solution.

Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring an older server for speed...

2008-06-30 Thread Ryan Coleman

Kurt Buff wrote:

All,

I've got a Compaq ML570 with 2gb RAM, dual PIII Xeon 700s and 5x10k
RPM drives in it attached to a Compaq 5300 RAID card that I'm going to
be using as a squid box.

I've configured two drives as RAID 1 with the third as a hot spare,
and two drives as RAID0 - I intend to put the squid cache on the
latter, and have mounted it as /squid.

I'm running 7STABLE from a couple of days ago.

What might I do to achieve better/best performance? I'm replacing a
less capable whitebox. One of the big issues I've had has manifested
itself recently - we've moved from a T1 to a DS3, and while overall
throughput has increased dramatically, people are now complaining that
the Internet is slow, which I've found is all down to initial page
load. I'm pursuing optimizing squid elsewhere, and want to focus on
getting this box as fast as I reasonably can before sticking squid on
it. I've got more RAM to put into it - I'd be stealing from another
machine that's little used, but I should be able to get it to 4gb RAM.

As a benchmark, there are about 230 people in my site who will be
using this box for their proxy, and their usage is all over the map -
worse, I haven't been given the time to put any analysis tools into
play to figure out the load on the old box, as we're in the middle of
a number of other projects of equal or higher priority.

Kurt
  
I would recommend fBSD 6.3 instead of 7. You don't need it, unless you 
have a documented reason it has to be 7.0

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


Re: Configuring an older server for speed...

2008-06-30 Thread prad
On Mon, 30 Jun 2008 20:39:05 -0500
Ryan Coleman [EMAIL PROTECTED] wrote:

 I would recommend fBSD 6.3 instead of 7. You don't need it, unless
 you have a documented reason it has to be 7.0

really?!

i thought 7 was supposed to be a big improvement over 6.3:
Dramatic improvements in performance and SMP scalability shown by
various database and other benchmarks,in some cases showing peak
performance improvements as high as 350% over FreeBSD 6.X under normal
loads and 1500% at high loads.
http://www.freebsd.org/releases/7.0R/announce.html

we've had a lot of trouble though installing 7 on some of our older
machines (6.3 is easy and worked well too) because the cdrom doesn't
always cooperate. but we got it to work with some extra effort, because
we thought it would be better.

is it possible that the older versions work better on older
machines?

-- 
In friendship,
prad

  ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: second pre-emptive raid: stripes and the os

2008-06-30 Thread prad
On Sun, 29 Jun 2008 14:56:57 -0700
prad [EMAIL PROTECTED] wrote:

 based on the excellent ideas from the first pre-emptive raid thread we
 have been considering raid1+0 or raid5 for our server

our server just arrived today!! and there was an unexpected surprise in
it - a raid card mylex extreme raid2000 which worked right away. does
anyone know about the quality of this card?

so we will be using that instead of software raid, though i still would
like to know how you setup a stripe and keep the os on it.

-- 
In friendship,
prad

  ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


searching freebsd-questions Archives

2008-06-30 Thread prad
i've gone to freebsd-questions Archives:
http://lists.freebsd.org/pipermail/freebsd-questions/

and tried typing all sorts of things in the search box and playing with
the other fields (eg all and any, but i always get
No matches were found for '...'

how is one supposed to use the search in the archives?

-- 
In friendship,
prad

  ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Fatal Trap 12 Page Fault while in Kernel Moder

2008-06-30 Thread Devinder Singh

Hi I am using Free BSD 6.3 and am intergating Monowal and FreeRadius
 
When i make the image i get this error
 
Fatal Trap 12 :page fault while in kernel mode
 
Fault virtual addres 0xbffle000
fault code -= supervisor write, page not present
instruction pointer  = 0*28 = 
 
 
trap number 12
panic = page fault
 
Pls can some one help me on this 
_
NEW! Get Windows Live FREE.
http://www.get.live.com/wl/all___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Making changes to ports default install

2008-06-30 Thread Tim DeBoer
Hi everyone,
I've been working on a new server, and I'd like to install apache from ports
to make maintenance easier.
The problem is the default layout drives me nuts. I'd like to use a more
intuitive layout. Is it possible to pass a custom layout file during make
build? Something like make build WITH_LAYOUT=/path/to/layout/file  or
something along those lines?

If it makes any difference, I also need to install PHP and MySQL along with
apache. I don't know if using a different layout file would cause issues
with either of those. Anyone have any advice on that?


Thanks all   :)


Tim

-- 
Ronald Reagan  - Recession is when a neighbor loses his job. Depression is
when you lose yours.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring an older server for speed...

2008-06-30 Thread David Gurvich
There are improvements in the wireless system and in locking.  One of
the most interesting is the possibility of using zfs and dtrace from
Solaris.  Many of these features have undiscovered bugs that you might
prefer not discovering on your own server.  For desktop and laptop use
I would certainly have no issues with using 7.0.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring an older server for speed...

2008-06-30 Thread prad
On Mon, 30 Jun 2008 23:17:05 -0400
David Gurvich [EMAIL PROTECTED] wrote:

 Many of these features have undiscovered bugs that you might
 prefer not discovering on your own server.

oh oh.
but what if we are just running a plain webserver (mainly static html)
and email. we are sticking to ufs of course.
it is an older machine - dual 1.3G with 2G ram and a raid card.

we've run 7 since the beginning of june on 2 desktops (700Hz with 192M
and 128M ram) doing the above serving without any problems and are just
about to set up this server to replace the other 2.

should we use 7 or think about going with 6.3?

-- 
In friendship,
prad

  ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring an older server for speed...

2008-06-30 Thread Kurt Buff
On Mon, Jun 30, 2008 at 6:39 PM, Ryan Coleman [EMAIL PROTECTED] wrote:
 Kurt Buff wrote:

 All,

 I've got a Compaq ML570 with 2gb RAM, dual PIII Xeon 700s and 5x10k
 RPM drives in it attached to a Compaq 5300 RAID card that I'm going to
 be using as a squid box.

 I've configured two drives as RAID 1 with the third as a hot spare,
 and two drives as RAID0 - I intend to put the squid cache on the
 latter, and have mounted it as /squid.

 I'm running 7STABLE from a couple of days ago.

 What might I do to achieve better/best performance? I'm replacing a
 less capable whitebox. One of the big issues I've had has manifested
 itself recently - we've moved from a T1 to a DS3, and while overall
 throughput has increased dramatically, people are now complaining that
 the Internet is slow, which I've found is all down to initial page
 load. I'm pursuing optimizing squid elsewhere, and want to focus on
 getting this box as fast as I reasonably can before sticking squid on
 it. I've got more RAM to put into it - I'd be stealing from another
 machine that's little used, but I should be able to get it to 4gb RAM.

 As a benchmark, there are about 230 people in my site who will be
 using this box for their proxy, and their usage is all over the map -
 worse, I haven't been given the time to put any analysis tools into
 play to figure out the load on the old box, as we're in the middle of
 a number of other projects of equal or higher priority.

 Kurt


 I would recommend fBSD 6.3 instead of 7. You don't need it, unless you have
 a documented reason it has to be 7.0


Why not? It installed really well, and I've had no issues with it on
other machines.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Making changes to ports default install

2008-06-30 Thread Sahil Tandon
Tim DeBoer [EMAIL PROTECTED] wrote:

 I've been working on a new server, and I'd like to install apache from ports
 to make maintenance easier.
 The problem is the default layout drives me nuts. I'd like to use a more
 intuitive layout. Is it possible to pass a custom layout file during make
 build? Something like make build WITH_LAYOUT=/path/to/layout/file  or
 something along those lines?

Look into --enable-layout.  See the various options in config.layout; if none 
of them suit you, you can add your custom rules.  I believe you can also 
point to a file that contains your custom layout if you are uncomfortable 
editing the config.layout.

[...]

-- 
Sahil Tandon [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring an older server for speed...

2008-06-30 Thread Sahil Tandon
Ryan Coleman [EMAIL PROTECTED] wrote:

 Kurt Buff wrote:

[...]

 I would recommend fBSD 6.3 instead of 7. You don't need it, unless you have 
 a documented reason it has to be 7.0

Please qualify that recommendation; as it stands, it is pure FUD.

-- 
Sahil Tandon [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Configuring an older server for speed...

2008-06-30 Thread Ryan Coleman

Sahil Tandon wrote:

Ryan Coleman [EMAIL PROTECTED] wrote:

  

Kurt Buff wrote:



[...]

  
I would recommend fBSD 6.3 instead of 7. You don't need it, unless you have 
a documented reason it has to be 7.0



Please qualify that recommendation; as it stands, it is pure FUD.

  
I don't see the need. And I couldn't get 7 to install on my brand new 
machine. Once I got the 6.3 amd64 build it went in without an issue.


I don't see the reason to run the latest and greatest for a file/web 
server. Desktops are one thing, but you can get more out of your CPU and 
RAM with less clutter out of the box.

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


Re: OT: anyone been crazy enough to mirror wikipedia?

2008-06-30 Thread Chad Perrin
On Mon, Jun 30, 2008 at 05:15:39PM -0400, DAve wrote:
 Steve Franks wrote:
 So call me a sociopath, but times are a bit scary.  I'd like to do the
 2000's equivalent of the 1960's bomb shelter, and have my very own
 snapshot in case of major local/regional internet disruption, etc.
 
 What would be the best way to go about this.  I see with 1T words, it
 appears doable on current technology.  Maybe they should offer a
 snapshot on DVDs or disk as a fundraiser?  I'd drop $300 for some sort
 of officially licenced copy, I suspect there are other freaks that
 would too...
 
 When the world gets that bad, Wikipedia is the least of my concerns, 
 slightly ahead of who is winning American Idol. If it comes to the point 
 the internet goes down for a long period of time, that $300 is better 
 spent on a garden.
 
 Just my thoughts.

Actually . . . if things get that bad, you're going to need some
firepower to protect your garden (and everything else you don't want
taken from you by force).  To properly protect a garden, you'd need to
make it a community farm, with community members who have and will use
firearms to protect it (and your Wikipedia mirror).

Of course, I greatly admire the impulse to protect the collected
knowledge of Wikipedia from disaster.  It's also practical -- because it
contains a lot of information that might be of use (including good
subsistence gardening information, for those of us who don't have
naturally green thumbs).

Them's are just *my* thoughts.

-- 
Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
Larry Wall: Perl is, in intent, a cleaned up and summarized version of
that wonderful semi-natural language known as 'Unix'.


pgpwbxt7qg8xl.pgp
Description: PGP signature


Re: Configuring an older server for speed...

2008-06-30 Thread Matthew Seaman

prad wrote:

On Mon, 30 Jun 2008 23:17:05 -0400
David Gurvich [EMAIL PROTECTED] wrote:


Many of these features have undiscovered bugs that you might
prefer not discovering on your own server.


oh oh.
but what if we are just running a plain webserver (mainly static html)
and email. we are sticking to ufs of course.
it is an older machine - dual 1.3G with 2G ram and a raid card.

we've run 7 since the beginning of june on 2 desktops (700Hz with 192M
and 128M ram) doing the above serving without any problems and are just
about to set up this server to replace the other 2.

should we use 7 or think about going with 6.3?



I'd go with 7.x every time.  It wipes the floor with 6.3 performance-wise
and it is just as stable and bug-free as you'ld expect from FreeBSD.  You've
seen it works for you: there's no conceivable reason to downgrade.

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



signature.asc
Description: OpenPGP digital signature


Is it reliable to increase the MAXCPU in param.h ?

2008-06-30 Thread ProAce
Server: HP DL785G5 with 8 CPU ( 32 cores ) , 16G RAM
OS: FreeBSD 7.0-amd64
Kernel 1: MAXCPU = 16 ( default )
Kernel 2: MAXCPU = 32

DL785G5 run with kernel 1 and kernel 2 both successfully, and the
FreeBSD can detect the 16 CPUs and 32 CPUs normally ( using top -S
command).

If I use kernel 2 for postgresql 8.3,  is it reliable and stable?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Using freebsd-update after upgrading from source

2008-06-30 Thread Victor Sudakov
Manolis Kiagias wrote:
 
 I have been updating 6.2-RELEASE with freebsd-update. Recently I
 upgraded it to RELENG_6_3 from source. Can I continue using
 freebsd-update or must I upgrade only from source from now on?
 
   
 
 I don't see why not. 

I was wondering if freebsd-update will break if my binaries happen to
be different from those in the official release. 

 freebsd-update will download binary updates to the 
 system as well as the relevant sources for them (look at 
 /etc/freebsd-update.conf to verify).

I don't update sources with freebsd-update. I mount them from an NFS
server running cvsup.

 
 I conducted an experiment and got inconclusive results. I had upgraded
 to RELENG_6_3-p2 where the problems with libpthread and ssh are
 already fixed. However, when I ran freebsd-update, it did replace
 libpthread and libssh. It also replaced the kernel, downgrading it
 from 6.3-RELEASE-p2 to 6.3-RELEASE-p1!
   
 
 Don't be so sure. If you are running a GENERIC kernel, freebsd-update 
 simply downloaded the latest. If -p2 did not have any kernel updates (it 
 did not IIRC) you got the kernel for -p1.  The fact it replaced your 
 GENERIC (which had a -p2 deisgnation in uname) is probably because this 
 was compiled on your system so freebsd-update did not recognize the 
 version. These two should be functionally identical. In fact if you just 
 recompile the kernel now, it will report -p2 

If i recompile GENERIC now, freebsd-update will suggest updating 
it again and again 

P.S. I know that freebsd-update will leave the kernel alone if 
uname -i is not GENERIC|SMP, but my question is more generic. 
How well can freebsd-update handle a system compiled from source?

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Using freebsd-update after upgrading from source

2008-06-30 Thread Victor Sudakov
Colleagues,

I have been updating 6.2-RELEASE with freebsd-update. Recently I
upgraded it to RELENG_6_3 from source. Can I continue using
freebsd-update or must I upgrade only from source from now on?

I conducted an experiment and got inconclusive results. I had upgraded
to RELENG_6_3-p2 where the problems with libpthread and ssh are
already fixed. However, when I ran freebsd-update, it did replace
libpthread and libssh. It also replaced the kernel, downgrading it
from 6.3-RELEASE-p2 to 6.3-RELEASE-p1!

Does it mean that freebsd-update is not recommended after upgrade from
source?

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
sip:[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


keymapping - numlock doesn't work anymore

2008-06-30 Thread Alain G. Fabry
FreeBSD 7.0-RELEASE (qemu host)
X.Org X Server 1.4.2
HP Compaq nc8430 laptop

Hi, recently I performed a portupgrade (-R xorg-server) and now my numlock 
doesn't work anymore under Xorg.
Since I was having problems with my key-mapping in Qemu (key 1 and 4 did not 
work), I used the numlock to boot my FreeBSD guest in single user mode.

In the CTRL+ALT+F1 session (not sure who you call this non-X tty session), the 
num_lock works fine.

I've looked at the xev and from what I see this confirms that my num_lock is 
not working.

REGULAR j
+

KeyPress event, serial 32, synthetic NO, window 0x321,
root 0x4c, subw 0x0, time 15118461, (-133,-349), root:(966,270),
state 0x0, keycode 44 (keysym 0x6a, j), same_screen YES,
XLookupString gives 1 bytes: (6a) j
XmbLookupString gives 1 bytes: (6a) j
XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x321,
root 0x4c, subw 0x0, time 15118511, (-133,-349), root:(966,270),
state 0x0, keycode 44 (keysym 0x6a, j), same_screen YES,
XLookupString gives 1 bytes: (6a) j
XFilterEvent returns: False

LEFT SHIFT + CAPITAL J


KeyPress event, serial 32, synthetic NO, window 0x321,
root 0x4c, subw 0x0, time 15120328, (-133,-349), root:(966,270),
state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 32, synthetic NO, window 0x321,
root 0x4c, subw 0x0, time 15120628, (-133,-349), root:(966,270),
state 0x1, keycode 44 (keysym 0x4a, J), same_screen YES,
XLookupString gives 1 bytes: (4a) J
XmbLookupString gives 1 bytes: (4a) J
XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x321,
root 0x4c, subw 0x0, time 15120689, (-133,-349), root:(966,270),
state 0x1, keycode 44 (keysym 0x4a, J), same_screen YES,
XLookupString gives 1 bytes: (4a) J
XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x321,
root 0x4c, subw 0x0, time 15120980, (-133,-349), root:(966,270),
state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

NUM LOCK followed by j
++

KeyPress event, serial 32, synthetic NO, window 0x321,
root 0x4c, subw 0x0, time 15135961, (-133,-349), root:(966,270),
state 0x0, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x321,
root 0x4c, subw 0x0, time 15136005, (-133,-349), root:(966,270),
state 0x10, keycode 77 (keysym 0xff7f, Num_Lock), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 32, synthetic NO, window 0x321,
root 0x4c, subw 0x0, time 15138611, (-133,-349), root:(966,270),
state 0x10, keycode 44 (keysym 0x6a, j), same_screen YES,
XLookupString gives 1 bytes: (6a) j
XmbLookupString gives 1 bytes: (6a) j
XFilterEvent returns: False

KeyRelease event, serial 32, synthetic NO, window 0x321,
root 0x4c, subw 0x0, time 15138662, (-133,-349), root:(966,270),
state 0x10, keycode 44 (keysym 0x6a, j), same_screen YES,
XLookupString gives 1 bytes: (6a) j
XFilterEvent returns: False


What can I do to solve this?

Thanks,

Alain
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem With ZFS script

2008-06-30 Thread Kris Kennaway

Vince Hoffman wrote:

--
#!/bin/sh -

TEXT=$(kldstat | tr a-f A-F | \
awk 'BEGIN {print ibase=16}; NR  1 {print $4}'\
| bc | awk '{a+=$1}; END {print a}')
DATA=$(vmstat -m | sed 's/K//' | awk '{a+=$3}; END {print a*1024}')
TOTAL=$(echo $DATA $TEXT | awk '{print $1+$2}')

echo TEXT=$TEXT, $(echo $TEXT | awk '{print $1/1048576  MB}')
echo DATA=$DATA, $(echo $DATA | awk '{print $1/1048576  MB}')
echo TOTAL=$TOTAL, $(echo $TOTAL | awk '{print $1/1048576  MB}')
--
Looks like the wiki stripped some formatting.


I still don't know that this is doing anything meaningful in the context 
of ZFS memory use.


Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Too Much Context Switching?

2008-06-30 Thread Kris Kennaway

[EMAIL PROTECTED] wrote:
I'm the webmaster for www.marssociety.org, which is a FreeBSD 
6.2-RELEASE box running on a dual-core AMD Opteron setup with 4GB of 
RAM. The box is reasonably busy, as it's the sole piece of hardware 
running web, database, and mail operations for the Mars Society, an 
international nonprofit group dedicated to space exploration. We 
regularly send out newsletters to ~10,000 members, and our web site is 
averaging ~50,000-100,000 hits/day.


The main portion of the web site is run via the Zope/Plone CMS system 
(Plone 2.5, for anyone who may care). Recently, it's been slowing down 
dramatically, and our Plone guy (not me -- I inherited the system and 
can't stand it) can't figure out why. I've been diving into OS-related 
issues, and in so doing, I ran across what appears to be a very high 
number of context switches going on. Here's some sample output from 
vmstat 2:


A few hundred or thousand context switches per second is trivial load. 
That is not your problem.  Modern CPUs can do hundreds of thousands per 
second before it starts to become a problem.


Note that your system is 50% idle and spending almost no time in the 
kernel.  This basically means that only one core is doing work, which 
might be because you're not giving it enough work to do.  There are only 
1-2 running tasks for most of your trace, one of which is probably 
vmstat itself, so that means there is only one running server process 
(which can obviously only saturate at most 1 CPU).


The trace suggests that your performance problems are either in 
userland, or elsewhere in your network or application stack, possibly 
due to interactions between components.  Try to look at why the system 
is not being given enough work to keep it saturated.


Kris


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


Re: XScreensaver issue

2008-06-30 Thread Daniel Bye
On Sun, Jun 29, 2008 at 04:04:36PM -0400, Matthew Donovan wrote:
  Hi,
 
  I'm getting since my last update an error message in xscreensaver:
  glslideshow: couldn't create GL context
 
  Actually I'm not able to use any OpenGL screensaver anymore. OpenGL is
  running
  fine, I'm using composite options and gears program run at 400 FPS. Load
  GLX
  is activated in xorg.conf, that's why I don't understand.
 
 snipped the email since it was a bit long but with the nvidia binary
 driver you do not have to load glx since the nvidia binary has it's own
 glx setup. which you seem to be using nvidia binary driver.

In addition to Matthew's suggestion, you might do well to force a 
reinstall of the nvidia-driver port, to ensure that its own GL libs
are available, instead of any installed by other ports.

Note also that if you update your system, you should reinstall the
port, as it needs to be compiled against the source for the running
kernel. Not recompiling it in the event you carry out a buildworld/
buildkernel cycle, etc, will likely lead to strange failures of the 
driver.

Dan

-- 
Daniel Bye
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgp2QEN8dTcUe.pgp
Description: PGP signature


Re: rc scripts

2008-06-30 Thread David Allen
On Fri, Jun 27, 2008 at 3:01 PM, Derek Ragona
[EMAIL PROTECTED] wrote:

 At 04:11 PM 6/27/2008, David Allen wrote:

 I need to an '-s' flag to the execution of openntpd's rc script:
 The problems I'm having are multiple.  First, the program doesn't offer
 any logging, and running it with the do not daemonize switch with

# /usr/local/sbin/ntpd -d 21  logfile

 yields no output.

 Add:
 set -x

 at the top of the script and run the output to a file as you were doing.  I 
 would add a path to the logfile though and don't worry about the daemon like:

 /usr/local/sbin/ntpd start 21 /tmp/logfile

 Then you can kill it off and see what the startup looked like in the logfile.

Using set -x didn't occur to me, but from a brief look at the output,
it seemed to pick up (which, I guess, it shouldn't) my
openntpd_flags=-s in /etc/rc.conf.  But even then, the logfile was
populated with nothing more than Starting openntpd, so I'm back to
where I started.

I guess I'll be filing this in my WTF notes, and call it a day.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem With ZFS script

2008-06-30 Thread Vince Hoffman
Kris Kennaway wrote:
 Vince Hoffman wrote:
 --
 #!/bin/sh -

 TEXT=$(kldstat | tr a-f A-F | \
 awk 'BEGIN {print ibase=16}; NR  1 {print $4}'\
 | bc | awk '{a+=$1}; END {print a}')
 DATA=$(vmstat -m | sed 's/K//' | awk '{a+=$3}; END {print a*1024}')
 TOTAL=$(echo $DATA $TEXT | awk '{print $1+$2}')

 echo TEXT=$TEXT, $(echo $TEXT | awk '{print $1/1048576  MB}')
 echo DATA=$DATA, $(echo $DATA | awk '{print $1/1048576  MB}')
 echo TOTAL=$TOTAL, $(echo $TOTAL | awk '{print $1/1048576  MB}')
 --
 Looks like the wiki stripped some formatting.
 
 I still don't know that this is doing anything meaningful in the context
 of ZFS memory use.
 
I understood it to just be showing a summary of kernel memory
utilization, no specific zfs stuff (which I guess could be got from
vmstat -z although I dont understand those statistics well enough to do
this myself.) Semi useful in a peripheral way maybe.

Vince

 Kris
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]

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


7.0-release f77

2008-06-30 Thread Konrad Heuer


Hello,

just finished installing and upgrading to 7.0-RELEASE-p2 on one of my 
server systems .. now f77 doesn't seem to exist within the base system 
anymore, and installing from /usr/ports/lang/f77 doesn't help:


f77 sample.f
Error on line 0: Invalid flag '-o'
gcc: /var/tmp/f772ImD.c: No such file or directory
gcc: No input files specified
gcc: /var/tmp/f772ImD.o: No such file or directory

Ideas?

Thanks for any suggestion and best regards

Konrad Heuer
GWDG, Am Fassberg, 37077 Goettingen, Germany, [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: rc scripts

2008-06-30 Thread David Allen
On 6/27/08, Paul Schmehl [EMAIL PROTECTED] wrote:
 --On Friday, June 27, 2008 14:11:55 -0700 David Allen
 [EMAIL PROTECTED] wrote:

 I need to an '-s' flag to the execution of openntpd's rc script:

# PROVIDE: openntpd
# REQUIRE: DAEMON
# BEFORE:  LOGIN
# KEYWORD: nojail

. /etc/rc.subr

name=openntpd
rcvar=`set_rcvar`
command=/usr/local/sbin/ntpd
required_files=/usr/local/etc/ntpd.conf
openntpd_enable=${openntpd_enable:-NO}
load_rc_config $name
run_rc_command $1

 The problems I'm having are multiple.  First, the program doesn't offer
 any logging, and running it with the do not daemonize switch with

# /usr/local/sbin/ntpd -d 21  logfile

 yields no output.

 Then, I'm not sure I understand everything I'm reading in rc.subr(8), but
 from trial error, I've discovered that modifying the script's command
 variable doesn't work, nor does adding the usual scriptname_flags
 directive to /etc/rc.conf.

 Scriptname_flags doesn't work because the port maintainer didn't write the
 startup script so that it parses rc.conf for variables.  You can edit the
 script like this:

 command_args=-s

 When rc.subr runs scripts, it runs them like this:

 ${command} ${command_args} ${command_flags}

 Or you can add this to the startup script and then use flags in rc.conf:
 load_rc_config openntpd

 openntpd_flags=${openntpd_flags:-}

 (In that order.)

 Then place openntpd_flags=-s in rc.conf.

 Just remember that every time the port is updated, your changes will be
 overwritten, so you'll need to make a backup or leave a note to yourself
 somewhere so you remember to alter the new script.

Thanks for that explanation.

I've since discovered that the sync on start doesn't really work (at
least in the same time frame that ntpd does) anyway, so I'll have to
resort to running 'ntpd -gq' at system startup, and then run OpenBSD's
ntpd daemon after the fact.

At least I've something about the rc system.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


filesystem information

2008-06-30 Thread Jim
I have a computer that is in a situation where it is losing power
occasionally. All but one of the filesystems are going along fine.
Once file system seems to lose data on a power outage. Even if it only
reads a file, and doesn't write it, it may still lose a file (ex,
about half the audio files on my xmms playlist, a couple data files in
my wine directory that, to my knowledge, are unlikely to be written
after they are first installed).

What I'd like to do is get an output of the flags and options on my
filesystems to see what is different between that filesystem and the
others. Any suggestion on how to do that? This particular FS has
lasted through several rebuilds since it doesn't hold OS critical
stuff, just data files.

Also, to fix the problem, I have to delete the problematic files, and
then copy them over from backup or another computer. If I simply copy
them, for some reason the problem persists.

I don't think it's a bad disk, because all of the filesystems are on
the same disk, and this is the only one acting strange.

Any suggestions?

Thanks,
-Jim Stapleton
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 7.0-release f77

2008-06-30 Thread Beech Rintoul
On Monday 30 June 2008, Konrad Heuer said:
 Hello,

 just finished installing and upgrading to 7.0-RELEASE-p2 on one of
 my server systems .. now f77 doesn't seem to exist within the base
 system anymore, and installing from /usr/ports/lang/f77 doesn't
 help:

 f77 sample.f
 Error on line 0: Invalid flag '-o'
 gcc: /var/tmp/f772ImD.c: No such file or directory
 gcc: No input files specified
 gcc: /var/tmp/f772ImD.o: No such file or directory

 Ideas?

 Thanks for any suggestion and best regards

 Konrad Heuer
 GWDG, Am Fassberg, 37077 Goettingen, Germany, [EMAIL PROTECTED]

That was dropped from the base some time ago when they switched to 
gcc42. The powers that be decided there weren't enough fortran users 
to justify keeping it in. What you need to do is to install 
lang/gcc42 from the ports. That will install the full version 
including fortran.

Beech


-- 
---
Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED]
/\   ASCII Ribbon Campaign  | FreeBSD Since 4.x
\ / - NO HTML/RTF in e-mail   | http://www.freebsd.org
 X  - NO Word docs in e-mail | Latest Release:
/ \  - http://www.FreeBSD.org/releases/7.0R/announce.html
---



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


Re: filesystem information

2008-06-30 Thread Bill Moran
In response to Jim [EMAIL PROTECTED]:

 I have a computer that is in a situation where it is losing power
 occasionally. All but one of the filesystems are going along fine.
 Once file system seems to lose data on a power outage. Even if it only
 reads a file, and doesn't write it, it may still lose a file (ex,
 about half the audio files on my xmms playlist, a couple data files in
 my wine directory that, to my knowledge, are unlikely to be written
 after they are first installed).
 
 What I'd like to do is get an output of the flags and options on my
 filesystems to see what is different between that filesystem and the
 others. Any suggestion on how to do that? This particular FS has
 lasted through several rebuilds since it doesn't hold OS critical
 stuff, just data files.

tunefs -p and/or dumpfs -m

 Any suggestions?

Sounds like you're on the right track with hunting this down.  Perhaps
turn softupdates off and mount the filesystem sync if you're seeing
lots of power outages.

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sysctl enabled but HAL non-existant

2008-06-30 Thread Reid Linnemann

Desmond Chapman wrote:
The media shows up in konqueror as a normal user but I cannot mount it. there is no reference to hal with an apropos search except for ath_hal. 
What am I doing wrong? What else do I add to make the cd easily mountable?

_
The i’m Talkathon starts 6/24/08.  For now, give amongst yourselves.
http://www.imtalkathon.com?source=TXT_EML_WLH_LearnMore_GiveAmongst___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Perhaps you're looking for /usr/ports/sysutils/hal. HAL is not part of 
the FreeBSD base system.

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


Re: Problem With ZFS script

2008-06-30 Thread Kris Kennaway

Vince Hoffman wrote:

Kris Kennaway wrote:

Vince Hoffman wrote:

--
#!/bin/sh -

TEXT=$(kldstat | tr a-f A-F | \
awk 'BEGIN {print ibase=16}; NR  1 {print $4}'\
| bc | awk '{a+=$1}; END {print a}')
DATA=$(vmstat -m | sed 's/K//' | awk '{a+=$3}; END {print a*1024}')
TOTAL=$(echo $DATA $TEXT | awk '{print $1+$2}')

echo TEXT=$TEXT, $(echo $TEXT | awk '{print $1/1048576  MB}')
echo DATA=$DATA, $(echo $DATA | awk '{print $1/1048576  MB}')
echo TOTAL=$TOTAL, $(echo $TOTAL | awk '{print $1/1048576  MB}')
--
Looks like the wiki stripped some formatting.

I still don't know that this is doing anything meaningful in the context
of ZFS memory use.


I understood it to just be showing a summary of kernel memory
utilization, no specific zfs stuff (which I guess could be got from
vmstat -z although I dont understand those statistics well enough to do
this myself.) Semi useful in a peripheral way maybe.


That is surely the intention, but I am not convinced it is doing what it 
says on the box :)


Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Using freebsd-update after upgrading from source

2008-06-30 Thread Manolis Kiagias

Victor Sudakov wrote:

Colleagues,

I have been updating 6.2-RELEASE with freebsd-update. Recently I
upgraded it to RELENG_6_3 from source. Can I continue using
freebsd-update or must I upgrade only from source from now on?

  


I don't see why not. freebsd-update will download binary updates to the 
system as well as the relevant sources for them (look at 
/etc/freebsd-update.conf to verify).



I conducted an experiment and got inconclusive results. I had upgraded
to RELENG_6_3-p2 where the problems with libpthread and ssh are
already fixed. However, when I ran freebsd-update, it did replace
libpthread and libssh. It also replaced the kernel, downgrading it
from 6.3-RELEASE-p2 to 6.3-RELEASE-p1!
  


Don't be so sure. If you are running a GENERIC kernel, freebsd-update 
simply downloaded the latest. If -p2 did not have any kernel updates (it 
did not IIRC) you got the kernel for -p1.  The fact it replaced your 
GENERIC (which had a -p2 deisgnation in uname) is probably because this 
was compiled on your system so freebsd-update did not recognize the 
version. These two should be functionally identical. In fact if you just 
recompile the kernel now, it will report -p2 (but this is only a 
cosmetic change, if the kernel sources have not been changed by 
freebsd-update).

Have a look at this file:

/usr/src/sys/conf/newvers.sh

look at the BRANCH

if it says RELEASE-p2 this is what you will get if you recompile the 
kernel.




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


freebsd-update and more information

2008-06-30 Thread Zbigniew Szalbot

Dear all,

I read man freebsd-update but it has not answered my questions. That is, 
after I have issued freebsd-update fetch/install, where can I find 
information about if the installed updates require recompiling the 
kernel or system restart?


Thank you in advance!

--
Zbigniew Szalbot
www.LCWords.com


smime.p7s
Description: S/MIME Cryptographic Signature


Re: freebsd-update and more information

2008-06-30 Thread Manolis Kiagias

Zbigniew Szalbot wrote:

Dear all,

I read man freebsd-update but it has not answered my questions. That 
is, after I have issued freebsd-update fetch/install, where can I find 
information about if the installed updates require recompiling the 
kernel or system restart?


Thank you in advance!


Not all updates include kernel updates, some are just userland.
If you are running a GENERIC, unomdified (from CD) kernel, this will be 
updated in the process. freebsd-update shows you a list of updated 
files, and will also show /boot/kernel/kernel if this is updated. You 
will also see source files in /usr/src/sys being updated on a kernel 
update. Since I always run custom kernels, I just watch for changes in 
/usr/src/sys. If there are updates there and you are running a custom 
kernel, you will have to recompile it. Otherwise you don't have to. The  
uname -a command will still report a previous -pversion until you 
recompile though.

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


Re: debug.cpufreq.lowest doesn't work?

2008-06-30 Thread Kemian Dang
2008/6/29 Patrick Lamaizière [EMAIL PROTECTED]:
 Le Sun, 29 Jun 2008 12:42:33 +0100,
 Kemian Dang [EMAIL PROTECTED] a écrit :

 Hi all,

 Hi,

 I set sysctl debug.cpufreq.lowest=800 but sysctl -a still told me
 that the CPU freq is at 300, though it will jump high if I am doing
 some heavy work.
 This reduce of performance makes me even have trouble on browsing
 website. Did I miss something important?

 Just to be sure... This sysctl prevents cpufreq to decrease the
 frequency but if the frequency is lower than the sysctl, the
 frequency is not increased.

 Regards.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


Thank you Ghirai and Patrick, that really helps.
I set a higher number to the current frequency.

-- 
Best wishes,
Kemian
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: freebsd-update and more information

2008-06-30 Thread Zbigniew Szalbot

Hello again,


Not all updates include kernel updates, some are just userland.
If you are running a GENERIC, unomdified (from CD) kernel, this will be 
updated in the process. freebsd-update shows you a list of updated 
files, and will also show /boot/kernel/kernel if this is updated. You 
will also see source files in /usr/src/sys being updated on a kernel 
update. Since I always run custom kernels, I just watch for changes in 
/usr/src/sys. If there are updates there and you are running a custom 
kernel, you will have to recompile it. Otherwise you don't have to. The  
uname -a command will still report a previous -pversion until you 
recompile though.


Thanks! How do you go from there? I assume it is not necessary to 
download sources since they have already been fetched by freebsd-update.


I also run a custom kernel and I see modification date change in 
/usr/src/sys/netinet so that's likely to mean I need to recompile the 
kernel. Thank you again!


--
Zbigniew Szalbot
www.LCWords.com


smime.p7s
Description: S/MIME Cryptographic Signature


Re: freebsd-update and more information

2008-06-30 Thread Manolis Kiagias

Zbigniew Szalbot wrote:

Hello again,


Not all updates include kernel updates, some are just userland.
If you are running a GENERIC, unomdified (from CD) kernel, this will 
be updated in the process. freebsd-update shows you a list of updated 
files, and will also show /boot/kernel/kernel if this is updated. You 
will also see source files in /usr/src/sys being updated on a kernel 
update. Since I always run custom kernels, I just watch for changes 
in /usr/src/sys. If there are updates there and you are running a 
custom kernel, you will have to recompile it. Otherwise you don't 
have to. The  uname -a command will still report a previous 
-pversion until you recompile though.


Thanks! How do you go from there? I assume it is not necessary to 
download sources since they have already been fetched by freebsd-update.


Just guessing you updated to 7.0-RELEASE-p2? This actually has kernel 
updates in the TCP/IP code. True, you don't have to download sources, 
you already got them.




I also run a custom kernel and I see modification date change in 
/usr/src/sys/netinet so that's likely to mean I need to recompile the 
kernel. Thank you again!




Yes, you simply repeat your last kernel build/install/reboot procedure, 
i.e. something like:


cd /usr/src
make buildkernel installkernel KERNCONF=YOURKERNELNAME
reboot

and you are set!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: freebsd-update and more information

2008-06-30 Thread David Gurvich
freebsd-update only updates the installed sources, not all sources.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


calcru: runtime went backwards errors

2008-06-30 Thread David Allen
I've been seeing errors like the following appearing:

Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 261
usec to 258 usec for pid 516 (devd)
Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 4976
usec to 4926 usec for pid 367 (pflogd)
Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 588
usec to 582 usec for pid 133 (adjkerntz)
Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 681
usec to 674 usec for pid 20 (swi6: task queue)
Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 486
usec to 481 usec for pid 0 (swapper)

and narrowed down the cause to openntpd.

Do these errors fall into the Mostly Harmless category?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: freebsd-update and more information

2008-06-30 Thread Paul Schmehl
--On June 30, 2008 2:22:41 PM +0200 Zbigniew Szalbot 
[EMAIL PROTECTED] wrote:



Dear all,

I read man freebsd-update but it has not answered my questions. That is,
after I have issued freebsd-update fetch/install, where can I find
information about if the installed updates require recompiling the
kernel or system restart?

Thank you in advance!


Maybe I'm confused, but I thought freebsd-update installed precompiled 
binaries of the generic kernel and world.  Therefore, you would need to 
reboot if the kernel changed.  Freebsd-update should tell you what will be 
changed after it finishes the fetch.  I don't recall if it also tells you 
what it installed.


Paul Schmehl
If it isn't already obvious,
my opinions are my own and not
those of my employer.


Re: freebsd-update and more information

2008-06-30 Thread Manolis Kiagias

Paul Schmehl wrote:
--On June 30, 2008 2:22:41 PM +0200 Zbigniew Szalbot 
[EMAIL PROTECTED] wrote:



Dear all,

I read man freebsd-update but it has not answered my questions. That is,
after I have issued freebsd-update fetch/install, where can I find
information about if the installed updates require recompiling the
kernel or system restart?

Thank you in advance!


Maybe I'm confused, but I thought freebsd-update installed precompiled 
binaries of the generic kernel and world.


True, but it also updates the relevant sources if installed (as another 
poster said, freebsd-update will only update what you have installed - I 
tend to always assume that everybody installs full sources, but that's 
just me)


Therefore, you would need to reboot if the kernel changed.  
Freebsd-update should tell you what will be changed after it finishes 
the fetch.  I don't recall if it also tells you what it installed.


If it tells you it updated /boot/kernel/kernel, you should reboot. If 
you are running a custom kernel and you see files getting updated in 
/usr/src/sys (mind you, not just the /usr/src/sys/conf/newvers.sh, but 
other files too - newvers.sh is always updated to reflect the new -p# in 
uname, if you rebuild your kernel) you should rebuild your custom kernel 
and reboot.

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


Re: Change in /etc/rc.conf:ipv6_defaultrouter

2008-06-30 Thread Kirk Strauser
On Sunday 29 June 2008, Ashish Shukla आशीष शुक्ल wrote:
 I think how without specifying zone index[1] in link-local address
 worked, it is probably due to availability of only single inet6
 interface except lo0.

The physical and virtual interfaces on the system are exactly as before.  
I'm guessing that my setup worked as a side effect of a now-fixed bug, 
probably the same one that was preventing me from using the 2001: 
defaultrouter when I first got the system up and running.

 Just wanted to confirm, is following command worked ? if possible paste
 the output:

 % ping6 fe80::213:10ff:fe79:137a

$ ping6 fe80::213:10ff:fe79:137a
ping6: UDP connect: Network is unreachable

This is after rebooting with ipv6_defaultrouter=2001:470:a80a:1::1.

-- 
Kirk Strauser


signature.asc
Description: This is a digitally signed message part.


Re: calcru: runtime went backwards errors

2008-06-30 Thread Bob Johnson
On 6/30/08, David Allen [EMAIL PROTECTED] wrote:
 I've been seeing errors like the following appearing:

 Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 261
 usec to 258 usec for pid 516 (devd)
[...]
 Jun 30 03:13:57 ford kernel: calcru: runtime went backwards from 486
 usec to 481 usec for pid 0 (swapper)

 and narrowed down the cause to openntpd.

 Do these errors fall into the Mostly Harmless category?

It's probably just an annoyance, unless it is happening so often it
causes other problems.

The FreeBSD FAQ used to have a nice explanation of this, but it has
been replaced by a discussion that simply assumes the problem is
caused by the Intel SpeedStep implementation on your motherboard:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/troubleshoot.html#Q5.24.

But in general, this error can be caused by several things, including
a device that is slow to respond to interrupts. One thing that often
helps on SMP systems is to make sure your timecounter isn't using TSC:

$ sysctl kern.timecounter
kern.timecounter.tick: 1
kern.timecounter.choice: TSC(-100) HPET(900) ACPI-fast(1000) i8254(0)
dummy(-100)
kern.timecounter.hardware: ACPI-fast
[...]

- Bob
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Too Much Context Switching?

2008-06-30 Thread alex

First off, thanks for such a prompt response. :-)


[EMAIL PROTECTED] wrote:
I'm the webmaster for www.marssociety.org, which is a FreeBSD 
6.2-RELEASE box running on a dual-core AMD Opteron setup with 4GB of 
RAM. The box is reasonably busy, as it's the sole piece of hardware 
running web, database, and mail operations for the Mars Society, an 
international nonprofit group dedicated to space exploration. We 
regularly send out newsletters to ~10,000 members, and our web site 
is averaging ~50,000-100,000 hits/day.


The main portion of the web site is run via the Zope/Plone CMS 
system (Plone 2.5, for anyone who may care). Recently, it's been 
slowing down dramatically, and our Plone guy (not me -- I inherited 
the system and can't stand it) can't figure out why. I've been 
diving into OS-related issues, and in so doing, I ran across what 
appears to be a very high number of context switches going on. 
Here's some sample output from vmstat 2:


A few hundred or thousand context switches per second is trivial load.
That is not your problem.  Modern CPUs can do hundreds of thousands per
second before it starts to become a problem.


OK, well that's good to know.


Note that your system is 50% idle and spending almost no time in the
kernel.  This basically means that only one core is doing work, which
might be because you're not giving it enough work to do.  There are only
1-2 running tasks for most of your trace, one of which is probably
vmstat itself, so that means there is only one running server process
(which can obviously only saturate at most 1 CPU).


Actually, I decided to run vmstat this morning for a little while after 
turning off Zope, and during the couple of minutes I had it going, the 
number of processes running (as indicated by the leftmost column of 
vmstat's output) was at 0 for all but one line worth of output, so I 
would guess that vmstat's not including itself in the number of 
processes there. Even so, though, your assessment about how saturated 
the CPU is is of course still valid, which leads me to a follow-up 
question: by default, can a multi-threaded app use both cores? Or would 
I need to have two instances of the process running (Zope is apparently 
able to handle multiple instances running reasonably well) in order to 
have it fully utilize the CPU?



The trace suggests that your performance problems are either in
userland, or elsewhere in your network or application stack, possibly
due to interactions between components.  Try to look at why the system
is not being given enough work to keep it saturated.


Any tips on tools I could use to check this out? I'll of course be 
looking at Zope profiling tools, to see if I can have them tell me 
where any bottlenecks are, but if there are any OS-level tools that I 
could use to profile a given process (or group thereof) for problems, 
I'd really appreciate hearing about them (simple links to man pages or 
the like would be fine, I don't mean to waste your time explaining how 
tools work when I can usually figure it out on my own).


Alex Kirk

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