[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: findutils on interix
From: |
Markus Duft |
Subject: |
Re: findutils on interix |
Date: |
Thu, 28 Oct 2010 10:11:02 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100913 Lightning/1.0b3pre Thunderbird/3.1.3 |
On 10/28/2010 08:33 AM, Markus Duft wrote:
[snip]
> i have no idea how we could be able to reliably find a "real" limit on
> interix, other than a configure check which tries to exec until it works...
> however, the check would need to grow the env to the maximum, too.
i came up with a small (haha) test program, which grows both env and arg sizes
(or better: shrinks them until it works).
the output for interix is:
using sysconf...
max_arg: 1048576
env_sz : 3164
testing...
max_env with min_arg (4096): 60416
max_arg with min_env (4096): 60416
max_env with max_arg (60416): 4096
max_arg with max_env (60416): 4096
is max_env & max_arg together ok? NOT OK
is max_env / 2 & max_arg / 2 together ok? ok
---------------------------------------
limits: arg: 30207, env: 30207
(hehe peter, you where right ;) the 64K(+ some overhead somewhere?) limit is
there).
on my linux box the same test yields:
using sysconf...
max_arg: 2097152
env_sz : 3955
testing...
max_env with min_arg (4096): 130048
max_arg with min_env (4096): 131072
max_env with max_arg (131072): 130048
max_arg with max_env (130048): 131072
is max_env & max_arg together ok? ok
---------------------------------------
limits: arg: 131072, env: 130048
the test program source is attached, could you have a look at it, whether you
have some more ideas on this? it's just a quick-hack, so don't expect error
handling, excessive comments, etc. ;p
thanks, markus
[snip]
arg-env-test.c
Description: Text Data
- findutils on interix, Markus Duft, 2010/10/22
- Re: findutils on interix, James Youngman, 2010/10/22
- Re: findutils on interix, Markus Duft, 2010/10/23
- Re: findutils on interix, James Youngman, 2010/10/23
- Re: findutils on interix, Markus Duft, 2010/10/27
- Re: findutils on interix, Markus Duft, 2010/10/27
- Re: findutils on interix, James Youngman, 2010/10/27
- Re: findutils on interix, Eric Blake, 2010/10/27
- Re: findutils on interix, Markus Duft, 2010/10/28
- Re: findutils on interix,
Markus Duft <=
- Re: findutils on interix, James Youngman, 2010/10/28
- Re: findutils on interix, Markus Duft, 2010/10/28
- Re: findutils on interix, James Youngman, 2010/10/28
- Re: findutils on interix, Markus Duft, 2010/10/28
- Re: findutils on interix, Markus Duft, 2010/10/28
- Re: findutils on interix, Eric Blake, 2010/10/28
- Re: findutils on interix, Markus Duft, 2010/10/28
- Re: findutils on interix, Paolo Bonzini, 2010/10/29
Re: findutils on interix, James Youngman, 2010/10/27