Strange performance issue with grep -r -i as non-root user

2011-03-05 Thread Jeremy Chadwick
This is a strange one, and the more I started debugging it (starting with truss, comparing fast vs. slow results, where all that appears different is read() operations are taking a lot longer -- I haven't had time to check with ktrace yet), the more strange it got: that's when I found out the

Re: Strange performance issue with grep -r -i as non-root user

2011-03-05 Thread Clifton Royston
On Sat, Mar 05, 2011 at 03:45:14PM -0800, Jeremy Chadwick wrote: This is a strange one, and the more I started debugging it (starting with truss, comparing fast vs. slow results, where all that appears different is read() operations are taking a lot longer -- I haven't had time to check with

Re: Strange performance issue with grep -r -i as non-root user

2011-03-05 Thread Jeremy Chadwick
On Sat, Mar 05, 2011 at 03:01:40PM -1000, Clifton Royston wrote: On Sat, Mar 05, 2011 at 03:45:14PM -0800, Jeremy Chadwick wrote: This is a strange one, and the more I started debugging it (starting with truss, comparing fast vs. slow results, where all that appears different is read()

Re: Strange performance issue with grep -r -i as non-root user

2011-03-05 Thread ill...@gmail.com
On 5 March 2011 20:43, Jeremy Chadwick free...@jdc.parodius.com wrote: On Sat, Mar 05, 2011 at 03:01:40PM -1000, Clifton Royston wrote: On Sat, Mar 05, 2011 at 03:45:14PM -0800, Jeremy Chadwick wrote: This is a strange one, and the more I started debugging it (starting with truss, comparing

Re: Strange performance issue with grep -r -i as non-root user

2011-03-05 Thread Jeremy Chadwick
On Sat, Mar 05, 2011 at 08:49:46PM -0500, ill...@gmail.com wrote: On 5 March 2011 20:43, Jeremy Chadwick free...@jdc.parodius.com wrote: On Sat, Mar 05, 2011 at 03:01:40PM -1000, Clifton Royston wrote: On Sat, Mar 05, 2011 at 03:45:14PM -0800, Jeremy Chadwick wrote: This is a strange one,

Re: Strange performance issue with grep -r -i as non-root user

2011-03-05 Thread ill...@gmail.com
On 5 March 2011 21:05, Jeremy Chadwick free...@jdc.parodius.com wrote: On Sat, Mar 05, 2011 at 08:49:46PM -0500, ill...@gmail.com wrote: On 5 March 2011 20:43, Jeremy Chadwick free...@jdc.parodius.com wrote: On Sat, Mar 05, 2011 at 03:01:40PM -1000, Clifton Royston wrote: On Sat, Mar 05,

Re: Strange performance issue with grep -r -i as non-root user

2011-03-05 Thread Gary Palmer
On Sat, Mar 05, 2011 at 03:45:14PM -0800, Jeremy Chadwick wrote: This is a strange one, and the more I started debugging it (starting with truss, comparing fast vs. slow results, where all that appears different is read() operations are taking a lot longer -- I haven't had time to check with

Re: Strange performance issue with grep -r -i as non-root user

2011-03-05 Thread Jeremy Chadwick
On Sat, Mar 05, 2011 at 09:46:04PM -0500, Gary Palmer wrote: On Sat, Mar 05, 2011 at 03:45:14PM -0800, Jeremy Chadwick wrote: This is a strange one, and the more I started debugging it (starting with truss, comparing fast vs. slow results, where all that appears different is read()

Re: Strange performance issue with grep -r -i as non-root user

2011-03-05 Thread Clifton Royston
On Sat, Mar 05, 2011 at 07:07:20PM -0800, Jeremy Chadwick wrote: ... $ unset LANG - Result: still 80x slower with -i $ unset LANG LC_COLLATE - Result: still 80x slower with -i $ unset LANG LC_CTYPE - Result: normal/fast. $ unset LC_CTYPE - Result: still 80x slower with -i $ unset

Re: Strange performance issue with grep -r -i as non-root user

2011-03-05 Thread Jeremy Chadwick
On Sat, Mar 05, 2011 at 09:04:50PM -1000, Clifton Royston wrote: On Sat, Mar 05, 2011 at 07:07:20PM -0800, Jeremy Chadwick wrote: ... $ unset LANG - Result: still 80x slower with -i $ unset LANG LC_COLLATE - Result: still 80x slower with -i $ unset LANG LC_CTYPE - Result: