Oh, you meant that allocating a huge buffer might cause problems elsewhere.
I don't think that was the cause of the entire slowdown, certainly not on
a 256MB machine with nothing else running.
> >Do you know how to limit the size of AF_UNIX packets? I would like to try
>
> You set it by hand: set sock opt SO_SNDBUF plus sysclt_*mem_max.
>
> For stream AF_UNIX sockets you fallback to 1 page if the allocation fails
> so you don't know. For dgram sockets you'll have to do the full allocation
> in one packet or you'll wait.
What I meant was, how to make a stream socket behave like a pipe and consume
only 4k at a time. I'll try [rw]mem_max, but when I tweaked the skb_alloc(?)
call in af_unix.o, the write() still gobbled as much as it could.
zw
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/