[go-nuts] Re: go1.6: memory usage too high

2017-03-22 Thread tpoisonooo
Well, size of all my face data is 222MB, not 716612. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, v

[go-nuts] Re: go1.6: memory usage too high

2017-03-22 Thread tpoisonooo
Thanks @Dave Cheney, I add 512MB `swap`, now Ubuntu would not kill Go application. But I still don't understand why `top` shows 17.5% memory usage. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receivi

[go-nuts] Re: go1.6: memory usage too high

2017-03-22 Thread tpoisonooo
I know that `top` is not report accurate memory usage. Now that Go application only use 222MB memory, why `top` shows 17.5% memory usage? >From Ubuntu 's point of view, my application uses too much memory. I think it is the reason why ubuntu would kill my process. -- You received this message

[go-nuts] go1.6: memory usage too high

2017-03-22 Thread tpoisonooo
I have nearly implemented a face recognition server on my nvdia tx1. It loads all face data from MYSQL, listen port, receive picture and return the nearest face's name. I use `top` to show how many memory this program used, like this; >top - 07:46:03 up 2 days, 5:55, 3 users, load average:

Re: [go-nuts] cgo1.7.1 arm: irregular execution time

2016-10-21 Thread tpoisonooo
在 2016年10月19日星期三 UTC+8下午9:19:01,Konstantin Khomoutov写道: > > On Tue, 18 Oct 2016 22:12:44 -0700 (PDT) > tpoisonooo > wrote: > > > My colleague gives me a `face_recognization.so`, > > `face_recognization.so` use `libcaffe.so`. > > I compiled it with cgo based

[go-nuts] cgo1.7.1 arm: irregular execution time

2016-10-19 Thread tpoisonooo
My colleague gives me a `face_recognization.so`, `face_recognization.so` use `libcaffe.so`. I compiled it with cgo based on arm. cgo code: package algo /* #include "load_so.h" #cgo CFLAGS: -std=gnu99 #cgo LDFLAGS: -ldl #cgo LDFLAGS: -L./ -L/usr/lib -L/usr/local/lib -L/us