Is committing objects with ZEO 4 on Linux insanely slow for everyone? Or just me?

Jim Fulton <[email protected]>
Newsgroups gmane.comp.web.zope.zodb
Message-ID <CAPDm-Fi7OWiz2LpEpdM6qXLxhQ9TKxPCxjrqyYsX1Lz_JhD+7Q@mail.gmail.com>
I'm doing some measurements to compare performance of ZEO 4 and ZEO 5 on
Python 2 and Python 3.

When making measurements on Linux (Ubuntu 14.04 and 16.04) with Python 2.7,
I'm seeing crazy long commit times.

When running the script here:

  https://gist.github.com/jimfulton/fd7e10efe049e9f297e65b7111443869

On a mac (~160K pystones) I get output:

Times per operation in microseconds (o=999, t=3, c=1)
           op          min         mean       median          max
          add         4254
       update         5551
       cached          190
         read          913

But in a Ubuntu docker container (16.04, ~220K pystones) (running on my
mac), I get:

Times per operation in microseconds (o=999, t=3, c=1)
           op          min         mean       median          max
          add        27056
       update        32601
       cached          186
         read         1393

which is roughly an order of magnitude slower for adds and updates.

On an EC2 i2.8xlarge instance (Ubuntu 14.04, ~120K pystones) O get:

Times per operation in microseconds (o=999, t=3, c=1)
           op          min         mean       median          max
          add        38942
       update        35276
       cached          260
         read         1189

Note that whatever the issue is, it seems to be with the server. If I run
the server on my Mac and connect from Linux, I get:

Times per operation in microseconds (o=999, t=3, c=1)
           op          min         mean       median          max
          add         3324
       update         2809
       cached          180
         read         3720

(It's weird that reads are much slower in this case.)

Each row tests 1000 transactions with objects about 999 bytes in size
(actually a little more) with 3 objects per transaction. Times are mean
transaction times

I'd be curious to know what sorts of numbers other folks get on Linux with
Python 2.7 and ZEO 4, especially on Linux computers, as opposed to docker
containers or EC2 instances.

Jim

-- 
Jim Fulton
http://jimfulton.info

-- 
You received this message because you are subscribed to the Google Groups "zodb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.