From owner-freebsd-hackers@freebsd.org Fri Sep 21 10:46:42 2018 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 663D51095A6F for ; Fri, 21 Sep 2018 10:46:42 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from dedi548.your-server.de (dedi548.your-server.de [IPv6:2a01:4f8:d0a:2645::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DBCD87878B for ; Fri, 21 Sep 2018 10:46:41 +0000 (UTC) (envelope-from sebastian.huber@embedded-brains.de) Received: from [78.46.172.2] (helo=sslproxy05.your-server.de) by dedi548.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1g3IxE-0007sg-KB for freebsd-hackers@freebsd.org; Fri, 21 Sep 2018 12:46:32 +0200 Received: from [82.135.62.35] (helo=mail.embedded-brains.de) by sslproxy05.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1g3IxD-000Dbh-NX for freebsd-hackers@freebsd.org; Fri, 21 Sep 2018 12:46:32 +0200 Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 91CFC2A165C for ; Fri, 21 Sep 2018 12:47:05 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id WSPMELRzWg7t for ; Fri, 21 Sep 2018 12:47:03 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 5C0032A167E for ; Fri, 21 Sep 2018 12:47:03 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SeauUA43TbEO for ; Fri, 21 Sep 2018 12:47:03 +0200 (CEST) Received: from [192.168.96.149] (unknown [192.168.96.149]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 2FBA42A165C for ; Fri, 21 Sep 2018 12:47:03 +0200 (CEST) Subject: Re: epoch(9) background information? From: Sebastian Huber To: FreeBSD References: Message-ID: Date: Fri, 21 Sep 2018 12:46:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.100.1/24965/Fri Sep 21 07:57:08 2018) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2018 10:46:43 -0000 Hello, I ported the epoch API to RTEMS. You can find the implementation here: https://git.rtems.org/rtems-libbsd/tree/rtemsbsd/include/sys/epoch.h https://git.rtems.org/rtems-libbsd/tree/rtemsbsd/rtems/rtems-kernel-epoch= .c I tested it also on low end uniprocessor targets and it works fine, e.g. * Microchip ATSAM V71 (ARMv7-M) * NXP MCF548x (ColdFire) * NXP MPC860 (PowerPC 32-bit) I tested it also on a 24-core T4240. It scales pretty well. See also: https://git.rtems.org/rtems-libbsd/tree/testsuite/epoch01/test_main.c If someone has ideas for good test cases, then please let me know. I modified the CK a bit to better support RTEMS targets: https://git.rtems.org/rtems-libbsd/commit/?id=3Dbaf1ca76290f43e054e5182c1= 47ca332cb59890f https://git.rtems.org/rtems-libbsd/commit/?id=3D3becda1fef854cbe39e462a17= 74b860e1455c8ef https://git.rtems.org/rtems-libbsd/commit/?id=3D1af372a5eeaba3115f139e4ef= c0204e2cd7208bb https://git.rtems.org/rtems-libbsd/commit/?id=3Dbe6515d2c1086c76ee965c630= 0cc5873c76afab9 --=20 Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine gesch=C3=A4ftliche Mitteilung im Sinne des EHUG= .