Hi all,
I’m currently in the middle of a bulk operation that seems to take ages.
There are approx. 1900 items that I want to make part of a certain site. I’m using the Bulk operation (job) that can be started with “Items - Edit all - Add to site”.
The job seems to process items in batches of 100. Currently, it has done 900 items in 67 minutes (approx. 4.5 seconds per item). This means it would take around 2 hours and 11 minutes for the entire batch.
I find this an unusual long period of time for what is - in my opinion - a fairly simple database operation (i.e. add 1900 rows to the item_site table in MySQL).
When I look at CPU usage I see that the mysql process is usually using around 15% of CPU, sometimes spiking to 160% to 220%. (it is a multicore server running Ubuntu, therefore percentages above 100%)
What I find particularly worrisome is that the Omeka S instance (and all other Omeka S instances on this server) hang during the bulk operation and cannot be used for most of the time. I found that it hangs during the 15% phase of the CPU-pattern and is usable during the short 160% to 220% spikes.
Any leads on where I could start troubleshooting to optimize my setup?
Best regards,
Maarten Coonen
Please find the contents of the System Information panel in Omeka S below
Omeka S
Version 4.0.4
PHP
Version 8.2.27
SAPI fpm-fcgi
Memory Limit 512M
POST Size Limit 1024M
File Upload Limit 1024M
Garbage Collection Yes
Extensions bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, exif, FFI, fileinfo, filter, ftp, gettext, hash, iconv, imagick, intl, json, ldap, libxml, mbstring, msgpack, mysqli, mysqlnd, openssl, pcre, PDO, pdo_mysql, Phar, posix, random, readline, Reflection, session, shmop, SimpleXML, soap, sockets, sodium, SPL, standard, sysvmsg, sysvsem, sysvshm, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib
MySQL
Server Version 8.0.42-0ubuntu0.22.04.1
Client Version mysqlnd 8.2.27
Mode ONLY_FULL_GROUP_BY, STRICT_TRANS_TABLES, NO_ZERO_IN_DATE, NO_ZERO_DATE, ERROR_FOR_DIVISION_BY_ZERO, NO_ENGINE_SUBSTITUTION
OS
Version Linux 5.15.0-142-generic x86_64
Modules
active Archive Repertory (3.15.16), Ark (3.5.13.5), Block Plus (3.4.21), Blocks Disposition (3.4.2.3-beta), Bulk Edit (3.4.27), Bulk Export (3.4.30), CSV Import (2.6.1), Common (3.4.55), Create Missing Thumbnails (0.3.0), Custom Vocab (2.0.2), EU Cookie Bar (3.4.4), Extract Text (2.0.0), File Sideload (1.7.1), Generic module (3.4.46), Hide Properties (1.3.1), IIIF Search (3.4.7), IIIF Server (3.6.16), Image Server (3.6.17), Log (3.4.22), Mirador Viewer (3.4.7.16), Model viewer (3.3.0.7-132), NDE Termennetwerk (1.2.0), Numeric Data Types (1.11.3), Pdf Viewer (3.4.4), Resource Meta (1.1.0), Sitemaps (1.1), Universal Viewer (3.6.9), Value Suggest (1.17.2)
not_active Advanced Search (3.4.21), Advanced Search adapter for Solr (3.5.45), Statistics (3.4.7)