Re: Unsupported hardware instructions?

2018-01-21 Thread Nadav Har'El
On Fri, Jan 19, 2018 at 8:05 PM, Geraldo Netto wrote: > Hello Friends, > > Interesting, if I pass "-cpu phenom" it boots clearly: > I think this is a qemu bug that was solved a while back - e.g., https://bugzilla.redhat.com/show_bug.cgi?id=1326721 > netto@spo01 ~/osv-clean $ sudo scripts/run.p

Re: [PATCH] Apache-Kafka: state that Apache ZooKeeper is required

2018-01-21 Thread Nadav Har'El
On Sat, Jan 20, 2018 at 7:13 PM, geraldo netto wrote: > Signed-off-by: geraldo netto > --- > apache-kafka/README | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/apache-kafka/README b/apache-kafka/README > index bae0c50..21d0aa3 100644 > --- a/apache-kafka/README > ++

Re: [PATCH] remove erjang due the following reasons: - the download url is from dropbox and is unavailable [1] - the last version of erjang implementation is dated from 2016 and it seems abandoned [2]

2018-01-21 Thread Nadav Har'El
I agree that this "Erjang" project looks pretty dead, theoretically we could still get it to work, by doing wget https://github.com/trifork/erjang/archive/master.zip unzip master.zip cd erjang-master ant But I tried it, and it didn't work, some sort of Perl error. I'm too lazy to find out why. So

Re: [PATCH] remove erjang due the following reasons: - the download url is from dropbox and is unavailable [1] - the last version of erjang implementation is dated from 2016 and it seems abandoned [2]

2018-01-21 Thread Nadav Har'El
I can't apply this patch because it uses "wget -c" from your previous patch which I did not apply yet... Can you please send a new patch that applies to master? Thanks. -- Nadav Har'El n...@scylladb.com On Sat, Jan 20, 2018 at 6:51 PM, geraldo netto wrote: > [1] https://dl.dropboxusercontent.c

Re: [PATCH] remove erjang due the following reasons: - the download url is from dropbox and is unavailable [1] - the last version of erjang implementation is dated from 2016 and it seems abandoned [2]

2018-01-21 Thread Geraldo Netto
Hello Nadav/All, Sure, btw, let me rebase other things too I did a lot of mess with my git commits So, I may take a while to review and re-submit all my changes Sorry for this Kind Regards, Geraldo Netto Sapere Aude => Non dvcor, dvco http://exdev.sf.net/ On 21 January 2018 at 11:24, Nadav Ha

how to fix arithmetic on pointer to void?

2018-01-21 Thread Geraldo Netto
Guys, I have run clang static analiser/cppcheck on OSv code and it came with issues One of them, is this arithmetic on pointer to void This is just a sample case: // fs/vfs/kern_physio.cc #include #include #include #include #include #include #include #include #include #include #inclu

Re: how to optimize startup time on osv

2018-01-21 Thread Waldek Kozaczuk
I am not the expert but looking at your bootchart timings it seems these 2 items take most time (~75%): disk read (real mode): 45.88ms, (+45.88ms) desire.init functions: 82.51ms, (+36.63ms) I am not sure what *desire.init functions* measures as it is not part of the standard OSV bootchart - y

Re: how to optimize startup time on osv

2018-01-21 Thread Waldek Kozaczuk
Also soon we will have ROFS (Read-Only FS) in OSv that should address some of shortcomings of ramfs. On Sunday, January 21, 2018 at 2:30:22 PM UTC-5, Waldek Kozaczuk wrote: > > I am not the expert but looking at your bootchart timings it seems these 2 > items take most time (~75%): > > disk rea

Re: how to fix arithmetic on pointer to void?

2018-01-21 Thread Nadav Har'El
On Sun, Jan 21, 2018 at 8:42 PM, Geraldo Netto wrote: > Guys, > > I have run clang static analiser/cppcheck on OSv code and it came with > issues > One of them, is this arithmetic on pointer to void > You're right, the standard says you cannot do pointer arithmetic on void*. But Gcc does support

Syscall stack switch and gdb reporting stack corrupted problem

2018-01-21 Thread Waldek Kozaczuk
Last couple of days I was trying to investigate why gdb reports stack is corrupted when backtracing. This is related to golang support and is the same issue that Hawxchen reported when troubleshooting some side effect of his patch addressing #808 (see this email exchange - https://groups.googl

Re: how to fix arithmetic on pointer to void?

2018-01-21 Thread Raphael S. Carvalho
On Sun, Jan 21, 2018 at 8:22 PM, Nadav Har'El wrote: > > On Sun, Jan 21, 2018 at 8:42 PM, Geraldo Netto > wrote: > >> Guys, >> >> I have run clang static analiser/cppcheck on OSv code and it came with >> issues >> One of them, is this arithmetic on pointer to void >> > > You're right, the standa

Re: how to fix arithmetic on pointer to void?

2018-01-21 Thread Geraldo Netto
Hello, Guys, I have uploaded to my sourceforge account the output of clang analysis: http://exdev.sourceforge.net/osv-clang/ Due the space constraints, I could not upload the ii files (the ones from the "Preprocessed File" column) We have a lot of case of this arithmetic on void, but also other

[PATCH] Fix code style issues in tests source code

2018-01-21 Thread Waldemar Kozaczuk
Fixed code style issues in tests source code mainly replaced tabs with spaces. Signed-off-by: Waldemar Kozaczuk --- tests/testrunner.cc | 2 +- tests/tst-eventfd.cc | 2 +- tests/tst-fs-link.cc | 20 +- tests/tst-libc-locking.cc | 145 ++-- tests/tst-rename.cc