MySQL Forums
Forum List  »  MyISAM

repetitive I/O during select
Posted by: mARK bLOORE
Date: May 10, 2006 04:59PM

I used strace on the mysqld thread doing the following, and got a strange result.

SELECT *
FROM results0047
WHERE `query`
IN (
SELECT id
FROM items
WHERE state = 'deleted'
)
LIMIT 10

here is a small part of the strace output:

lseek(106, 89035280, SEEK_SET) = 89035280
read(106, "\3\0L\0\0\376.\340\21\0?\0file:///", 20) = 20
pread(106, "\0\376.\340\21\0?\0file:///var/storage/visu"..., 76, 89035284) = 76
lseek(106, 89035280, SEEK_SET) = 89035280
read(106, "\3\0L\0\0\376.\340\21\0?\0file:///", 20) = 20
pread(106, "\0\376.\340\21\0?\0file:///var/storage/visu"..., 76, 89035284) = 76

I.e., it reads the same location over and over, quite rapidly, at least hundreds of times. It does keep incrementing the address, but slowly. The processor spends about 98% of its time in disk-wait state.
I don't know what file it is reading, or even whether it is a file, but the items table row length is 79, and that table does have those file URLs in it.

Can anyone tell me what is happening here?



Edited 1 time(s). Last edit at 05/10/2006 05:11PM by mARK bLOORE.

Options: ReplyQuote


Subject
Views
Written By
Posted
repetitive I/O during select
2641
May 10, 2006 04:59PM
1643
May 16, 2006 04:29PM
1632
May 17, 2006 02:51AM
1657
May 17, 2006 03:36PM
1608
May 17, 2006 04:06PM
1582
May 18, 2006 09:01AM
1589
May 18, 2006 11:23AM
1641
May 19, 2006 01:33AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.