Re: sysctl & process limitations

2002-02-05 Thread Manuel Bouyer
On Tue, Feb 05, 2002 at 08:34:34AM -0700, Randy Arabie wrote: > You mention that, mysqld AND mysql. You will note above that when I checked mysqld >with fstat, > there were only 64 files open. That, coincidentally, is the default >proc.curproc.rlimit.descriptors.soft > setting. > > Does mysq

Re: sysctl & process limitations

2002-02-05 Thread Randy Arabie
On Tue, 5 Feb 2002, Manuel Bouyer wrote: > On Tue, Feb 05, 2002 at 07:59:20AM -0700, Randy Arabie wrote: > > On Mon, 4 Feb 2002, Randy Arabie wrote: > > > > > Right. Like this: > > > > > > mysql -u someuser -p -D somedatabase < ./data.sql > > > > > > No. I didn't raise the shell limits, I r

Re: sysctl & process limitations

2002-02-05 Thread Manuel Bouyer
On Tue, Feb 05, 2002 at 07:59:20AM -0700, Randy Arabie wrote: > On Mon, 4 Feb 2002, Randy Arabie wrote: > > > Right. Like this: > > > > mysql -u someuser -p -D somedatabase < ./data.sql > > > > No. I didn't raise the shell limits, I rose the kernel maxfiles and > > the mysqld process proc.p

Re: sysctl & process limitations

2002-02-05 Thread Randy Arabie
> On Mon, 4 Feb 2002, Manuel Bouyer wrote: > > > What a minute ... you're loading the tables to a 'mysqld' process, using > > the 'mysql' command, rigth ? > > Maybe it's just the mysql command which runs out of files descriptors ? > > Did you try to raise the limit of the shell before starting i

Re: sysctl & process limitations

2002-02-04 Thread Randy Arabie
On Mon, 4 Feb 2002, Manuel Bouyer wrote: > What a minute ... you're loading the tables to a 'mysqld' process, using > the 'mysql' command, rigth ? > Maybe it's just the mysql command which runs out of files descriptors ? > Did you try to raise the limit of the shell before starting it ? Right.

Re: sysctl & process limitations

2002-02-04 Thread Manuel Bouyer
On Mon, Feb 04, 2002 at 03:43:40PM -0700, Randy Arabie wrote: > On Mon, 4 Feb 2002, William R. Mussatto wrote: > > > Have you checked on the ulimit for the user that is mysql? > > I did, but had only set it "dynamically". I did raise it quite high, > 5000 I believe. After that I initiated the

Re: sysctl & process limitations

2002-02-04 Thread Randy Arabie
On Mon, 4 Feb 2002, William R. Mussatto wrote: > Have you checked on the ulimit for the user that is mysql? I did, but had only set it "dynamically". I did raise it quite high, 5000 I believe. After that I initiated the load, but from a "normal" user shell which had the default proc.[shell_p

Re: sysctl & process limitations

2002-02-04 Thread Manuel Bouyer
On Mon, Feb 04, 2002 at 12:01:11PM -0700, Randy Arabie wrote: > On Mon, 4 Feb 2002, William R. Mussatto wrote: > > > Have you checked on the ulimit for the user that is mysql? > > I've checked a lot of things. > > Which would apply: > > kern.maxfiles > proc.[mysqld_pid].rlimit.de

Re: sysctl & process limitations

2002-02-04 Thread William R. Mussatto
D]>, [EMAIL PROTECTED], > [EMAIL PROTECTED] > Subject: Re: sysctl & process limitations > > On Mon, 4 Feb 2002, William R. Mussatto wrote: > > > Have you checked on the ulimit for the user that is mysql? > > I've checked a lot of things. > > Wh

Re: sysctl & process limitations

2002-02-04 Thread Randy Arabie
On Mon, 4 Feb 2002, William R. Mussatto wrote: > Have you checked on the ulimit for the user that is mysql? I've checked a lot of things. Which would apply: kern.maxfiles proc.[mysqld_pid].rlimit.descriptors.soft proc.[shell_pid].rlimit.descriptors.soft Obviously, th

Re: sysctl & process limitations

2002-02-04 Thread William R. Mussatto
EMAIL PROTECTED], > [EMAIL PROTECTED] > Subject: Re: sysctl & process limitations > > In the last episode (Feb 02), Randy Arabie said: > > On Sat, 2 Feb 2002, Dan Nelson wrote: > > mysql. > > > > kern.maxfiles = 1772 > > > > > > Raise that to

Re: sysctl & process limitations

2002-02-03 Thread Manuel Bouyer
On Sat, Feb 02, 2002 at 09:14:27PM -0700, Randy Arabie wrote: > I don't think so. I raised the limit for mysqld descriptors to 5000. > > # sysctl -w proc.220.rlimit.descriptors.hard=unlimited > # sysctl -w proc.220.rlimit.descriptors.soft=unlimited > > The kernel maxfiles was already set to 500

Re: sysctl & process limitations

2002-02-02 Thread Randy Arabie
On Sat, 2 Feb 2002, Dan Nelson wrote: > In the last episode (Feb 02), Randy Arabie said: > > On Sat, 2 Feb 2002, Dan Nelson wrote: > > mysql. > > > > kern.maxfiles = 1772 > > > > > > Raise that to (say) 5000. I assume netbsd has an /etc/sysctl.conf you > > > can use, or you can do it manually v

Re: sysctl & process limitations

2002-02-02 Thread Dan Nelson
In the last episode (Feb 02), Randy Arabie said: > On Sat, 2 Feb 2002, Dan Nelson wrote: > mysql. > > > kern.maxfiles = 1772 > > > > Raise that to (say) 5000. I assume netbsd has an /etc/sysctl.conf you > > can use, or you can do it manually via "sysctl -w kern.maxfiles=5000" . > > How high can

Re: sysctl & process limitations

2002-02-02 Thread Randy Arabie
On Sat, 2 Feb 2002, Dan Nelson wrote: > > kern.maxfiles = 1772 > > Raise that to (say) 5000. I assume netbsd has an /etc/sysctl.conf you > can use, or you can do it manually via "sysctl -w kern.maxfiles=5000" . How high can I go?? Tried 5000, and it still bombs at the same point. I set that

Re: sysctl & process limitations

2002-02-02 Thread Randy Arabie
On Sat, 2 Feb 2002, Manuel Bouyer wrote: > On Sat, Feb 02, 2002 at 10:33:21AM -0700, Randy Arabie wrote: > > > > > You may also want to ktrace mysqld while trying to load the > > > database to get more details. > > > > Tried this. I'm not much on analyzing a kernel trace, but I could see > >

Re: sysctl & process limitations

2002-02-02 Thread Manuel Bouyer
On Sat, Feb 02, 2002 at 10:33:21AM -0700, Randy Arabie wrote: > > > You may also want to ktrace mysqld while trying to load the > > database to get more details. > > Tried this. I'm not much on analyzing a kernel trace, but I could see > from the trace that the file was opened. And, it appea

Re: sysctl & process limitations

2002-02-02 Thread Randy Arabie
On Sat, 2 Feb 2002, Manuel Bouyer wrote: > On Sat, Feb 02, 2002 at 08:23:49AM -0700, Randy Arabie wrote: > > Environment:AlphaStation 255 w/ 64 MB RAM > > NetBSD 1.5.2 - custom kernel > > MySQL 3.23.47 > > > > I'm trying to load data into tables in a mysql databa

Re: sysctl & process limitations

2002-02-02 Thread Manuel Bouyer
On Sat, Feb 02, 2002 at 08:23:49AM -0700, Randy Arabie wrote: > Environment: AlphaStation 255 w/ 64 MB RAM > NetBSD 1.5.2 - custom kernel > MySQL 3.23.47 > > I'm trying to load data into tables in a mysql database. When I feed the > load script into the database it

sysctl & process limitations

2002-02-02 Thread Randy Arabie
Environment:AlphaStation 255 w/ 64 MB RAM NetBSD 1.5.2 - custom kernel MySQL 3.23.47 I'm trying to load data into tables in a mysql database. When I feed the load script into the database it fails about 3/4 through. Error follows: ERROR 1105 at line 11: Fi