Now the problem is solved.
I rebuilt Racket without defining HAVE_POLL_SYSCALL.
So it is running with select(), and pollsys() is still on the top of stack.

The LD_PRELOAD way fails as before.

Thanks.

On Wed, Jul 1, 2015 at 6:37 AM, Bob Friesenhahn <
[email protected]> wrote:

> On Tue, 30 Jun 2015, WarGrey Gyoudmon Ju wrote:
>
>  Thank you, Bob.
>>
>> Finally I found the root cause is that pollsys is called too frequently.
>> and this problem seems quite normal in Solaris family.
>>
>
> I am pretty sure that this has nothing to do with power management (as
> other have suggested).
>
> The poll() call can wait for activities on file descriptors but can also
> be used for time-out such as for periodic event loops.  Some software is
> written poorly and executes periodic event loops quite often.
>
> If you don't have source for the program, it might be possible to "fix" it
> by using the LD_PRELOAD enviroment variable and a tiny shared library which
> replaces poll() with one which insists on longer timeouts.  This might
> cause other problems to occur in the software though.
>
>
> Bob
> --
> Bob Friesenhahn
> [email protected], http://www.simplesystems.org/users/bfriesen/
> GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
>
> _______________________________________________
> openindiana-discuss mailing list
> [email protected]
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
_______________________________________________
openindiana-discuss mailing list
[email protected]
http://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to