Re: kern.ipc.maxpipekva

2008-03-03 Thread Colin Adams
No chance at all, I would have said.

On 03/03/2008, Mel <[EMAIL PROTECTED]> wrote:
> On Sunday 02 March 2008 13:36:26 Colin Adams wrote:
>  > I'm getting error messages about this when trying to run my program.
>  > As far as I know, I don't use IPC at all, although I dare say it is
>  > used in one of the libraries that are linked in.
>  >
>  > After googling for this error, I edited /boot/loader.conf to set it to
>  > 6500 (a nice big number?), and now if I do:
>  >
>  > sysctl kern.ipc.maxpipekva
>  >
>  > I see:
>  >
>  > kern.ipc.maxpipekva: 6500
>  >
>  > but I still get the message.
>  >
>  > I also get a lot of messages saying:
>  >
>  > Fatal error `Cannot create kernel pipe' at line 294 in file
>  > /usr/src/lib/libc_r/uthread/uthread_init.c (error = 24)
>  >
>  > Why does this occur, and what can i do about it?
>
>
> grep 24 /usr/include/sys/errno.h: max open /files/.
>
>  This signals that a thread can't be created, cause there's too many open
>  files. Any chance your program/library loops like mad, creating threaded
>  workers that open a socket/file and never end?
>
>  --
>  Mel
>
>  Problem with today's modular software: they start with the modules
> and never get to the software part.
>  ___
>  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: kern.ipc.maxpipekva

2008-03-03 Thread Mel
On Sunday 02 March 2008 13:36:26 Colin Adams wrote:
> I'm getting error messages about this when trying to run my program.
> As far as I know, I don't use IPC at all, although I dare say it is
> used in one of the libraries that are linked in.
>
> After googling for this error, I edited /boot/loader.conf to set it to
> 6500 (a nice big number?), and now if I do:
>
> sysctl kern.ipc.maxpipekva
>
> I see:
>
> kern.ipc.maxpipekva: 6500
>
> but I still get the message.
>
> I also get a lot of messages saying:
>
> Fatal error `Cannot create kernel pipe' at line 294 in file
> /usr/src/lib/libc_r/uthread/uthread_init.c (error = 24)
>
> Why does this occur, and what can i do about it?

grep 24 /usr/include/sys/errno.h: max open /files/.

This signals that a thread can't be created, cause there's too many open 
files. Any chance your program/library loops like mad, creating threaded 
workers that open a socket/file and never end?

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


kern.ipc.maxpipekva

2008-03-02 Thread Colin Adams
I'm getting error messages about this when trying to run my program.
As far as I know, I don't use IPC at all, although I dare say it is
used in one of the libraries that are linked in.

After googling for this error, I edited /boot/loader.conf to set it to
6500 (a nice big number?), and now if I do:

sysctl kern.ipc.maxpipekva

I see:

kern.ipc.maxpipekva: 6500

but I still get the message.

I also get a lot of messages saying:

Fatal error `Cannot create kernel pipe' at line 294 in file
/usr/src/lib/libc_r/uthread/uthread_init.c (error = 24)

Why does this occur, and what can i do about it?

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


Re: Why have I get kern.ipc.maxpipekva exceeded; see tuning(7) message ?

2006-06-22 Thread Marc G. Fournier

On Thu, 22 Jun 2006, KHalid Faith wrote:


Ok
How can  I do active the loader.conf ?
is there any command for it ?


You have to reboot, unfortunately ...



Thanks

- Original Message -
From: "Marc G. Fournier" <[EMAIL PROTECTED]>
To: "KHalid Faith" <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, June 22, 2006 7:59 PM
Subject: Re: Why have I get kern.ipc.maxpipekva exceeded; see tuning(7)
message ?



On Thu, 22 Jun 2006, KHalid Faith wrote:


I use FreeBSD6.0

My server  give me an error as below

kern.ipc.maxpipekva exceeded; see tuning(7)

When I looked at its value as below

sysctl -a |grep kern.ipc.maxpipekva
kern.ipc.maxpipekva: 16777216

How can I do about that ?


Add an entry to /boot/loader.conf, similar to:

# cat /boot/loader.conf
kern.ipc.maxpipekva=67108864

I'm up to 64M, with current usage being closer to 40M:

==
kern.ipc.maxpipekva: 67108864 - kern.ipc.pipekva: 39112704
running processes: 1528


Marc G. Fournier   Hub.Org Networking Services

(http://www.hub.org)

Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
___
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]"




Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Why have I get kern.ipc.maxpipekva exceeded; see tuning(7) message ?

2006-06-22 Thread KHalid Faith
Ok
How can  I do active the loader.conf ?
is there any command for it ?

Thanks

- Original Message - 
From: "Marc G. Fournier" <[EMAIL PROTECTED]>
To: "KHalid Faith" <[EMAIL PROTECTED]>
Cc: 
Sent: Thursday, June 22, 2006 7:59 PM
Subject: Re: Why have I get kern.ipc.maxpipekva exceeded; see tuning(7)
message ?


> On Thu, 22 Jun 2006, KHalid Faith wrote:
>
> > I use FreeBSD6.0
> >
> > My server  give me an error as below
> >
> > kern.ipc.maxpipekva exceeded; see tuning(7)
> >
> > When I looked at its value as below
> >
> > sysctl -a |grep kern.ipc.maxpipekva
> > kern.ipc.maxpipekva: 16777216
> >
> > How can I do about that ?
>
> Add an entry to /boot/loader.conf, similar to:
>
> # cat /boot/loader.conf
> kern.ipc.maxpipekva=67108864
>
> I'm up to 64M, with current usage being closer to 40M:
>
> ==
> kern.ipc.maxpipekva: 67108864 - kern.ipc.pipekva: 39112704
> running processes: 1528
>
> 
> Marc G. Fournier   Hub.Org Networking Services
(http://www.hub.org)
> Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
> Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
> ___
> 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: Why have I get kern.ipc.maxpipekva exceeded; see tuning(7) message ?

2006-06-22 Thread Marc G. Fournier

On Thu, 22 Jun 2006, KHalid Faith wrote:


I use FreeBSD6.0

My server  give me an error as below

kern.ipc.maxpipekva exceeded; see tuning(7)

When I looked at its value as below

sysctl -a |grep kern.ipc.maxpipekva
kern.ipc.maxpipekva: 16777216

How can I do about that ?


Add an entry to /boot/loader.conf, similar to:

# cat /boot/loader.conf
kern.ipc.maxpipekva=67108864

I'm up to 64M, with current usage being closer to 40M:

==
kern.ipc.maxpipekva: 67108864 - kern.ipc.pipekva: 39112704
running processes: 1528


Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Why have I get kern.ipc.maxpipekva exceeded; see tuning(7) message ?

2006-06-22 Thread KHalid Faith
I use FreeBSD6.0

My server  give me an error as below

kern.ipc.maxpipekva exceeded; see tuning(7)

When I looked at its value as below

sysctl -a |grep kern.ipc.maxpipekva 
kern.ipc.maxpipekva: 16777216

How can I do about that ?

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


Re: Tracking down "kern.ipc.maxpipekva exceeded"

2005-05-19 Thread Dan Nelson
In the last episode (May 19), Ewald Jenisch said:
> > I would suggest keeping an eye on kern.ipc.pipekva and trying to
> > correlate any changes to the activity on the system at the time.
> 
> I've already set this up - and it slowly (over days) is creeping up, e.g.
> 
> May 12 18:00:58 CEST 2005: kern.ipc.pipekva: 114688
> May 19 19:23:29 CEST 2005: kern.ipc.pipekva: 262144
> 
> At least I know what kern.ipc.pipekva is rising but, for me the most
> interesting part is, what actually is using up these resources?

Pipes :)
 
> Is there any chance to get hold of the respective process/program?

lsof | grep PIPE

should do the trick.  Lsof's SIZE/OFF column shows the allocated buffer
size for that pipe.  Most of the time you'll see either 0 (pipe has
never been used) or 16384 (default value).

-- 
Dan Nelson
[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: Tracking down "kern.ipc.maxpipekva exceeded"

2005-05-19 Thread Lowell Gilbert
Ewald Jenisch <[EMAIL PROTECTED]> writes:

> > 
> > I would suggest keeping an eye on kern.ipc.pipekva and trying to
> > correlate any changes to the activity on the system at the time.
> 
> I've already set this up - and it slowly (over days) is creeping up, e.g.
> 
> 
> May 12 18:00:58 CEST 2005: kern.ipc.pipekva: 114688
> May 19 19:23:29 CEST 2005: kern.ipc.pipekva: 262144
> 
> At least I know what kern.ipc.pipekva is rising but, for me the most
> interesting part is, what actually is using up these resources? 
> 
> Is there any chance to get hold of the respective process/program?

ipcs(1) might help.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Tracking down "kern.ipc.maxpipekva exceeded"

2005-05-19 Thread Ewald Jenisch

> 
> I would suggest keeping an eye on kern.ipc.pipekva and trying to
> correlate any changes to the activity on the system at the time.

I've already set this up - and it slowly (over days) is creeping up, e.g.


May 12 18:00:58 CEST 2005: kern.ipc.pipekva: 114688
May 19 19:23:29 CEST 2005: kern.ipc.pipekva: 262144

At least I know what kern.ipc.pipekva is rising but, for me the most
interesting part is, what actually is using up these resources? 

Is there any chance to get hold of the respective process/program?

Regards,
-ewald


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


Re: Tracking down "kern.ipc.maxpipekva exceeded"

2005-05-13 Thread Lowell Gilbert
Ewald Jenisch <[EMAIL PROTECTED]> writes:

> Hi,
> 
> For some time one of my machines in plaged be becoming completely
> unresponsive after different amounts of time (several hours up to
> several days).
> 
> Symptoms:
> Machine is PINGable, but no access over the network is possible
> (neither ssh-login nor http-access). 
> 
> /var/log/messages:
> May 11 12:11:00 io kernel: kern.ipc.maxpipekva exceeded; see tuning(7)
> maxproc limit exceeded by uid 0, please see tuning(7) and login.conf(5).
> (tons of both)
> and finally 
> May 11 12:42:03 io kernel: maxproc
> May 11 12:42:03 io kernel: limit exceede
> May 11 12:42:03 io kernel: d by uid
> May 11 12:42:03 io kernel: 0, ple
> May 11 12:42:03 io kernel: se see tun
> May 11 12:42:03 io kernel: ng(7) and l
> May 11 12:42:03 io kernel: ogin.conf
> May 11 12:42:03 io kernel: (5).
> May 11 12:42:03 io kernel: 
> 
> >From that time on I can't log in any more, not even from the console.
> 
> When rebooting the box via ctl-alt-del, before shutdown, it fails to
> sync buffers on shutdown (counts down to 1 and stays there) and
> finally gives up - requiring an fsck on reboot.
> 
> Please note that the box does *not* crash completely, nor do I get a
> kernel panic though.
> 
> The system is running "5.4-STABLE FreeBSD 5.4-STABLE #0: Sat Apr 16
> 10:19:26 CEST 2005" but this problem has been there since I first
> installed 5.3 on the box.
> 
> So my primary question is:
> 
> How do I track down the cause of the problem, i.e. which
> program/process is responsible for "kern.ipc.maxpipekva" to be
> exceeded?

I would suggest keeping an eye on kern.ipc.pipekva and trying to
correlate any changes to the activity on the system at the time.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Tracking down "kern.ipc.maxpipekva exceeded"

2005-05-12 Thread Ewald Jenisch
Hi,

For some time one of my machines in plaged be becoming completely
unresponsive after different amounts of time (several hours up to
several days).

Symptoms:
Machine is PINGable, but no access over the network is possible
(neither ssh-login nor http-access). 

/var/log/messages:
May 11 12:11:00 io kernel: kern.ipc.maxpipekva exceeded; see tuning(7)
maxproc limit exceeded by uid 0, please see tuning(7) and login.conf(5).
(tons of both)
and finally 
May 11 12:42:03 io kernel: maxproc
May 11 12:42:03 io kernel: limit exceede
May 11 12:42:03 io kernel: d by uid
May 11 12:42:03 io kernel: 0, ple
May 11 12:42:03 io kernel: se see tun
May 11 12:42:03 io kernel: ng(7) and l
May 11 12:42:03 io kernel: ogin.conf
May 11 12:42:03 io kernel: (5).
May 11 12:42:03 io kernel: 

>From that time on I can't log in any more, not even from the console.

When rebooting the box via ctl-alt-del, before shutdown, it fails to
sync buffers on shutdown (counts down to 1 and stays there) and
finally gives up - requiring an fsck on reboot.

Please note that the box does *not* crash completely, nor do I get a
kernel panic though.

The system is running "5.4-STABLE FreeBSD 5.4-STABLE #0: Sat Apr 16
10:19:26 CEST 2005" but this problem has been there since I first
installed 5.3 on the box.

So my primary question is:

How do I track down the cause of the problem, i.e. which
program/process is responsible for "kern.ipc.maxpipekva" to be
exceeded?

Thanks much in advance for any clue,
-ewald





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


Re: kern.ipc.maxpipekva exceeded, error

2004-09-18 Thread Nagilum
Hi Puna,
This looks like there occured a looping recursion, there is definately 
something wrong with your ports. Maybe try to reinstall the dependencies 
forcefully after bringing your ports tree up-to-date (if that alone does 
not already help)
Kind regards,
Alex.

Puna Tannehill wrote:
On a freshly rebuild v5.3-BETA4...
A failed compile of sysutils/fastest_cvsup led me to run 'make clean' 
before trying again.  It took over 5 minutes to run make clean, and at 
the very end I got the following:

# make clean
kern.ipc.maxpipekva exceeded; see tuning(7)
Pipe call failed: Too many open files in system
Pipe call failed: Too many open files in system
===>  Cleaning for libtool-1.5.8
===>  Cleaning for perl-5.8.5
===>  Cleaning for fastest_cvsup-0.2.8
There is nothing specifically in tuning about this particular knob, 
but from poking around I get the feeling that it's about memory 
management of the kernel IPC subsystem.

Running 'sysctl kern.ipc.maxpipekva' shows:
kern.ipc.maxpipekva=1257472
Hunting around on in the archives, I came up with people getting this 
error while doing very intensive compiles.  Seems strange to me that I 
might get such an error on a 15min uptime, cold-booted machine and 
just doing a 'make clean'.  And thoughts?

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

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


kern.ipc.maxpipekva exceeded, error

2004-09-14 Thread Puna Tannehill
On a freshly rebuild v5.3-BETA4...
A failed compile of sysutils/fastest_cvsup led me to run 'make clean' 
before trying again.  It took over 5 minutes to run make clean, and at 
the very end I got the following:

# make clean
kern.ipc.maxpipekva exceeded; see tuning(7)
Pipe call failed: Too many open files in system
Pipe call failed: Too many open files in system
===>  Cleaning for libtool-1.5.8
===>  Cleaning for perl-5.8.5
===>  Cleaning for fastest_cvsup-0.2.8
There is nothing specifically in tuning about this particular knob, 
but from poking around I get the feeling that it's about memory 
management of the kernel IPC subsystem.

Running 'sysctl kern.ipc.maxpipekva' shows:
kern.ipc.maxpipekva=1257472
Hunting around on in the archives, I came up with people getting this 
error while doing very intensive compiles.  Seems strange to me that I 
might get such an error on a 15min uptime, cold-booted machine and 
just doing a 'make clean'.  And thoughts?

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