Re: netstat: sysctl: net.route.0.0.dump.0: Cannot allocate memor

看板FB_current作者時間12年前 (2014/02/28 21:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串7/7 (看更多)
Hiroki Sato wrote: > ia> Hiroki Sato wrote: > ia> > Hm, how about the attached one? > ia> > > ia> > I think the cause is just a race when length of the sysctl's output > ia> > is changed in kernel after the buffer allocation in userspace, not > ia> > memory shortage. Size of the routing table can quickly change. > ia> > ia> You are correct. It's growing at about 9000 entries per second (I > ia> wish it were faster). > ia> > ia> This is what the output looks like now. I guess I'm not the average > ia> case. > > Can you try the attached patch? It will attempt to enlarge the > buffer every retry. I think the routing table grows too fast. It still fails. Ian -- Ian Freislich _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1J48_JM9 (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1J48_JM9 (FB_current)