mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* pc stalling when processing large files [2.6.9]
@ 2004-12-23 11:09 Folkert van Heusden
  2004-12-23 13:11 ` bert hubert
  0 siblings, 1 reply; 5+ messages in thread
From: Folkert van Heusden @ 2004-12-23 11:09 UTC (permalink / raw)
  To: linux-kernel

Hi,

I have a P-III with 384MB of ram running kernel 2.6.9. It has one IDE disk.
When processing a large mailbox with sa-learn (the bayes learn tool of
spamassassin), the system gets very unresponsive. Like: when typing commands
on it via ssh, the system doesn't respond several times for seconds (1 or 2
maybe 3). Then when I continue to type, it gets a little better but when
idling for say 10 seconds it gets unresponsive again. The large mailbox is
aprox 200MB.
My .config can be found at: http://keetweej.vanheusden.com/~folkert/config


Folkert van Heusden

Op zoek naar een IT of Finance baan? Mail me voor de mogelijkheden!
+------------------------------------------------------------------+
|UNIX admin? Then give MultiTail (http://vanheusden.com/multitail/)|
|a try, it brings monitoring logfiles to a different level! See    |
|http://vanheusden.com/multitail/features.html for a feature list. |
+------------------------------------------= www.unixsoftware.nl =-+


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pc stalling when processing large files [2.6.9]
  2004-12-23 11:09 pc stalling when processing large files [2.6.9] Folkert van Heusden
@ 2004-12-23 13:11 ` bert hubert
  2004-12-23 13:49   ` Folkert van Heusden
  0 siblings, 1 reply; 5+ messages in thread
From: bert hubert @ 2004-12-23 13:11 UTC (permalink / raw)
  To: Folkert van Heusden; +Cc: linux-kernel

On Thu, Dec 23, 2004 at 12:09:10PM +0100, Folkert van Heusden wrote:
> Hi,
> 
> I have a P-III with 384MB of ram running kernel 2.6.9. It has one IDE disk.
> When processing a large mailbox with sa-learn (the bayes learn tool of
> spamassassin), the system gets very unresponsive. Like: when typing commands
> on it via ssh, the system doesn't respond several times for seconds (1 or 2
> maybe 3). Then when I continue to type, it gets a little better but when
> idling for say 10 seconds it gets unresponsive again. The large mailbox is
> aprox 200MB.

Sounds obvious, but can you show the output of hdparm /dev/hda ? You have
IDE DMA support enabled, but does the kernel recognize your IDE controller?

What you describe vould very well be caused by DMA being switched off for
IDE.

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pc stalling when processing large files [2.6.9]
  2004-12-23 13:11 ` bert hubert
@ 2004-12-23 13:49   ` Folkert van Heusden
  2004-12-23 13:50     ` bert hubert
  0 siblings, 1 reply; 5+ messages in thread
From: Folkert van Heusden @ 2004-12-23 13:49 UTC (permalink / raw)
  To: bert hubert; +Cc: linux-kernel

> > I have a P-III with 384MB of ram running kernel 2.6.9. It has one IDE disk.
> > When processing a large mailbox with sa-learn (the bayes learn tool of
> > spamassassin), the system gets very unresponsive. Like: when typing commands
> > on it via ssh, the system doesn't respond several times for seconds (1 or 2
> > maybe 3). Then when I continue to type, it gets a little better but when
> > idling for say 10 seconds it gets unresponsive again. The large mailbox is
> > aprox 200MB.
> Sounds obvious, but can you show the output of hdparm /dev/hda ? You have
> IDE DMA support enabled, but does the kernel recognize your IDE controller?

I thought it did. It's a via board.
/dev/hda:
 multcount    =  0 (off)
 IO_support   =  3 (32-bit w/sync)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    = 256 (on)
 geometry     = 39813/16/63, sectors = 20547841536, start = 0

> What you describe vould very well be caused by DMA being switched off for
> IDE.

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:07.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt82c686b (rev 40) IDE UDMA100 controller on pci0000:00:07.1
    ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
Probing IDE interface ide0...
hda: QUANTUM FIREBALLP AS20.5, ATA DISK drive
hdb: HL-DT-ST CD-ROM GCR-8520B, ATAPI CD/DVD-ROM drive
Using anticipatory io scheduler
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
hda: max request size: 128KiB
hda: 40132503 sectors (20547 MB) w/1902KiB Cache, CHS=39813/16/63, UDMA(100)
hda: cache flushes not supported
 /dev/ide/host0/bus0/target0/lun0: p1 p2 p3

At startup, this is executed:
/usr/sbin/hdparm -c 3 -d 1 -X 69 -u 1 /dev/hda
which gives:
/dev/hda:
 setting 32-bit IO_support flag to 3
 setting unmaskirq to 1 (on)
 setting using_dma to 1 (on)
 setting xfermode to 69 (UltraDMA mode5)
 IO_support   =  3 (32-bit w/sync)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)


Folkert van Heusden

Op zoek naar een IT of Finance baan? Mail me voor de mogelijkheden!
+------------------------------------------------------------------+
|UNIX admin? Then give MultiTail (http://vanheusden.com/multitail/)|
|a try, it brings monitoring logfiles to a different level! See    |
|http://vanheusden.com/multitail/features.html for a feature list. |
+------------------------------------------= www.unixsoftware.nl =-+


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pc stalling when processing large files [2.6.9]
  2004-12-23 13:49   ` Folkert van Heusden
@ 2004-12-23 13:50     ` bert hubert
  2004-12-23 15:48       ` Folkert van Heusden
  0 siblings, 1 reply; 5+ messages in thread
From: bert hubert @ 2004-12-23 13:50 UTC (permalink / raw)
  To: Folkert van Heusden; +Cc: linux-kernel

On Thu, Dec 23, 2004 at 02:49:15PM +0100, Folkert van Heusden wrote:
> /usr/sbin/hdparm -c 3 -d 1 -X 69 -u 1 /dev/hda

And if you remove that line, does that help?

Also, output of 'vmstat 1' during stalls would be helpful.

-- 
http://www.PowerDNS.com      Open source, database driven DNS Software 
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pc stalling when processing large files [2.6.9]
  2004-12-23 13:50     ` bert hubert
@ 2004-12-23 15:48       ` Folkert van Heusden
  0 siblings, 0 replies; 5+ messages in thread
From: Folkert van Heusden @ 2004-12-23 15:48 UTC (permalink / raw)
  To: bert hubert; +Cc: linux-kernel

> > /usr/sbin/hdparm -c 3 -d 1 -X 69 -u 1 /dev/hda
> And if you remove that line, does that help?

No since disk-i/o goes back to 3MB/s then.

> Also, output of 'vmstat 1' during stalls would be helpful.

procs -----------memory---------- ---swap-- -----io---- --system--
----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id
wa
 1 13 272232   1880   3752  19952   15    7     0     2    6    24  7  1 88
4
 0 14 272636   1236   3752  19900   68 1220    68  1408 1216   441 10  2  0
88
 0 12 272904    992   3752  19888   48 1356    48  1356 1205   225  4  2  0
94
 0 14 273800    584   3784  19788  540 3600   716  3608 3643   731  3  2  0
95
 0 17 273940    856   3792  19788  284  660   300   664 1202   313  0  3  0
97
 0 16 274068    840   3800  20072  296  796   588   860 1146   224  5  2  0
93
 0 15 274504   1232   3804  20284   48 1036   264  1036 1153   286  3  3  0
94
 0 20 277020   1344   3868  20908 1048 8212  1896  8508 7863  2125  6  3  0
91
 0 17 277688   1192   3868  20904    0 1484     0  1488 1208   236 11  2  0
87
 0 17 278728    680   3868  20884    0 1504     0  1548 1204   474  8  4  0
88
 0 16 279428   1392   3852  20980    0 1712   104  1716 1191   240  1  3  0
96
 0 19 280080   4964   3852  21112   32 1652   168  1652 1215   272 18  4  0
78
 0 14 280436   1376   3868  21112    0 1180     8  1460 1192   193 29  5  0
66
 1  9 280768   2144   3868  21112    4  940     4   940 1208   234  0  1  0
99
 0 15 281472   1032   3888  21044   32 1312    48  1316 1202   251  9  3  0
88
 2  7 282356   2628   3888  20948   16 1280    16  1284 1244   308 21  5  0
74
 0  9 282816    672   3888  20928    0 1000     0  1072 1182   212  9  3  0
88
 0 13 284020    848   3896  20664    0 3488     0  3816 3778   586  3  1  0
96
 0 13 284752    656   3896  20656    0 1488     0  1488 1201   284  4  2  0
94
 0 13 285768    720   3900  20656    0 1352     0  1356 1208   280  5  2  0
93
 0  9 286848   1688   3900  20544   64 5028    64  5028 1283   300  3  4  0
93
 0  9 288312   1504   3940  20348   32 3596   292  3632 1399   678 22 11  0
67
 0 21 288492    736   3944  19960   56 1096   300  1100 1209   248  8  3  0
89
 0 16 290128    992   3944  19960   32 2072    32  2076 1234   232  4  3  0
93
 0 10 293500    672   3936  19980   64 3376   136  3456 1236   290  8  4  0
88
 3 10 297412   1596   3836  18892    0 3912   184  3916 1493   355 27  9  0
64
 0 12 301468    736   3856  19008    8 4068   220  4140 1342   289 17  6  0
77
 0 13 305624    664   3876  19000   64 4176   128  4180 1308   307 10  6  0
84
 0 16 309084    664   3872  19068   92 3480   268  3824 1284   268 25  7  0
68
 0 12 317984    976   3776  18704  100 8908   348  9100 2635   542 25  6  0
69
 0 13 319692    792   3836  19716   36 1712  1160  1744 1241   300  6  5  0
89
 0 14 322012   1576   3904  20000  524 2412   900  2412 1254   414  4  4  0
92
 0 10 327280   1808   3912  19852 1700 5536  1712  5784 1725   448  7  3  0
90
 0 11 334216    720   3900  19780  224 6972   224  6976 1227   213 19  6  0
75
 0 10 335988   3928   3900  19008 2128 2112  2140  2112 1218   410 20  3  0
77


Folkert van Heusden

Op zoek naar een IT of Finance baan? Mail me voor de mogelijkheden!
+------------------------------------------------------------------+
|UNIX admin? Then give MultiTail (http://vanheusden.com/multitail/)|
|a try, it brings monitoring logfiles to a different level! See    |
|http://vanheusden.com/multitail/features.html for a feature list. |
+------------------------------------------= www.unixsoftware.nl =-+


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-12-23 15:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-23 11:09 pc stalling when processing large files [2.6.9] Folkert van Heusden
2004-12-23 13:11 ` bert hubert
2004-12-23 13:49   ` Folkert van Heusden
2004-12-23 13:50     ` bert hubert
2004-12-23 15:48       ` Folkert van Heusden

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®