Re: [eclipse-clp-users] ECLiPSe C/C++ API and user/kernel time

From: Kish Shen <kisshen_at_cisco.com>
Date: Mon, 13 Oct 2008 14:48:46 +0100
Giuseppe Di Guglielmo wrote:
> Dear all,
> I am using the ECLiPSe C/C++ API in my applications. 
> 
> In general my applications spent 80% of overall execution time on constraint
> solving by using ECLiPSe function calls. 
> 
> I observed also (e.g. /usr/bin/time) that each application takes much more
> as kernel time than user time (one order of magnitude, e.g. 0.1 sec as user
> time, 1 sec as kernel time). Which is the reason? I assume is related to
> ECLiPSe. Could you confirm and explain me the grounds?
> 
Hi Giuseppe,

I assume you are using some version of Unix. I think kernel time is the 
time your process spends in executing system code, i.e. code that is 
part of the kernel. This is of course OS dependent, and also dependent 
on what your code is doing, but normally ECLiPSe does not spend much 
time in system code. Have you tried running your ECLiPSe code on its own 
and see how much time is spent in kernel time?

Cheers,

Kish


-- 
This e-mail may contain confidential and privileged material for the
sole use of the intended recipient. Any review, use, distribution or
disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact
the sender by reply e-mail and delete all copies of this message.
Cisco Systems Limited (Company Number: 02558939), is registered in
England and Wales with its registered office at 1 Callaghan Square,
Cardiff, South Glamorgan CF10 5BT.
Received on Mon Oct 13 2008 - 13:49:02 CEST

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET