Re: NetBSD-4 RC3: broken ulimit -n
David Laight <[email protected]> Thu, 25 Oct 2007 21:22:12 +0100
| Newsgroups | gmane.os.netbsd.help |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Oct 25, 2007 at 10:16:10AM +0300, Aleksey Cheusov wrote:
> It seems to me that 'ulimit -n' (a number of open files limit) is broken
> in NetBSD RC-3. See the folllowing typescript.
> 0 ~>awk 'BEGIN {for (i=1; i <= 2000; ++i){print uraaa > ("/tmp/file_number_" i)}}'
> awk: /tmp/file_number_18 makes too many open files
> source line number 1
> 2 ~>ls -la /tmp/file_numb* | wc -l
> 17
> 0 ~>ktrace awk 'BEGIN {for (i=1; i <= 2000; ++i){print uraaa > ("/tmp/file_number_" i)}}'
> awk: /tmp/file_number_18 makes too many open files
...
> 6986 1 awk RET write 1
> 6986 1 awk CALL open(0x8074a00,0x601,0x1b6)
> 6986 1 awk NAMI "/tmp/file_number_17"
> 6986 1 awk RET open 20/0x14
> 6986 1 awk CALL __fstat30(0x14,0xbfbfdce8)
> --
> 6986 1 awk GIO fd 2 wrote 45 bytes
> "/tmp/file_number_18 makes too many open files"
> 6986 1 awk RET write 45/0x2d
If it were a kernel probelm there would an error return.
So it must be a problem in awk.
David
--
David Laight: [email protected]