Thread View: news.software.nntp
4 messages
4 total messages
Started by Geoff Brozny
Thu, 09 Jul 2009 17:10
slow expireover
Author: Geoff Brozny
Date: Thu, 09 Jul 2009 17:10
Date: Thu, 09 Jul 2009 17:10
106 lines
5118 bytes
5118 bytes
Hello, recently I setup a new reader box that replaced one that promptly
failed on me, I'm using the exact same config from the old server on the new
one, the only difference is I added two additional CNFS buffers for the
article spool, still using tradindexed for the overview. Expireover seems to
be taking the whole day:
expireover start Wed Jul 8 00:36:56 EDT 2009: (
-Z/var/log/news/expire.lowmark)
expireover end Wed Jul 8 18:16:42 EDT 2009
lowmarkrenumber begin Wed Jul 8 18:16:42 EDT 2009:
(/var/log/news/expire.lowmark)
lowmarkrenumber end Wed Jul 8 18:16:42 EDT 2009
I attached an strace to see what it was doing, and I see a lot of this:
open("/overview/group.index", O_RDWR|O_CREAT, 0664) = 20
fstat(20, {st_mode=S_IFREG|0664, st_size=5382152, ...}) = 0
fcntl(20, F_GETFD) = 0
fcntl(20, F_SETFD, FD_CLOEXEC) = 0
mmap(NULL, 5382152, PROT_READ|PROT_WRITE, MAP_SHARED, 20, 0) =
0x2b025a683000
fcntl(20, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=4192832, len=88})
= 0
open("/overview/d/a/debian.arm.IDX", O_RDWR|O_CREAT, 0664) = 21
fstat(21, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
fcntl(21, F_GETFD) = 0
fcntl(21, F_SETFD, FD_CLOEXEC) = 0
open("/overview/d/a/debian.arm.DAT", O_RDWR|O_CREAT|O_APPEND, 0664) = 22
fcntl(22, F_GETFD) = 0
fcntl(22, F_SETFD, FD_CLOEXEC) = 0
unlink("/overview/d/a/debian.arm.IDX-NEW") = -1 ENOENT (No such file or
directory)
unlink("/overview/d/a/debian.arm.DAT-NEW") = -1 ENOENT (No such file or
directory)
open("/overview/d/a/debian.arm.IDX-NEW", O_RDWR|O_CREAT, 0664) = 23
fstat(23, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
fcntl(23, F_GETFD) = 0
fcntl(23, F_SETFD, FD_CLOEXEC) = 0
open("/overview/d/a/debian.arm.DAT-NEW", O_RDWR|O_CREAT|O_APPEND, 0664) = 24
fcntl(24, F_GETFD) = 0
fcntl(24, F_SETFD, FD_CLOEXEC) = 0
fstat(21, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
fstat(22, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
close(23) = 0
close(24) = 0
msync(0x2b025aa82000, 4096, MS_ASYNC) = 0
close(21) = 0
close(22) = 0
rename("/overview/d/a/debian.arm.IDX", "/overview/d/a/debian.arm.IDX-BAK") =
0
rename("/overview/d/a/debian.arm.IDX-NEW", "/overview/d/a/debian.arm.IDX") =
0
rename("/overview/d/a/debian.arm.DAT-NEW", "/overview/d/a/debian.arm.DAT") =
0
unlink("/overview/d/a/debian.arm.IDX-BAK") = 0
msync(0x2b025aa82000, 4096, MS_ASYNC) = 0
fcntl(20, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=4192832, len=88})
= 0
munmap(0x2b025a683000, 5382152) = 0
close(20) = 0
open("/overview/group.index", O_RDWR|O_CREAT, 0664) = 20
fstat(20, {st_mode=S_IFREG|0664, st_size=5382152, ...}) = 0
fcntl(20, F_GETFD) = 0
fcntl(20, F_SETFD, FD_CLOEXEC) = 0
mmap(NULL, 5382152, PROT_READ|PROT_WRITE, MAP_SHARED, 20, 0) =
0x2b025a683000
fcntl(20, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=4192920, len=88})
= 0
open("/overview/d/b/c/debian.bugs.closed.IDX", O_RDWR|O_CREAT, 0664
<unfinished ...>
This is is mainly what it is doing:
pwrite(23,
"_\372\v\0\0\0\0\0\f\1\0\0\0\0\0\0k]NJ\0\0\0\0\0\0\0\0\0\0\0\0"..., 56,
137480) = 56
write(24, "63161\tRe: [Haskell-cafe] type me"..., 403) = 403
lseek(24, 0, SEEK_CUR) = 785662
pwrite(23,
"k\373\v\0\0\0\0\0\223\1\0\0\0\0\0\0k]NJ\0\0\0\0\0\0\0\0\0\0\0\0"..., 56,
137536) = 56
write(24, "63162\tRe: [Haskell-cafe] type me"..., 345) = 345
lseek(24, 0, SEEK_CUR) = 786007
pwrite(23,
"\376\374\v\0\0\0\0\0Y\1\0\0\0\0\0\0l]NJ\0\0\0\0\0\0\0\0\0\0\0\0"..., 56,
137592) = 56
write(24, "63163\tRe: [Haskell-cafe] Haskell"..., 308) = 308
lseek(24, 0, SEEK_CUR) = 786315
The system is not running out of memory, and is not getting into the swap at
all. On my other system that is basically the same setup, it takes
expireover only 1 hr to complete. Any ideas what could be wrong?
thanks,
geoff
Re: slow expireover
Author: Alexander Bartolich
Date: Thu, 09 Jul 2009 23:27
Date: Thu, 09 Jul 2009 23:27
28 lines
2306 bytes
2306 bytes
Geoff Brozny wrote: > Hello, recently I setup a new reader box that replaced one that promptly > failed on me, I'm using the exact same config from the old server on the new > one, the only difference is I added two additional CNFS buffers for the > article spool, Did you stop and start the server to initialize the buffers? > still using tradindexed for the overview. What OS and what file system do you use? > Expireover seems to be taking the whole day: > [...] > The system is not running out of memory, and is not getting into the > swap at all. > On my other system that is basically the same setup, it takes > expireover only 1 hr to complete. Any ideas what could be wrong? I suggest to let "vmstat 60" run in a separate terminal. This should tell about - time spent in user mode (problem with INN or corrupted data) - time spent in system mode (problem with file system) - time spent waiting for IO (problem with hardware or driver) - how many context switches and interrupts occur -- seq 100 | sed 's/.*/Romani Ite Domum./'
Re: slow expireover
Author: Geoff Brozny
Date: Thu, 09 Jul 2009 23:35
Date: Thu, 09 Jul 2009 23:35
43 lines
2575 bytes
2575 bytes
Alexander Bartolich wrote: > Geoff Brozny wrote: >> Hello, recently I setup a new reader box that replaced one that promptly >> failed on me, I'm using the exact same config from the old server on the new >> one, the only difference is I added two additional CNFS buffers for the >> article spool, > > Did you stop and start the server to initialize the buffers? Yep, the additional buffers initialized at the same time as all the others at the time this server was setup last week, then I fed all the old articles over from my other reader server to this new one. > >> still using tradindexed for the overview. > > What OS and what file system do you use? CentOS 5.3, ext3 > >> Expireover seems to be taking the whole day: >> [...] >> The system is not running out of memory, and is not getting into the >> swap at all. >> On my other system that is basically the same setup, it takes >> expireover only 1 hr to complete. Any ideas what could be wrong? > > I suggest to let "vmstat 60" run in a separate terminal. > This should tell about > - time spent in user mode (problem with INN or corrupted data) > - time spent in system mode (problem with file system) > - time spent waiting for IO (problem with hardware or driver) > - how many context switches and interrupts occur > Will give it a try, thanks. It did finish a bit quicker today, it finished around 2:15pm, instead of 6:15pm like yesterday. thanks, geoff
Re: slow expireover
Author: Geoff Brozny
Date: Fri, 10 Jul 2009 13:46
Date: Fri, 10 Jul 2009 13:46
25 lines
1743 bytes
1743 bytes
"Alexander Bartolich" <alexander.bartolich@gmx.at> wrote in message news:h35ucr$4aq$1@news.albasani.net... > > I suggest to let "vmstat 60" run in a separate terminal. > This should tell about > - time spent in user mode (problem with INN or corrupted data) > - time spent in system mode (problem with file system) > - time spent waiting for IO (problem with hardware or driver) > - how many context switches and interrupts occur > here is the output: http://wiggum.glorb.com/usenet/vmstat.PNG All the numbers are lower then on the other server that completed in an hr, this one as of right now is only about 32% though the groups in the active file. thanks, geoff
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads