tech-kern archive

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

Re: increase softint_bytes




can't this be fixed by making it dynamic?

  It's not easy because the return value of softint_establish() is
made from this area's address. As you know, the value is keep by each driver.

  I'm sorry. I misread kern_softint.c. The return value is not directly point to
the area, but it's offset of the area, so it would be easy to resize it.

  I'll try to modify the code to do auto-resize.

 It'll take a little time to write this change. And, it's low level
and important code, so it will take a time to test the stability
before sending pullup request. So,

 0) Apply the following change to -current.

--------------------------------
Index: kern_softint.c
===================================================================
RCS file: /cvsroot/src/sys/kern/kern_softint.c,v
retrieving revision 1.43
diff -u -p -r1.43 kern_softint.c
--- kern_softint.c	4 Jul 2016 04:20:14 -0000	1.43
+++ kern_softint.c	21 Nov 2017 06:41:35 -0000
@@ -217,7 +217,7 @@ typedef struct softcpu {
static void softint_thread(void *); -u_int softint_bytes = 8192;
+u_int		softint_bytes = 16384;
 u_int		softint_timing;
 static u_int	softint_max;
 static kmutex_t	softint_lock;
--------------------------------

 1) Sent the pullup request to netbsd-8

 2) Write auto-resize code and commit.

 3) If it's stable, send the pullup request to netbsd-8.


 OK?

--
-----------------------------------------------
                SAITOH Masanobu (msaitoh%execsw.org@localhost
                                 msaitoh%netbsd.org@localhost)



Home | Main Index | Thread Index | Old Index