about mysqlslap can not connect the mysql on osv

2018-04-23 Thread wang Yu
1、scripts/build image=mysql 2、scripts/run.py -nv to start mysql server on osv OSv v0.24-511-ge60339d eth0: 192.168.122.76 3、on host i use mysqlslap to test the benchmark mysqlslap -h 192.168.122.76 -P 3306 --concurrency=100--iterations=1 --create-schema='mysql' --query='select * from user;'

[PATCH v2 1/2] Fix no output boot_time event "TLS initialization"

2018-04-12 Thread Wang Yu
fter patch, ... disk read (real mode): 50.71ms, (+50.71ms) TLS initialization: 83.72ms, (+33.01ms) .init functions: 89.20ms, (+5.48ms) SMP launched: 90.56ms, (+1.36ms) VFS initialized: 95.76ms, (+5.20ms) ... Signed-off-by: Wang Yu <yuwang.yuw...@alib

[PATCH v2 2/2] add boot_time event of uncompress lzloader.elf

2018-04-12 Thread Wang Yu
: 82.69ms, (+5.04ms) SMP launched: 83.72ms, (+1.03ms) VFS initialized: 88.67ms, (+4.95ms) ... Signed-off-by: Wang Yu <yuw...@linux.alibaba.com> --- arch/x64/arch-setup.cc | 5 + arch/x64/boot16.S | 7 ++- include/osv/boot.hh| 2 +- loader.cc

[PATCH v2 1/2] Fix no output boot_time event "TLS initialization"

2018-04-12 Thread Wang Yu
fter patch, ... disk read (real mode): 50.71ms, (+50.71ms) TLS initialization: 83.72ms, (+33.01ms) .init functions: 89.20ms, (+5.48ms) SMP launched: 90.56ms, (+1.36ms) VFS initialized: 95.76ms, (+5.20ms) ... Signed-off-by: Wang Yu <yuwang.yuw...@alib

Re: [PATCH] fix no output boot_time event "TLS initialization"

2018-04-11 Thread Wang Yu
-109,7 +109,8 @@ void premain() } setup_tls(inittab); -boot_time.event("TLS initialization"); +debug("After TLS initialization"); +boot_time.event(2, "TLS initialization"); for (auto init = inittab.start; init < inittab.start + inittab.count; ++init) {

Re: [PATCH] fix no output boot_time event "TLS initialization"

2018-04-11 Thread Wang Yu
在 18/4/12 上午10:22, Waldek Kozaczuk 写道: Hi. I reviewed this and other patch and replied on the the mailing list. Have my replies not reached you ?. I haven't recieved it, maybe i am not in the mail list, and you re send reviewed mail to me? -- You received this message because you are

Re: [PATCH] add boot_time event of uncompress lzloader.elf

2018-04-11 Thread Wang Yu
pls review 在 18/4/9 下午8:46, Wang Yu 写道: sometimes i found uncompres cost serival times, so add boot_time event of uncompress lzloader.elf after patch ... disk read (real mode): 45.09ms, (+45.09ms) uncompress lzloader.elf: 76.90ms, (+31.81ms) TLS initialization

Re: [PATCH] fix no output boot_time event "TLS initialization"

2018-04-11 Thread Wang Yu
no one review? 在 18/4/9 下午8:37, Wang Yu 写道: before patch boot with --bootchart, "TLS initialization" is not output ... disk read (real mode): 50.71ms, (+50.71ms) .init functions: 89.20ms, (+5.48ms) SMP launched: 90.56ms, (+1.36ms) VFS i

[PATCH] add boot_time event of uncompress lzloader.elf

2018-04-09 Thread Wang Yu
: 82.69ms, (+5.04ms) SMP launched: 83.72ms, (+1.03ms) VFS initialized: 88.67ms, (+4.95ms) ... Signed-off-by: Wang Yu <yuw...@linux.alibaba.com> --- arch/x64/arch-setup.cc | 5 + arch/x64/boot16.S | 7 ++- include/osv/boot.hh| 2 +- loader.cc

[PATCH] fix no output boot_time event "TLS initialization"

2018-04-09 Thread Wang Yu
fter patch, ... disk read (real mode): 50.71ms, (+50.71ms) TLS initialization: 83.72ms, (+33.01ms) .init functions: 89.20ms, (+5.48ms) SMP launched: 90.56ms, (+1.36ms) VFS initialized: 95.76ms, (+5.20ms) ... Signed-off-by: Wang Yu <yuw...@linu

[PATCH] fix no output boot_time event "TLS initialization"

2018-04-09 Thread Wang Yu
fter patch, ... disk read (real mode): 50.71ms, (+50.71ms) TLS initialization: 83.72ms, (+33.01ms) .init functions: 89.20ms, (+5.48ms) SMP launched: 90.56ms, (+1.36ms) VFS initialized: 95.76ms, (+5.20ms) ... Signed-off-by: Wang Yu <yuw...@linu

how to optimize startup time on osv

2018-01-19 Thread wang Yu
i have cut some nouse option, i.e. zfs but the startup time about 110ms, i want to < 50ms, how to optimize it? OSv v0.24-479-g7ce5eb7 1 CPUs detected Firmware vendor: Seabios console=serial bsd: initializing - done VFS: mounting ramfs at / VFS: mounting devfs at /dev net: initializing -

how to download file/directory from httpserver?

2018-01-17 Thread wang Yu
now i use curl -X POST http://192.168.122.89:8000/file/js.jar -Fname=@js.jar to upload the js.jar to osv "/" and i want to download/get js.jar, how i do? i try curl -X GET http://192.168.122.89:8000/file/js.jar, but failed -- You received this message because you are subscribed to the Google

Re: how to run some .so or jar

2017-11-28 Thread wang Yu
2017-11-28 19:56 GMT+08:00 wang Yu <yuwang668...@gmail.com>: > i am fresh man in osv, and i have a question about it; > if we have some dyminic library .so, i want to how to run? > for example, a.so have main enter, and it want to call the func_b() > in b.so(we don't want to r

how to run some .so or jar

2017-11-28 Thread wang Yu
i am fresh man in osv, and i have a question about it; if we have some dyminic library .so, i want to how to run? for example, a.so have main enter, and it want to call the func_b() in b.so(we don't want to recompile it) a.c --->a.so extern void func_b(void) void main(void) { ... func_b();