cant store article: bogus Xref: header in INN 2.5 ?

Julien ÉLIE julien at trigofacile.com
Tue Sep 20 20:37:19 UTC 2011


Hi Matija,

A quick note that could interest you.


I have just noticed that a few tests are failing on my system:

Failed Set                 Fail/Total (%) Skip Stat  Failing Tests
-------------------------- -------------- ---- ----  ------------------------
overview/api                 27/75    36%    0   --  49-75
overview/buffindexed         21/21   100%    0    1  1-21
util/inndf                    2/6     33%    0    1  5-6


% ./inndf.t 
makehistory failed, unable to continue


% ./buffindexed.t 
cant create semaphore using ov-tmp/buffer: No space left on device
failed to create semaphore for ov-tmp/buffer
buffindexed: ovinitdisks: cant create shmem for ov-tmp/buffer len 16384: No space left on device
Opening the overview database failed, cannot continue





I found out that:

# ipcs -s

------ Semaphore Arrays --------
key        semid      owner      perms      nsems     
0x00028216 0          news      777        2         
0x00028226 32769      news      777        2         
0x00028215 65538      news      777        2         
0x00028229 98307      news      777        2         
0x0002821b 131076     news      777        2         
0x0002822e 163845     news      777        2         
0x00028219 196614     news      777        2         
[...]

# ipcs -s | grep 0x0 | wc -l
128

# ipcs -l

------ Shared Memory Limits --------
max number of segments = 4096
max seg size (kbytes) = 32768
max total shared memory (pages) = 2097152
min seg size (bytes) = 1

------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767

------ Messages: Limits --------
max queues system wide = 448
max size of message (bytes) = 8192
default max size of queue (bytes) = 16384

# ipcs -u

------ Shared Memory Status --------
segments allocated 0
pages allocated 0
pages resident  0
pages swapped   0
Swap performance: 0 attempts	 0 successes

------ Semaphore Status --------
used arrays = 128
allocated semaphores = 256

------ Messages: Status --------
allocated queues = 0
used headers = 0
used space = 0 bytes





Interesting.  I have exhausted all the available semaphores.

Though "ipcs -s -t" gives last access date and "ipcs -s -i 4161663" other useful
information, I did not find how I can make sure I can release a semaphore.
Well, hmm...  I remove all of them:

# ipcs -s -t | cut -f1 -d ' ' | grep '[0-9]' | cat | xargs -I{} ipcrm -s {}




Rerunning the test suite worked fine afterwards.



# ipcs -u

------ Shared Memory Status --------
segments allocated 0
pages allocated 0
pages resident  0
pages swapped   0
Swap performance: 0 attempts	 0 successes

------ Semaphore Status --------
used arrays = 3
allocated semaphores = 6

------ Messages: Status --------
allocated queues = 0
used headers = 0
used space = 0 bytes


OK, fine.
Problem solved.




I just wanted to mention the fact, in case the recent issues with Xref:
header fields on a slave server also ate your semaphores...
Do not forget to have a look at what "ipcs" reports on your slave server.

-- 
Julien ÉLIE

« – Je suis Acidenitrix, le bras droit de Ségrégationnix, le chef
    du quartier droit du village voisin.
  – Et mon pied gauche, tu l'as vu ?… » (Astérix)



More information about the inn-workers mailing list