From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 84DC6A0096 for ; Wed, 8 May 2019 22:12:44 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 4CD2E374C; Wed, 8 May 2019 22:12:44 +0200 (CEST) Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by dpdk.org (Postfix) with ESMTP id F1D832C2B for ; Wed, 8 May 2019 22:12:42 +0200 (CEST) Received: by mail-pl1-f193.google.com with SMTP id d9so10432222pls.8 for ; Wed, 08 May 2019 13:12:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=xpuprywUGDmrdpIMCgLQeqilPoPssOmQp5mFI5lxItI=; b=IPPwUAdzpS+G2yrTuFtx4/EfuCIHR4AmVmIsWGW0qE2rEI4f1EGvbP7F1a3GqTqFJU +QaGVQ4lOc2EvS538WouD5JJ8/5cXhPPEusMQRxf3UmUIfbmxYI2WQkb2I38HI1+gKf4 hFWNhjO06k71p7/IOEHiijIAAk4si6YuMNYnLLb1ndooc0AOdCqD3YT1RRt0cypJkBdV z+RZQYC1otHSPB1zKFFqU4Jfm/Yl6wwNjx4j4GeXkTSNPxQo2BiAZ/NtiCBBCdPWUHUI VpRIdVQs9pdq/LaHFZLELpD/2Hq+2tSMrahEpmSInOueajO/V3nD3UZxREPpXbOEll6w 8t8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=xpuprywUGDmrdpIMCgLQeqilPoPssOmQp5mFI5lxItI=; b=F1Y2qypRawKeBn2EMuI1anSpp2wmK3g+wPxtzXV69ruVJ0QDRA/sl+lOWFgxOi6uj1 Y6eIG4pwVfDZZW7Uy9XzxX/X4fkcN7nEj26DzslOLFA2m5Eq79DZhmpD6C42hcCXdByb m8jO245WVX4QudZzBvLR5tQDnCcFPCVInl1fAiby6pZG2JeplM9o3vSfkOHboiTTVb/8 snyjI6tbulh4CpzQ8ouYgqfrVEab65Qp871K1tpvCPSXpGnXyjy8C5z0a5s8uvyCOGwu Lym6+1Y1jiW4bOMn5qlrof5MCW/8/zm65sRSXaAHzNKwYzHgtDpFgUHU9lLIOMt/qrPi O9qQ== X-Gm-Message-State: APjAAAU1TaI6k5gZrYVczNzgKY4X0NNn0vtgnj8GC7Xfv1d28CvYbnsy zD4/CAwcO4JLm+NYeV0worFk8rmc7hY= X-Google-Smtp-Source: APXvYqxCziSYV9kHbyVLl3ozZ+JpPOLD3CBtK3sBYs3tZMCAGUZVqeYUH3ULgwTcDkpH3MS0PvxFug== X-Received: by 2002:a17:902:8203:: with SMTP id x3mr29580914pln.11.1557346362212; Wed, 08 May 2019 13:12:42 -0700 (PDT) Received: from xps13 ([167.220.63.181]) by smtp.gmail.com with ESMTPSA id s85sm115544pfa.23.2019.05.08.13.12.42 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 08 May 2019 13:12:42 -0700 (PDT) Date: Wed, 8 May 2019 13:12:39 -0700 From: Stephen Hemminger To: Mattias =?UTF-8?B?UsO2bm5ibG9t?= Cc: , Message-ID: <20190508131239.07e06092@xps13> In-Reply-To: <20190424123320.19610-2-mattias.ronnblom@ericsson.com> References: <20190424123320.19610-1-mattias.ronnblom@ericsson.com> <20190424123320.19610-2-mattias.ronnblom@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-dev] [RFC v3 1/2] eal: replace libc-based random number generation with LFSR X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Message-ID: <20190508201239.RX9dsOR5dBa3aT59-1rgPTv6TiO4U774v1BgHajlEs0@z> On Wed, 24 Apr 2019 14:33:19 +0200 Mattias R=C3=B6nnblom wrote: > diff --git a/lib/librte_eal/linux/eal/eal.c b/lib/librte_eal/linux/eal/ea= l.c > index 161399619..d6bf0e89e 100644 > --- a/lib/librte_eal/linux/eal/eal.c > +++ b/lib/librte_eal/linux/eal/eal.c > @@ -1083,8 +1083,6 @@ rte_eal_init(int argc, char **argv) > #endif > } > =20 > - rte_srand(rte_rdtsc()); The current model of seeding with TSC will have problems at scale. If a whole rack of machines reboots at the same time because of power cycle, it would not be surprising if several had the same TSC value. A better solution would be to use the get_random() system call to get seed, the kernel can get entropy from more sources.