Hi
when copying file on a usb disk connected to a mips card there are many interrupts issued
before transfert
# cat /proc/interrupts
CPU0
4: 0 ADI fusiv gpio
6: 4899 ADI fusiv serial
9: 15275 ADI fusiv timer
10: 22261 ADI fusiv timerPulse
13: 33 ADI fusiv eth1
14: 84 ADI fusiv eth0
17: 11146 ADI fusiv dsp
21: 11147 ADI fusiv dsp1
25: 17858 ADI fusiv wifi0
30: 0 ADI fusiv peri_ap
31: 3057 ADI fusiv bmap
35: 866 ADI fusiv ohci_hcd:usb1, ehci_hcd:usb2
36: 0 ADI fusiv atmap
after transfert
# cat /proc/interrupts
CPU0
4: 0 ADI fusiv gpio
6: 5605 ADI fusiv serial
9: 166974 ADI fusiv timer
10: 325639 ADI fusiv timerPulse
13: 33 ADI fusiv eth1
14: 70125 ADI fusiv eth0
17: 162845 ADI fusiv dsp
21: 162845 ADI fusiv dsp1
25: 347722 ADI fusiv wifi0
30: 0 ADI fusiv peri_ap
31: 3057 ADI fusiv bmap
35: 1587561 ADI fusiv ohci_hcd:usb1, ehci_hcd:usb2
36: 0 ADI fusiv atmap
why these modules are issuying so many interrupts
is there some hard problems or configuration problems
Any comment is welcome
parameters
how big is the file? is it read from the net or from disk? is the file system on the disk mounted as synchronous (with sync option) which would write very small blocks but is safer, if you disconnect the disk? which file system do you use? do you use the disk for other things (system disk, open files or programs, temporary files, swap space) at the same time; the memory pressure could cause data pushed out which has to be read again later on? what else is on your usb? i don't know your timer frequency: how long did the operation take; how many irqs/second occured? which kernel version?
the card is used as samba
the card is used as samba server for an USB hard disk so with a Windows PC file is copied on SAMBA share ( the usb hard disk)
file size is 500 M and it takes about 671 (1171099
interrupts) secondes to copy a file
the share is a FAT32 partition mounted without sync
the disk is not used as swap or for temporary files
nothing else on usb
kernel version is 2.6.15
# cat /proc/cpuinfo
system type : ADI Fusiv Core
processor : 0
cpu model : Lexra LX4189 V0.0
BogoMIPS : 199.47
wait instruction : no
microsecond timers : no
tlb_entries : 64
extra interrupt vector : no
hardware watchpoint : no
ASEs implemented :
VCED exceptions : not available
VCEI exceptions : not available
# cat /proc/mounts
rootfs / rootfs rw 0 0
cramfs /mnt/cramfs cramfs_mainfs ro 0 0
/proc /proc proc rw,nodiratime 0 0
usbfs /proc/bus/usb usbfs rw 0 0
/dev/mtdblock1 /mnt/ffs/A jffs2 rw,sync,noatime 0 0
/sys /sys sysfs rw 0 0
/dev/sda5 /mnt/usb/B vfat rw,nodiratime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1 0 0
/dev/sda6 /mnt/usb/C fuseblk rw,user_id=0,group_id=0,allow_other 0 0
# cat /proc/version
Linux version 2.6.15 #1 Mon Apr 20 17:03:58 CEST 2009
# cat /proc/bus/usb/devices
T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=480 MxCh= 1
B: Alloc= 0/800 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 2.00 Cls=09(hub ) Sub=00 Prot=01 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.15 ehci_hcd
S: Product=EHCI Host Controller
S: SerialNumber=vox160 ehci
K: urbnumberIN =19
K: urbnumberOUT =6
K: urbnumber =25
K: urbBytesIN =1125
K: urbBytesOUT =0
K: TotalurbnumberIN =19
K: TotalurbnumberOUT =6
K: TotalBytesIN =1125
K: TotalBytesOUT =0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=256ms
T: Bus=02 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 2 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=1058 ProdID=1100 Rev= 1.65
S: Manufacturer=Western Digital
S: Product=My Book
S: SerialNumber=57442D574341535630303230363137
K: urbnumberIN =393
K: urbnumberOUT =158
K: urbnumber =551
K: urbBytesIN =6263960
K: urbBytesOUT =4836
K: TotalurbnumberIN =412
K: TotalurbnumberOUT =164
K: TotalBytesIN =6265085
K: TotalBytesOUT =4836
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 1
B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0
D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0000 ProdID=0000 Rev= 2.06
S: Manufacturer=Linux 2.6.15 ohci_hcd
S: Product=ADI VOX160 OHCI
S: SerialNumber=vox160 ohci
K: urbnumberIN =28
K: urbnumberOUT =8
K: urbnumber =36
K: urbBytesIN =1157
K: urbBytesOUT =0
K: TotalurbnumberIN =440
K: TotalurbnumberOUT =172
K: TotalBytesIN =6266242
K: TotalBytesOUT =4836
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub
E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms