Menu

Enigmail 3.1.6 on Seamonkey

2023-11-04
2023-11-21
  • BERTRAND Joël

    BERTRAND Joël - 2023-11-04
    Hello,
    
    I use Enigmail on Seamonkey on a diskless workstation (/home and, of
    

    course, .mozilla/seamonkey/profiles are on NFSv3/TCP disks).

    Regulary, seamonkey takes a lot of CPU. For example:
    

    top - 14:54:19 up 16 days, 1:31, 33 users, load average: 49,90, 49,76,
    49,54
    Tâches: 458 total, 4 en cours, 454 en veille, 0 arrêté, 0 zombie
    %Cpu0 : 9,1 ut, 38,4 sy, 0,0 ni, 4,0 id, 48,5 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu1 : 10,8 ut, 36,3 sy, 0,0 ni, 1,0 id, 52,0 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu2 : 17,8 ut, 38,6 sy, 0,0 ni, 0,0 id, 43,6 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu3 : 12,0 ut, 38,0 sy, 0,0 ni, 1,0 id, 49,0 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu4 : 7,9 ut, 40,6 sy, 0,0 ni, 1,0 id, 50,5 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu5 : 11,8 ut, 35,3 sy, 0,0 ni, 3,9 id, 49,0 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu6 : 12,7 ut, 36,3 sy, 0,0 ni, 2,9 id, 48,0 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu7 : 10,0 ut, 37,0 sy, 0,0 ni, 3,0 id, 50,0 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu8 : 12,9 ut, 35,6 sy, 0,0 ni, 1,0 id, 50,5 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu9 : 9,0 ut, 39,0 sy, 0,0 ni, 0,0 id, 52,0 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu10 : 11,1 ut, 37,4 sy, 0,0 ni, 0,0 id, 51,5 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu11 : 11,8 ut, 36,3 sy, 0,0 ni, 2,9 id, 49,0 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu12 : 10,0 ut, 43,0 sy, 0,0 ni, 3,0 id, 42,0 wa, 0,0 hi, 2,0 si,
    0,0 st
    %Cpu13 : 11,8 ut, 40,2 sy, 0,0 ni, 6,9 id, 41,2 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu14 : 11,8 ut, 36,3 sy, 0,0 ni, 4,9 id, 47,1 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu15 : 12,7 ut, 37,3 sy, 0,0 ni, 12,7 id, 37,3 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu16 : 14,9 ut, 33,7 sy, 0,0 ni, 8,9 id, 42,6 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu17 : 8,9 ut, 39,6 sy, 0,0 ni, 12,9 id, 38,6 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu18 : 10,0 ut, 37,0 sy, 0,0 ni, 1,0 id, 52,0 wa, 0,0 hi, 0,0 si,
    0,0 st
    %Cpu19 : 8,0 ut, 39,0 sy, 0,0 ni, 3,0 id, 50,0 wa, 0,0 hi, 0,0 si,
    0,0 st
    KiB Mem : 32764240 total, 11654464 libr, 10256640 util, 11487692
    tamp/cache
    KiB Éch : 10066329+total, 10066329+libr, 0 util. 22507600 dispo Mem

    PID UTIL. PR NI VIRT RES SHR S %CPU %MEM TEMPS+
    COM.
    2433 bertrand 20 0 39,5g 1,5g 180192 S 1332 4,7 26,05
    seamonkey

    When I check NFS transactions, I see that this high CPU usage (and load
    

    average) comes from enigmail :
    length 284: NFS request xid 1073892892 152 lookup fh 168 0/645379787
    "enigmail.sqlite-journal"
    length 156: NFS request xid 1442991644 152 lookup fh 168 0/645379787
    "enigmail.sqlite-journal"
    length 156: NFS request xid 1459768860 152 lookup fh 168 0/645379787
    "enigmail.sqlite-journal"
    length 188: NFS request xid 2332184092 184 create fh 168 0/645379787
    "enigmail.sqlite-journal"
    length 156: NFS request xid 3171044892 152 remove fh 168 0/645379787
    "enigmail.sqlite-journal"
    length 188: NFS request xid 620973596 184 create fh 168 0/645379787
    "enigmail.sqlite-journal"
    length 160: NFS request xid 3338882588 156 lookup fh 168 0/645379787
    ".nfs0000000002ffa5dd001de6cb"
    length 220: NFS request xid 3355659804 216 rename fh 168 0/645379787
    "enigmail.sqlite-journal" -> fh 168
    length 156: NFS request xid 3372437020 152 lookup fh 168 0/645379787
    "enigmail.sqlite-journal"
    length 160: NFS request xid 3389214236 156 remove fh 168 0/645379787
    ".nfs0000000002ffa5dd001de6cb"
    length 188: NFS request xid 436489756 184 create fh 168 0/645379787
    "enigmail.sqlite-journal"
    length 160: NFS request xid 1627672092 156 lookup fh 168 0/645379787
    ".nfs0000000002ffa5dd001de6cc"
    length 220: NFS request xid 1644449308 216 rename fh 168 0/645379787
    "enigmail.sqlite-journal" -> fh 168
    length 156: NFS request xid 1661226524 152 lookup fh 168 0/645379787
    "enigmail.sqlite-journal"
    length 160: NFS request xid 1678003740 156 remove fh 168 0/645379787
    ".nfs0000000002ffa5dd001de6cc"
    length 284: NFS request xid 1694780956 152 lookup fh 168 0/645379787
    "enigmail.sqlite-journal"
    length 188: NFS request xid 2969849372 184 create fh 168 0/645379787
    "enigmail.sqlite-journal"
    length 160: NFS request xid 4110700060 156 lookup fh 168 0/645379787
    ".nfs0000000002ffa5dd001de6cd"
    length 220: NFS request xid 4127477276 216 rename fh 168 0/645379787
    "enigmail.sqlite-journal" -> fh 168

    If I remove enigmail from Seamonkey, it runs as expected. If I don't
    

    stop Seamonkey, process continues with high CPU usage until I kill
    Seamonkey. How can I configure Enigmail to avoid this issue ?

    Best regards,
    
    JB
    
     
  • Patrick Brunschwig

    It seems that ~/.enigmail is on an NFS share?

    You have 2 options:
    1. move ~/.enigmail to some local directory, and create a symlink from ~/.enigmail to the local directory
    2. use GnuPG as crypto-engine instead of OpenPGP.js (menu Enigmail > Preferences > Crypto-Engine)

     
  • BERTRAND Joël

    BERTRAND Joël - 2023-11-04

    Yes, this workstation is pure diskless.

    I have tried to replace OpenPGP.js by GnuPG. First stage of reconfiguration runs fine as Enigmail finds GnuPG, but key restoration stalls. I have created a file 'Enigmail-exportation.zip' from my old configuration I try to restore. Enigmail console shows:

    Initializing Enigmail service ...
    Initializing Enigmail service ...
    Initializing Enigmail service ...
    enigmail>  --no-verbose --status-fd 2 --no-auto-check-trustdb --import
    enigmail>  --no-verbose --status-fd 2 --no-auto-check-trustdb --import
    enigmail>  --no-verbose --status-fd 2 --no-auto-check-trustdb --import
    

    and Enigmail-exportation.zip contains keyring.asc and prefs.json.

    Best regards,

    JB

     
  • Patrick Brunschwig

    I would recommend that you do the key importing on the command line, and then restart Enigmail:

    gpg --import /path/to/your/keyfile

     
  • BERTRAND Joël

    BERTRAND Joël - 2023-11-05

    I have verified that my keys were imported in gpg configuration:

    hilbert:[~] > gpg --list-secret-keys
    /home/bertrand/.gnupg/pubring.kbx
    ...
    sec   rsa4096 2023-10-03 [SC]
          1BCD8FB69B281E1D0F6E5C1BD69838D31BF166C2
    uid          [  ultime ] BERTRAND Joël (OpenPGP systella.fr) <joel.bertrand@systella.fr>
    ssb   rsa4096 2023-10-03 [E]
    ...
    

    But enigmail complains as its configuration is not done. I have restarted Seamonkey with default locale and I have seen that gpgme-json was missing on my system. Thus, I have built gpgme-json ans now, enigmail runs as expected.

    Thanks,

    JB

     
  • BERTRAND Joël

    BERTRAND Joël - 2023-11-20

    I come back ;-)

    Same result with GNUgpg. Seamonkey eats a lot of CPU and load average of my workstation is height (between 7 and 8).

    nfs requests show that enigmail opens and closes enigmail.sqlite-journal:

    length 188: NFS request xid 3247383850 184 create fh 168 0/645379787 "enigmail.sqlite-journal"
    length 156: NFS request xid 3398378794 152 remove fh 168 0/645379787 "enigmail.sqlite-journal"
    length 188: NFS request xid 3616482602 184 create fh 168 0/645379787 "enigmail.sqlite-journal"
    length 156: NFS request xid 3784254762 152 remove fh 168 0/645379787 "enigmail.sqlite-journal"
    length 160: NFS request xid 4136576298 156 lookup fh 168 0/645379787 ".nfs0000000002ffa78100000f0b"
    length 220: NFS request xid 4220462378 216 rename fh 168 0/645379787 "enigmail.sqlite-journal" -> fh 168
    length 160: NFS request xid 4237239594 156 remove fh 168 0/645379787 ".nfs0000000002ffa78100000f0b"
    length 156: NFS request xid 4254016810 152 lookup fh 168 0/645379787 "enigmail.sqlite-journal"
    length 188: NFS request xid 93332778 184 create fh 168 0/645379787 "enigmail.sqlite-journal"
    length 156: NFS request xid 227550506 152 remove fh 168 0/645379787 "enigmail.sqlite-journal"
    length 188: NFS request xid 495985962 184 create fh 168 0/645379787 "enigmail.sqlite-journal"
    

    What does enigmail ? During a lot of time, it runs like a charm and, suddendly, a process starts and eats CPU. I precise that this workstation doesn't contain local disks.

    Regards,

    JB

     

    Last edit: BERTRAND Joël 2023-11-20
  • Patrick Brunschwig

    Enigmail processes Autocrypt headers and stores them in the same sqlite database.
    Can you have file on a tmpfs that are simply in RAM?

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.