Util-Linux package development
 help / color / mirror / Atom feed
From: "Theodore Ts'o" <tytso@mit.edu>
To: "Michal Suchánek" <msuchanek@suse.de>
Cc: Chris Hofstaedtler <zeha@debian.org>, util-linux@vger.kernel.org
Subject: Re: [PATCH] libuuid: Move clock.txt to /run
Date: Wed, 1 Mar 2023 13:39:52 -0500	[thread overview]
Message-ID: <Y/+b+LlvuaDD4i4k@mit.edu> (raw)
In-Reply-To: <20230301171759.GB19419@kitsune.suse.cz>

On Wed, Mar 01, 2023 at 06:17:59PM +0100, Michal Suchánek wrote:
> > Using a random number generator for clock can help, but it's only 13
> > bits, so it's certainly not fool-proof.  Given that using a time-based
> > UUID leaks the MAC address of your ethernet port as well as when the
> > UUID was generated (which can be interesting when you're curious say,
> > when a Libreoffice doc was created), in general best practice is to
> > use the random UUID type, especially given that modern Linux systems
> > all have the getrandom(2) system call.  That gives you 58 bits of
> > entropy in the UUID, so that's probably the better way to go.
> 
> That explains why I don't have a clock.txt file. I did not go out of my
> way to generate time-based uuids.

Note that the only reason why you might be trying to generate a huge
number of time-based UUID is if you are running a database (cough,
SAP, cough) that is doing database index compression hacks so they can
use still (a) use UUID's, but (b) not pay the cost of 16-byte UUID for
every single object in their database.

But if they are doing this, you ***really*** want to be using uuidd,
because even using clock.txt in tmpfs, it's going to be *way* faster
to use uuidd, and since some workloads (cough, SAP, cough) are
creating a vast number of UUID's per second while initializing their
database, your distribution users *will* want to install uuidd if they
are using those kinds of Enterprise Resource Planning systems.  If you
consider how much per hour these users pay for their certified
implementation consultsants, it's worth real $$$.   :-)

	       		     	  	     - Ted

  reply	other threads:[~2023-03-01 18:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-01 14:09 [PATCH] libuuid: Move clock.txt to /run Michal Suchanek
2023-03-01 14:17 ` Chris Hofstaedtler
2023-03-01 14:26   ` Michal Suchánek
2023-03-01 16:49     ` Theodore Ts'o
2023-03-01 17:17       ` Michal Suchánek
2023-03-01 18:39         ` Theodore Ts'o [this message]
2023-03-01 20:08           ` Michal Suchánek
2023-03-01 17:54 ` Karel Zak

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=Y/+b+LlvuaDD4i4k@mit.edu \
    --to=tytso@mit.edu \
    --cc=msuchanek@suse.de \
    --cc=util-linux@vger.kernel.org \
    --cc=zeha@debian.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox