Re: Serial stdio overwhelming interrupts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Liu Yu wrote:
Hi guys,

In my kvm machine, I use serial as its default stdio.
But when display a number of characters, e.g. cat a big ascii file, the serial always hangs as encount overwhelming interrupts, and then output a kernel log "serial8250: too much work for irq 42".

I found that the serial in qemu is primitive so that it generate a interrupt on every single character. This make it easier to reach the threshold of reporting "too much work".

I had to use the patch below to get this issue walked arroud.

Have you guys ever met the serial hanging problem before?

We had that some times in the beginning while we brought up interrupts.
But since that time it did never occur again and I thought we fixed it.
Maybe your use case of catting a file to it is stressing it now to a new extend triggering it again.

---
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c
index be95e55..af3e569 100644
--- a/drivers/serial/8250.c
+++ b/drivers/serial/8250.c
@@ -70,7 +70,7 @@ static unsigned int nr_uarts = CONFIG_SERIAL_8250_RUNTIME_UARTS;
 #define DEBUG_INTR(fmt...)	do { } while (0)
 #endif
-#define PASS_LIMIT 256
+#define PASS_LIMIT	65535
/*
  * We default to IRQ0 for the "no irq" hack.   Some

Best Regards.
Yu
N�����r��y���b�X��ǧv�^�)޺{.n�+����jir)���w*jg��������ݢj/���z�ޖ��2�ޙ���&�)ߡ�a�����G���h��j:+v���w�٥


--

Grüsse / regards, Christian Ehrhardt
IBM Linux Technology Center, Open Virtualization

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux