All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Benjamin <mbenjamin@redhat.com>
To: Willem Jan Withagen <wjw@digiware.nl>
Cc: Erwan Velu <evelu@redhat.com>,
	"Adam C. Emerson" <aemerson@redhat.com>,
	Sage Weil <sweil@redhat.com>,
	The Sacred Order of the Squid Cybernetic
	<ceph-devel@vger.kernel.org>
Subject: Re: About ceph_clock_now()
Date: Sat, 23 Jan 2016 15:20:47 -0500 (EST)	[thread overview]
Message-ID: <747915460.23855157.1453580447803.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <56A368C1.8000508@digiware.nl>

Hi Willem,

Agree.  The c++ notations and our declarations using them do centralize all this.  I don't know if we're actually defining anything equivalent to the coarse/fast clocks (it seems like a good idea, and I assumed we would), and it's straightforward to do.

(Adam may have, already.)

Matt

----- Original Message -----
> From: "Willem Jan Withagen" <wjw@digiware.nl>
> To: "Erwan Velu" <evelu@redhat.com>, "Adam C. Emerson" <aemerson@redhat.com>
> Cc: "Sage Weil" <sweil@redhat.com>, "The Sacred Order of the Squid Cybernetic" <ceph-devel@vger.kernel.org>
> Sent: Saturday, January 23, 2016 6:49:21 AM
> Subject: Re: About ceph_clock_now()
> 
> On 22-1-2016 17:00, Erwan Velu wrote:
> > Hey,
> > 
> > I've been able to continue this work and updated by branch accordingly.
> > I understand the benefit of using the ceph_time work but I feel that it
> > makes the change pretty verbose for a not a so big change (CLOCK_REALTIME
> > vs CLOCK_MONO).
> > 
> > This imply a change of all utime_t and makes the computations a little bit
> > more complex to read.
> > 
> > Does it worth the time spent on it ? If yes, I don't have any issue
> > continuing this way.
> > I'm pretty new to the project and would like to make the best PR as
> > possible.
> > So your insights on the under-work patch would be very helpful.
> 
> Erwan,
> 
> It would be real useful if references to CLOCK_(MONOTONIC|REALTIME)_*
> are centralised in one place (or at least as little as possible).
> And perhaps wrapped in simple function.
> 
> Reason is that CLOCK_*_COARSE are linux specific.
> 
> POSIX only has CLOCK_*, without the COARSE.
> FreeBSD has the CLOCK_*_FAST variant which equals the COARSE objective.
> (less accuracy, more speed)
> 
> So I've wrapped the code in a
> #if defined(__linux__)
> #	USE the COARSE variant
> #elif defined(__FreeBSD__)
> #	USE the FAST variant
> #else
> # 	Use the POSIX version as fallback
> #endif
> 
> Thanx,
> --WjW
> 
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

-- 
-- 
Matt Benjamin
Red Hat, Inc.
315 West Huron Street, Suite 140A
Ann Arbor, Michigan 48103

http://www.redhat.com/en/technologies/storage

tel.  734-707-0660
fax.  734-769-8938
cel.  734-216-5309

  reply	other threads:[~2016-01-23 20:20 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <177186823.10053087.1452614184109.JavaMail.zimbra@redhat.com>
2016-01-12 15:59 ` About ceph_clock_now() Erwan Velu
2016-01-12 17:32   ` Adam C. Emerson
2016-01-13 10:41     ` Erwan Velu
2016-01-13 13:48       ` Sage Weil
2016-01-13 14:52         ` Matt Benjamin
2016-01-14 16:10         ` Erwan Velu
2016-01-14 16:14           ` Adam C. Emerson
2016-01-19 16:17         ` Erwan Velu
2016-01-19 16:29           ` Adam C. Emerson
2016-01-19 16:57             ` Erwan Velu
2016-01-21 19:22             ` Erwan Velu
2016-01-22 16:00               ` Erwan Velu
2016-01-22 17:35                 ` Adam C. Emerson
2016-01-26 14:12                   ` Erwan Velu
2016-01-23 11:49                 ` Willem Jan Withagen
2016-01-23 20:20                   ` Matt Benjamin [this message]
2016-01-23 21:55                     ` Adam C. Emerson
2016-01-24 11:53                       ` Willem Jan Withagen
2016-01-24 12:51                         ` Willem Jan Withagen
2016-01-25  0:03                           ` Adam C. Emerson
2016-01-25  9:08                             ` Willem Jan Withagen
2016-01-25  9:58                               ` Erwan Velu
2016-01-25 10:57                                 ` Willem Jan Withagen
2016-01-25 17:22                                   ` Adam C. Emerson
     [not found]                                     ` <56A66099.4030501@digiware.nl>
     [not found]                                       ` <1523354716.24670379.1453744826329.JavaMail.zimbra@redhat.com>
2016-01-25 19:38                                         ` Willem Jan Withagen
2016-01-25 20:14                                           ` Adam C. Emerson
2016-01-25 20:18                                             ` Matt Benjamin
2016-01-25 20:22                                             ` Willem Jan Withagen
2016-01-13 15:28       ` Adam C. Emerson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=747915460.23855157.1453580447803.JavaMail.zimbra@redhat.com \
    --to=mbenjamin@redhat.com \
    --cc=aemerson@redhat.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=evelu@redhat.com \
    --cc=sweil@redhat.com \
    --cc=wjw@digiware.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.