| To: | Dmitry Yusupov <dmitry_yus@xxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] NETLINK_UESTABLISHED notifier event |
| From: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
| Date: | Fri, 8 Apr 2005 07:32:31 +1000 |
| Cc: | Mike Christie <michaelc@xxxxxxxxxxx>, netdev@xxxxxxxxxxx, davem@xxxxxxxxxxxxx |
| In-reply-to: | <1112826385.16753.99.camel@beastie> |
| References: | <E1DJ0YI-0003PR-00@gondolin.me.apana.org.au> <42540CF3.7070501@cs.wisc.edu> <20050406212906.GA24775@gondor.apana.org.au> <1112823442.16753.68.camel@beastie> <20050406220417.GA4443@gondor.apana.org.au> <1112826385.16753.99.camel@beastie> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.6+20040907i |
On Wed, Apr 06, 2005 at 03:26:25PM -0700, Dmitry Yusupov wrote: > > Messages from kernel are asynchronous and there are no alloc_skb on "up" > calls. It is "mempooled out" on interface level. (see Open-iSCSI > interface). Messages to kernel requires copy_from_user to newly > allocated skb, here is where we need sk_allocation bit set. Those > messages are synchronous from daemon perspective. If "down" call fails, > we will re-try later or take some other management action. We assuming > that later OOM-killer will free some memory for us and atomic allocation > will succeed eventually. I presume you only need to send one message at a time of a fixed size. Would it better to always have an skb allocated for the socket so that we don't need to allocate at sendmsg time? Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt |
| Previous by Date: | Re: atomic_dec_and_test for child dst needed in dst_destroy?, Herbert Xu |
|---|---|
| Next by Date: | Re: [PATCH 2.6.12-rc2] bonding: partially back out dev_set_mac_address, Jay Vosburgh |
| Previous by Thread: | Re: [PATCH] NETLINK_UESTABLISHED notifier event, Dmitry Yusupov |
| Next by Thread: | Re: [PATCH] NETLINK_UESTABLISHED notifier event, Dmitry Yusupov |
| Indexes: | [Date] [Thread] [Top] [All Lists] |