From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 86A8241E04; Tue, 7 Mar 2023 17:07:01 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 79F2441143; Tue, 7 Mar 2023 17:07:01 +0100 (CET) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mails.dpdk.org (Postfix) with ESMTP id E4386410EF for ; Tue, 7 Mar 2023 17:06:59 +0100 (CET) Received: by mail-pj1-f52.google.com with SMTP id 6-20020a17090a190600b00237c5b6ecd7so16981371pjg.4 for ; Tue, 07 Mar 2023 08:06:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; t=1678205219; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=a5XKlI/EqFjy4Vbl2pHpwVfwzri06iIVuyIxrfB5scw=; b=7mL+CKA3Vk5GVcRIe23/0T+HUNVYHpdhzrGIv7O3faMYh5ZbMFOjdkQnbeddUqYoV7 U43y3JWNNPWzdECeLpf4+kAIFGhehRZNToW27bpgtwFsvsUlxcLHxuUSKvH8ztvy0yBm 7ZTkQTqHQUJ14Uck3UxMs+w15/l/kliJLx5ntSquZCgVbKLP3eG5vUjnVFkVBuDQJSTs P1VFNgh2PSYjHYkNJGeE6sQaolxpyOayBQZY6z7Bkxhd/k8rFKRjGxTb88vqB0LNIsFC aj0G42lWj81EQ3xeNfCeZhuCdTN7gK3GMzwk+ZXpF4Vk45K9IuQjjVFPYUcHKjkIfVq0 aGqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678205219; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=a5XKlI/EqFjy4Vbl2pHpwVfwzri06iIVuyIxrfB5scw=; b=78saTxxSid4egT13GMJLzLS6jiwzq6tAoxBFosOQvUYUff0+N6z9u0WxS8myOmmlNH CKsOuU3LR+bThGL0q5+vfvyTpXaKJ2D2Nzf0RVAta4mkxPd/WqWz88w8NgbbwGKbCRi/ 3OjCEEk2a7AwW9pP08qAgJ8Jv6udWP5jqyaAFqIP37r3m9hEFeBK98isvw+TsXDFGai8 lxy737uy1updy30iNULshT0wbqwiXNIe3xWEJeQWBiSLZnVQJL31o8Y+tUUIV7HrUrHA adFIfzMv4LNrhwY1mWR8SqxKuYUEDSGbE+Ijq+Lr2SD3W4lwlAK7POZYR7grRihtVjFt ESeg== X-Gm-Message-State: AO0yUKX16HVp/cjNJF0hI739COY0qOywtgDdej9BiTZfQjC7GhUeFrIJ zVazuRO3UUp7ro4N5YFEsICbyw== X-Google-Smtp-Source: AK7set/9ieo9uQZLQJcmHadcyoMkSewHPKe6v4S2s/reYY23izwKYXI4B6AB923KnN2UosggsyZBvQ== X-Received: by 2002:a17:902:e746:b0:19e:6bc5:8769 with SMTP id p6-20020a170902e74600b0019e6bc58769mr20198337plf.69.1678205219071; Tue, 07 Mar 2023 08:06:59 -0800 (PST) Received: from hermes.local (204-195-120-218.wavecable.com. [204.195.120.218]) by smtp.gmail.com with ESMTPSA id lc15-20020a170902fa8f00b0019eddc81b86sm1641685plb.0.2023.03.07.08.06.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 08:06:58 -0800 (PST) Date: Tue, 7 Mar 2023 08:06:57 -0800 From: Stephen Hemminger To: fengchengwen Cc: , Bruce Richardson Subject: Re: [PATCH v3 2/2] eal: add option to put timestamp on console output Message-ID: <20230307080657.4b7be99e@hermes.local> In-Reply-To: <216dfffb-2a50-3288-27a5-5078ea9eb22d@huawei.com> References: <20200814173441.23086-1-stephen@networkplumber.org> <20230306192810.106154-1-stephen@networkplumber.org> <20230306192810.106154-3-stephen@networkplumber.org> <216dfffb-2a50-3288-27a5-5078ea9eb22d@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Tue, 7 Mar 2023 17:35:32 +0800 fengchengwen wrote: > The syslog will add timestamp, but the syslog backend will re-write timestamp, so > in the last, you can't find the real-timestamp of this log print. sometimes it requires > to get real log time. > PS: we found it in our test environment because RR schedule hang too long (similar question > also found: https://bugzilla.redhat.com/show_bug.cgi?id=1855447). > > So suggest add timestamp in syslog string also, and don't convert to monotonic and just > print as normal format (just like syslog). Are you using systemd? Never, never configure a DPDK application with real-time process priority. Polling model and RT don't mix.