Matt Juszczak | 1 Nov 02:01 2009
Picon

Runaway cron server

Hi all, Happy Halloween...

I've been having some issues with a runaway cron server.  We've got crons 
setup, and I'm using a locking system to make sure no cron runs 
overlapping another cron (though this problem was occuring prior to the 
locking system being put in place).  After a day or two, our server load 
spikes, the crons stop working, and top shows:

  6702 root          1  97    0 16292K  3312K RUN    3  13:50  4.79% cron
65338 root          1  96    0 16328K  3324K RUN    3 138:23  4.59% cron
69837 root          1  96    0 16328K  3324K RUN    3 116:05  4.59% cron
90642 root          1  96    0 16328K  3324K CPU2   2  37:39  4.59% cron
65729 root          1  96    0 16328K  3324K RUN    3 136:01  4.49% cron
79591 root          1  96    0 16328K  3324K RUN    0  80:51  4.49% cron
85363 root          1  96    0 16328K  3324K RUN    0  64:42  4.49% cron
90625 root          1  96    0 16328K  3324K CPU0   0  51:58  4.49% cron
82872 root          1  96    0 16328K  3324K RUN    3  50:16  4.49% cron
83551 root          1  96    0 16292K  3312K RUN    3  49:13  4.49% cron
80016 root          1  96    0 16328K  3324K RUN    1  79:37  4.39% cron
85758 root          1  96    0 16292K  3312K RUN    0  63:36  4.39% cron
90284 root          1  96    0 16328K  3324K RUN    2  52:45  4.39% cron
61636 root          1  96    0 16328K  3324K RUN    2 171:26  4.30% cron

And even more info:

s505# ps auxw | grep cron | wc
      105    1464   10026

If I try to truss or ktrace one of the processes, it returns no output. 
This behavior is reliable and occurs every single time.  I'll restart the 
(Continue reading)

Sahil Tandon | 1 Nov 02:58 2009
Picon

Re: how can i limit login attempts by ip ?

On Fri, 30 Oct 2009, Jonathan Vanasco wrote:

> just looked at my logs, and it seems that sshd gets dictionary'd on my
> freebsd box a bit
> 
> can anyone recommend a good way to limit this ?

I've had success with grok: http://www.semicomplete.com/projects/grok/

BTW, please don't hijack threads.

--

-- 
Sahil Tandon <sahil <at> tandon.net>
Charles Sprickman | 3 Nov 03:17 2009
Picon
Picon

FreeBSD 7.2 and 64/32 bit issues

Howdy,

So I finally have my first server that actually needs to run 64-bit 
FreeBSD.  Out of the box, everything seems fine and dandy.

I was looking for some info in the handbook/FAQ about compatibility issues 
with 32-bit binaries, but didn't really find anything definitive (I may 
need to temporarily run a 32-bit jail).

Where can I find more basics about how the system deals with mixed 
binaries?  I see many mentions online about a "/usr/lib32" directory, but 
my install has no such thing.  Oddly enough, a random "/bin/ls" copied 
from a 4.8 box (yes, different major OS version AND 32 bit) "just works". 
I also grabbed LSI's "MegaCli" binary from their site.  It's a 32-bit 
binary and it works with no issues.

In short it seems like it's all too easy, so I'm suspicious...

Any pointers to more reading?

Thanks,

Charles

[root <at> bigmail /home/spork]# file /lib/libc.so.7
/lib/libc.so.7: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), 
stripped
(yes, the system appears to be 64-bit)

[root <at> bigmail /home/spork]# file ls
(Continue reading)

Mark Saad | 3 Nov 04:16 2009

Re: FreeBSD 7.2 and 64/32 bit issues

Charles
  Ls and the megaraid tool work b/c they are staticly linked ie they have a 32bit version of libc.so.4 compiled
in to them.. There is also two ways to get lib32 installed. 1. It is an optional install set from sysinstall .
2. If you have a cvs checkout of freebsd you can run build just the 32bit libs , I can't remember exactly but
check the makefile for a build32 command or a buildworld32 something like that. 

------Original Message------
From: Charles Sprickman
Sender: talk-bounces <at> lists.nycbug.org
To: nycbug talk
Sent: Nov 2, 2009 9:17 PM
Subject: [nycbug-talk] FreeBSD 7.2 and 64/32 bit issues

Howdy,

So I finally have my first server that actually needs to run 64-bit 
FreeBSD.  Out of the box, everything seems fine and dandy.

I was looking for some info in the handbook/FAQ about compatibility issues 
with 32-bit binaries, but didn't really find anything definitive (I may 
need to temporarily run a 32-bit jail).

Where can I find more basics about how the system deals with mixed 
binaries?  I see many mentions online about a "/usr/lib32" directory, but 
my install has no such thing.  Oddly enough, a random "/bin/ls" copied 
from a 4.8 box (yes, different major OS version AND 32 bit) "just works". 
I also grabbed LSI's "MegaCli" binary from their site.  It's a 32-bit 
binary and it works with no issues.

In short it seems like it's all too easy, so I'm suspicious...
(Continue reading)

Mark Saad | 3 Nov 04:13 2009

Re: FreeBSD 7.2 and 64/32 bit issues

Charles
  Ls and the megaraid tool work b/c they are staticly linked ie they have a 32bit version of libc.so.4 compiled
in to them.. There is also two ways to get lib32 installed. 1. It is an optional install set from sysinstall .
2. If you have a cvs checkout of freebsd you can run build just the 32bit libs , I can't remember exactly but
check the makefile for a build32 command or a buildworld32 something like that. 

------Original Message------
From: Charles Sprickman
Sender: talk-bounces <at> lists.nycbug.org
To: nycbug talk
Sent: Nov 2, 2009 9:17 PM
Subject: [nycbug-talk] FreeBSD 7.2 and 64/32 bit issues

Howdy,

So I finally have my first server that actually needs to run 64-bit 
FreeBSD.  Out of the box, everything seems fine and dandy.

I was looking for some info in the handbook/FAQ about compatibility issues 
with 32-bit binaries, but didn't really find anything definitive (I may 
need to temporarily run a 32-bit jail).

Where can I find more basics about how the system deals with mixed 
binaries?  I see many mentions online about a "/usr/lib32" directory, but 
my install has no such thing.  Oddly enough, a random "/bin/ls" copied 
from a 4.8 box (yes, different major OS version AND 32 bit) "just works". 
I also grabbed LSI's "MegaCli" binary from their site.  It's a 32-bit 
binary and it works with no issues.

In short it seems like it's all too easy, so I'm suspicious...
(Continue reading)

Christopher Olsen | 3 Nov 13:09 2009

Re: FreeBSD 7.2 and 64/32 bit issues

Charles,

Ls is statically linked so it won't be effected by libraries... But in your 32bit jail link lib to lib32 in usr
and all will be fine... I use ezjail which made it easier I just needed to fix one spot..

Are you using anything for jail management?

-Christopher

Ubix Technologies
T: 212-514-6270
C: 516-903-2889
32 Broadway Suite 204
New York, NY 10004
http://www.tuve.tv/mrolsen

-----Original Message-----
From: Charles Sprickman <spork <at> bway.net>
Sent: Monday, November 02, 2009 9:17 PM
To: talk <at> lists.nycbug.org
Subject: [nycbug-talk] FreeBSD 7.2 and 64/32 bit issues

Howdy,

So I finally have my first server that actually needs to run 64-bit 
FreeBSD.  Out of the box, everything seems fine and dandy.

I was looking for some info in the handbook/FAQ about compatibility issues 
with 32-bit binaries, but didn't really find anything definitive (I may 
need to temporarily run a 32-bit jail).
(Continue reading)

Aidan Cully | 4 Nov 04:12 2009
Picon

Re: Runaway cron server

On Sat, Oct 31, 2009 at 09:01:50PM, Matt Juszczak said:
> Hi all, Happy Halloween...
> 
> I've been having some issues with a runaway cron server.  We've got crons 
> setup, and I'm using a locking system to make sure no cron runs 
> overlapping another cron (though this problem was occuring prior to the 
> locking system being put in place).  After a day or two, our server load 
> spikes, the crons stop working, and top shows:
> 
>   6702 root          1  97    0 16292K  3312K RUN    3  13:50  4.79% cron
> 65338 root          1  96    0 16328K  3324K RUN    3 138:23  4.59% cron
> 69837 root          1  96    0 16328K  3324K RUN    3 116:05  4.59% cron
> 90642 root          1  96    0 16328K  3324K CPU2   2  37:39  4.59% cron
> 65729 root          1  96    0 16328K  3324K RUN    3 136:01  4.49% cron
> 79591 root          1  96    0 16328K  3324K RUN    0  80:51  4.49% cron
> 85363 root          1  96    0 16328K  3324K RUN    0  64:42  4.49% cron
> 90625 root          1  96    0 16328K  3324K CPU0   0  51:58  4.49% cron
> 82872 root          1  96    0 16328K  3324K RUN    3  50:16  4.49% cron
> 83551 root          1  96    0 16292K  3312K RUN    3  49:13  4.49% cron
> 80016 root          1  96    0 16328K  3324K RUN    1  79:37  4.39% cron
> 85758 root          1  96    0 16292K  3312K RUN    0  63:36  4.39% cron
> 90284 root          1  96    0 16328K  3324K RUN    2  52:45  4.39% cron
> 61636 root          1  96    0 16328K  3324K RUN    2 171:26  4.30% cron
> 
> And even more info:
> 
> s505# ps auxw | grep cron | wc
>       105    1464   10026
> 
> If I try to truss or ktrace one of the processes, it returns no output. 
(Continue reading)

Charles Sprickman | 4 Nov 04:27 2009
Picon
Picon

Re: FreeBSD 7.2 and 64/32 bit issues

Mark (and Chris),

On Tue, 3 Nov 2009, Mark Saad wrote:

> Charles
>  Ls and the megaraid tool work b/c they are staticly linked ie they have 
> a 32bit version of libc.so.4 compiled in to them..

Thanks for solving that mystery.  An odd thing about the megaraid tool is 
that the version from ports has a check for 32 bit libraries, which seems 
odd since my direct download from LSI works fine.

> There is also two ways to get lib32 installed. 1. It is an optional 
> install set from sysinstall . 2. If you have a cvs checkout of freebsd 
> you can run build just the 32bit libs , I can't remember exactly but 
> check the makefile for a build32 command or a buildworld32 something 
> like that.

Interesting.  I see a "build32" target in /usr/src/Makefile.  After more 
googling, I found this:

http://old.nabble.com/**-FreeBSD-6.2---amd64---attempting-to-install-32bit-library-support-**-td15704398.html

It's a bit old, but apparently the correct way to do this is to set 
"WITH_LIB32=yes" in /etc/make.conf.  Thankfully this is not a desktop, I 
don't even want to imagine the confusion that ensues when trying to run 
something like a 64 bit Firefox with a 32-bit linux version of flash or 
some other insane nonsense.

I'm a bit surprised this isn't a handbook entry yet.
(Continue reading)

nikolai | 5 Nov 14:42 2009

November 2009 meeting audio

Folks,

Audio recording of GNN's presentation is online at
http://www.fetissov.org/public/nycbug/nycbug-11-04-09.mp3

Cheers,
--
 Nikolai
George Rosamond | 5 Nov 20:39 2009

MIPS boards

At last night's meeting, GNN mentioned the RouterStation Pro from 
Ubiquiti as his testing box for FBSD's MIPS build.

This is the model. .. a mere $79:

http://www.ubnt.com/products/rspro.php

It would be good for a bunch of us to start playing with these in prep 
for a 2010 meeting on it.  And use the talk list to provide any input 
about it, install processes, etc.

And it should go without saying, NetBSD (Open also?) support is also 
part of this discussion. . .

Oh, and thanks again to GNN for the meeting.

George

Gmane