Google summer code 2016 project ideas

2016-03-01 Thread Charles Cui
Hi Christos, This is Charles Cui from Tsinghua University, China. I am pretty interested in the ideas listed in GSOC 2016 page on NetBSD, especially the idea "Get the open source POSIX test suite working on NetBSD". For my PhD program in Tsinghua University, I focus on operat

Google summer code 2016 project ideas

2016-03-01 Thread Charles Cui
Hi Christos, Thanks for your reply! Requiring kernel modifications is even interesting to me. I also have some experiences in improving kernel mechanisms like spin locks and scheduling subsystem( in Linux and BSD system). It would be very existing to see my code is merged into the main source

Re: Google summer code 2016 project ideas

2016-03-02 Thread Charles Cui
Thanks Christos for the input, I will follow your advices. 2016-03-02 7:50 GMT-08:00 Christos Zoulas : > In article < > ca+sxe9tzcrg4c4wwbd7fkjjmpjg7cqzwtrrcxudi6ural8y...@mail.gmail.com>, > Charles Cui wrote: > >-=-=-=-=-=- > > > >Hi Christos, > >

Re: Google summer code 2016 project ideas

2016-03-03 Thread Charles Cui
Thanks Christos, I will follow your advices. 2016-03-02 7:50 GMT-08:00 Christos Zoulas : > In article < > ca+sxe9tzcrg4c4wwbd7fkjjmpjg7cqzwtrrcxudi6ural8y...@mail.gmail.com>, > Charles Cui wrote: > >-=-=-=-=-=- > > > >Hi Christos, > > > &g

Re: Google summer code 2016 project ideas

2016-03-06 Thread Charles Cui
-03-02 13:14 GMT-08:00 Charles Cui : > Thanks Christos for the input, I will follow your advices. > > 2016-03-02 7:50 GMT-08:00 Christos Zoulas : > >> In article < >> ca+sxe9tzcrg4c4wwbd7fkjjmpjg7cqzwtrrcxudi6ural8y...@mail.gmail.com>, >> Charles Cui wrote:

Re: Google summer code 2016 project ideas

2016-03-07 Thread Charles Cui
Hi Christos, Thanks for sharing the patch and the advise for the project! I will study your patch carefully and use it to test the system. Thanks, Christos. 2016-03-06 17:02 GMT-08:00 Christos Zoulas : > In article sozuyu_1rzuu9lyjhmeff2qmwrm9e05d-...@mail.gmail.com>, > Ch

Re: Google summer code 2016 project ideas

2016-03-09 Thread Charles Cui
generate file format problem and let the tests generate results? Thanks , Charles. 2016-03-07 10:31 GMT-08:00 Charles Cui : > Hi Christos, > >Thanks for sharing the patch and the advise for the project! > I will study your patch carefully and use it to test the system. > > &g

Re: Google summer code 2016 project ideas

2016-03-09 Thread Charles Cui
Sure, I will focus on easy ones, and will notify you once I have updates. 2016-03-09 12:21 GMT-08:00 Christos Zoulas : > On Mar 9, 11:02am, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: Google summer code 2016 project ideas > > | Hi Christos, > | > |it

Re: Google summer code 2016 project ideas

2016-03-09 Thread Charles Cui
Hi Christos, it turns out I forget to issue make clean before making the project. Now I can see a lot of PASS in the log. But there are still some compiling errors, Should we focus on this first? Thanks, Charles. 2016-03-09 9:57 GMT-08:00 Charles Cui : > I am using netbsd 6.0, I w

Re: Google summer code 2016 project ideas

2016-03-09 Thread Charles Cui
I am using netbsd 6.0, I will looked at the log to see why. Thanks,Charles 2016-03-09 5:53 GMT-08:00 Christos Zoulas : > On Mar 8, 9:53pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: Google summer code 2016 project ideas > > | Hi Christos, > | > |

Re: Google summer code 2016 project ideas

2016-03-09 Thread Charles Cui
building script, but my initial thought is to build the cross compiler first, if the cross compiler tool set contains gmake on netbsd, can I just build posix test suite by replacing the default make(the binary can then execute on netbsd)? Thanks, Charles. 2016-03-09 13:21 GMT-08:00 Charles Cui

Re: Google summer code 2016 project ideas

2016-03-12 Thread Charles Cui
existing system (like linux) and tailor to fit netbsd? Thanks, Charles 2016-03-10 9:48 GMT-08:00 Charles Cui : > Thanks for your input, I will give up this method. > > > Charles. > > 2016-03-09 20:08 GMT-08:00 Christos Zoulas : >> >> On Mar 9, 7:16pm, charles.cui1...

Re: Google summer code 2016 project ideas

2016-03-14 Thread Charles Cui
Got it, thanks. 2016-03-12 21:31 GMT-08:00 Christos Zoulas : > On Mar 12, 8:28pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: Google summer code 2016 project ideas > > | Hi Christos, > | > |My current focus is to classify the errors when building posix

Re: Google summer code 2016 project ideas

2016-03-19 Thread Charles Cui
Hi Christos, I have uploaded my proposal, you guys should be able to see it now. Please feel free to comment it. Thanks, Charles 2016-03-14 15:37 GMT-07:00 Charles Cui : > Got it, thanks. > > 2016-03-12 21:31 GMT-08:00 Christos Zoulas : >> On Mar 12, 8:28pm, charles.cu

Re: Google summer code 2016 project ideas

2016-03-20 Thread Charles Cui
here is the link: https://docs.google.com/document/d/1zUd2LRm9vj-NgwLzKGcdOZ9Cd1YGpSmdBF0KLp_8Eek/edit?usp=sharing 2016-03-17 20:48 GMT-07:00 Charles Cui : > Hi Christos, > >I have uploaded my proposal, you guys should be able to see it now. > Please feel free to comment it.

honor to join NetBSD community

2016-04-24 Thread Charles Cui
Hi Christos and NetBSD community, Thanks for selecting me for GSOC this year. It 's my honor to join NetBSD community and contribute my code! I will try my best to complete the task. In terms of work needs to be done in the current stage (community communications), I think I can start to prep

Re: honor to join NetBSD community

2016-04-24 Thread Charles Cui
Thanks Martin for your reply! 2016-04-24 13:13 GMT-07:00 Martin Husemann : > On Sun, Apr 24, 2016 at 01:00:12PM -0700, Charles Cui wrote: >> Another thing is my mentor >> for this project, mentors listed in the website are crispytoast and >> martin, while I contacted

Re: honor to join NetBSD community

2016-04-27 Thread Charles Cui
code, jump to the declaration or usages because netbsd has a huge code base. I am looking for a way to work efficiently with netbsd, your best practices would be helpful. Thanks, Charles 2016-04-25 9:39 GMT-07:00 Charles Cui : > Thanks guys, I will follow the link to complete the task as soon as

Re: honor to join NetBSD community

2016-04-28 Thread Charles Cui
thanks guys for all your advices! Those are really helpful. I will try to find a way that works for me best. Will consult and discuss with you guys when having new problems. Thanks Charles. 2016-04-28 8:31 GMT-07:00 Joerg Sonnenberger : > On Wed, Apr 27, 2016 at 06:11:28PM -0700, Charles

Re: honor to join NetBSD community

2016-04-29 Thread Charles Cui
ndprotoent' PerlSock_endprotoent(); ^ reentr.h:920:30: warning: implicit declaration of function 'endservent_r' [-Wimplicit-function-declaration] # define endservent() (endservent_r(&PL_reentrant_buffer->_servent_data) == 0 ? 1 : 0) ^

next steps for GSOC 2016

2016-05-02 Thread Charles Cui
Hi Christos and Martin, I have set up my environments for development. I guess the next step is to start to be familiar with the code base of the POSIX test benchmarks and related kernel subsystems in NetBSD. I think a lot of problems will be found during this phase. Does this plan sound good

refine of the GSOC project

2016-05-05 Thread Charles Cui
Hi guys, I spend some time on researching the project and have some results. Based on the results, I can split the project into multiple parts and expect to complete the project in divide-and-concur way. I found a lot of building errors in the posix benchmark are because of compiler settings.

Re: refine of the GSOC project

2016-05-07 Thread Charles Cui
ng me know nxr.netbsd.org, I already used it. 2016-05-06 5:46 GMT-07:00 Christos Zoulas : > On May 5, 10:14pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: refine of the GSOC project > > | Hi guys, > | > |I spend some time on researching the project and have so

Re: refine of the GSOC project

2016-05-08 Thread Charles Cui
R_="${this}" "$@" ${target}; }; _makedirtarget distrib/sets installsets INSTALLDIR=/ INSTALLSETS= *** Error code 1 Stop. nbmake: stopped in /usr/src ERROR: Failed to make installworld to / *** BUILD ABORTED *** 2016-05-08 7:24 GMT-07:00 Christos Zoulas : > On May 7, 8:5

Re: refine of the GSOC project

2016-05-08 Thread Charles Cui
still not updated! I am wondering which step system header files are copied to the system path? 2016-05-08 9:48 GMT-07:00 Christos Zoulas : > On May 8, 9:37am, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: refine of the GSOC project > > | Following is the error when

Re: refine of the GSOC project

2016-05-08 Thread Charles Cui
Some updates. After installing userland, the header files are updated. I made the mistake in the last email because of timezone issues, but I am still wondering why I cannot install userland after rebooting into the new kernel. 2016-05-08 9:56 GMT-07:00 Charles Cui : > Yes, I build tools loca

Re: refine of the GSOC project

2016-05-08 Thread Charles Cui
ui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: refine of the GSOC project > > | Yes, I build tools locally first. > | Before reading this file, I switched to the old kernel > | and install userland and kernel simultaneously(no reboot). > | And the system told me it installed suc

Re: refine of the GSOC project

2016-05-08 Thread Charles Cui
: /usr/obj/tooldir.NetBSD-7.99.29-i386/bin/nbpax: not found 2016-05-08 12:08 GMT-07:00 Christos Zoulas : > On May 8, 11:47am, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: refine of the GSOC project > > | Yes, I followed the instructions. > | I verified whether a file h

Re: refine of the GSOC project

2016-05-09 Thread Charles Cui
Thanks guys for all your advices! I will try the methods proposed by you guys and let you know once I have new results. Right now, my way (install kernel and userland together) works (It takes kernel and libc updates and generate expected results.) This is the updated list (much shorter than befor

Re: refine of the GSOC project

2016-05-09 Thread Charles Cui
Sure, I can do it. To make it clear, besides this list, you want another list that failed the test because of it is not used in a standard way or compiler settings? 2016-05-09 7:27 GMT-07:00 Christos Zoulas : > In article > , > Charles Cui wrote: >>Thanks guys for all your advi

Re: refine of the GSOC project

2016-05-09 Thread Charles Cui
Got it, I can start to collecting it and post you the information once I have. Thanks, Charles 2016-05-09 10:07 GMT-07:00 Christos Zoulas : > On May 9, 10:03am, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: refine of the GSOC project > > | Sure, I can do it. &g

Re: refine of the GSOC project

2016-05-10 Thread Charles Cui
that cause this issue? This is not quite related to my projects, but definitely is good to let the community know. *** FINAL System shutdown message from root@ *** System going down IMMEDIATELY power button pressed 2016-05-09 11:20 GMT-07:00 Charles Cui : > Got it, I can start to collectin

Re: refine of the GSOC project

2016-05-11 Thread Charles Cui
Oh, yes, this sounds really reasonable to me. I will try to disable ACPI, thanks! 2016-05-11 7:59 GMT-07:00 Christos Zoulas : > In article > , > Charles Cui wrote: >>some updates of building kernel. >>I spend some time these days to investigate the kernel compiling &

Re: refine of the GSOC project

2016-05-11 Thread Charles Cui
1 10:15 GMT-07:00 Charles Cui : > Oh, yes, this sounds really reasonable to me. > I will try to disable ACPI, thanks! > > > 2016-05-11 7:59 GMT-07:00 Christos Zoulas : > > In article do49+oh_qc7dx4o+uewd...@mail.gmail.com>, > > Charles Cui wrote: > >>some u

Re: refine of the GSOC project

2016-05-12 Thread Charles Cui
tp://nxr.netbsd.org/xref/src/sys/sys/signal.h#151>#*endif* /* _XOPEN_SOURCE_EXTENDED || XOPEN_SOURCE >= 500 || _NETBSD_SOURCE */ 2016-05-12 9:57 GMT-07:00 Christos Zoulas : > On May 12, 9:22am, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: refine of the GSOC proje

Re: refine of the GSOC project

2016-05-14 Thread Charles Cui
700, Charles Cui wrote: > > Hi Christos, > > > >I got the new list post below. Note that the second list is build with > > -D_NETBSD_SOURCE -lpthread -lrt -lm > > If you have a proper NetBSD build environment (native or cross compilation) > then -D_NETBSD_SOURCE

Re: refine of the GSOC project

2016-05-14 Thread Charles Cui
flag is not necessary for us, then problem is solved. 2016-05-13 6:43 GMT-07:00 Christos Zoulas : > On May 12, 9:50pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: refine of the GSOC project > > | Well, your saying of _NETBSD_SOURCE is defined by default see

[PATCH]: expose SIGRTMIN and SIGRTMAX

2016-05-15 Thread Charles Cui
Hi Guys, I have attached a patch which is used to expose SIGRTMIN and SIGRTMAX to user land. This will remove a lot of errors related with those macros in posix test benchmark (http://posixtest.sourceforge.net/). Comments are welcomed. Besides this mail list, I believe it would be useful to al

Re: refine of the GSOC project

2016-05-15 Thread Charles Cui
E defined to compile. > > christos > > On May 14, 2016, at 9:18 PM, Charles Cui > wrote: > > let's call this small program as test.c. > > There is no problem when executing the command gcc test.c, > > However, when executing as gcc test.c -D_POSIX_C_SOURCE=2

Re: [PATCH]: expose SIGRTMIN and SIGRTMAX

2016-05-15 Thread Charles Cui
16, at 00:20, Martin Husemann wrote: > > > > On Sat, May 14, 2016 at 10:48:23PM -0700, Charles Cui wrote: > >> Hi Guys, > >> > >> I have attached a patch which is used to expose SIGRTMIN and SIGRTMAX > to > >> user land. This will remove a lot of e

pthread library related

2016-05-18 Thread Charles Cui
Hi guys, I spent some time on pthread libraries in netbsd which is a big part in my project, and have some questions to ask. Taking pthread_barrierattr_getpshared, pthread_barrierattr_setpshared as an example. These functions are used to getting and setting barrierattr data structure. netbsd

Re: pthread library related

2016-05-19 Thread Charles Cui
Thanks Martin and Soda! How about other functions? Does it make sense to follow POSIX standard to implement the missing functions in netbsd? 2016-05-18 19:00 GMT-07:00 SODA Noriyuki : > > On Thu, 19 May 2016 01:13:09 +0200, > Martin Husemann said: > > > int pthread_barrierattr_setpshar

Re: pthread library related

2016-05-19 Thread Charles Cui
Thanks Christos, Martin and SODA for these advices and documents! I will start to get familiar with freebsd designs and try to contribute as much as possible to netbsd community. 2016-05-19 10:36 GMT-07:00 Christos Zoulas : > On May 18, 3:40pm, charles.cui1...@gmail.com (Charles Cui) wr

Re: pthread library related

2016-05-26 Thread Charles Cui
turns _POSIX_TIMER_MAX in sysconf system call, where can I find the logic to enforce this number when user land allocates more times than this value? Let me know if there are any concerns. Thanks, Charles. 2016-05-26 7:30 GMT-07:00 Christos Zoulas : > On May 19, 5:03pm, charles.cui1...@gmail.com

Re: pthread library related

2016-05-26 Thread Charles Cui
l send you guys the patch of the porting work shortly. 2016-05-26 15:02 GMT-07:00 Christos Zoulas : > On May 26, 2:08pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: pthread library related > > 1. SIGRTMIN/SIGRTMAX should not be exposed (the kernel does not support

Re: pthread library related

2016-05-27 Thread Charles Cui
Please see my comments inline. 2016-05-26 14:35 GMT-07:00 Christos Zoulas : > On May 26, 2:08pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: pthread library related > > | Hi Christos, > | > |I am studying the pthread libraries in netbsd, and have

Re: timers related

2016-05-29 Thread Charles Cui
Thanks for these information! I will implement these missing features asap. 2016-05-29 6:46 GMT-07:00 Christos Zoulas : > On May 28, 11:28pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: timers related > > | HI guys, > | > | I have 3 timers related macro

Re: pthread library related

2016-05-30 Thread Charles Cui
logic for _SC_SEM_NSEMS_MAX. I have tested 3 of these patches using posix benchmark suite, and they worked. I will add formal unit tests and man pages later. Please provide comments if you have. Thanks, Charles. 2016-05-26 15:27 GMT-07:00 Charles Cui : > Yes, I can do 2 and 5, and fix 3. >

Re: pthread library related

2016-05-30 Thread Charles Cui
Hi Kamil, _SC_SEM_NSEMS_MAX is not the same with SEM_VALUE_MAX. The first one is used to limit the number of sems for a process, while the second is used to set the initial value for a semaphore. 2016-05-26 16:25 GMT-07:00 Kamil Rytarowski : > > > On 27.05.2016 00:02, Christos Zoulas wrote: >

Re: pthread library related

2016-05-31 Thread Charles Cui
No, using atomic_inc / atomic_dec for p_nsem is wrong! Let's think about the multithreading case. Let's use 2 threads A and B in the same process as an example. Assume p_nsem is not reaching the limit, but only one slot is left. A and B will each read the p_nsem separately. There will be probabi

Re: pthread library related

2016-05-31 Thread Charles Cui
overhead. 2016-05-30 13:30 GMT-07:00 Martin Husemann : > On Mon, May 30, 2016 at 01:25:34PM -0700, Charles Cui wrote: > > there is one remaining slot. And each of them will increase p_nsem by one > > using atomic_inc, the results are we have 1 slot overused, but the error > is

Re: pthread library related

2016-05-31 Thread Charles Cui
good to know atomic_inc_uint_nv is implemented using cas. I will update the patch and send you guys later (being careful about the format) Thanks Charles 2016-05-30 13:46 GMT-07:00 Christos Zoulas : > On May 30, 1:43pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: p

Re: pthread library related

2016-06-01 Thread Charles Cui
Hi guys, I have attached patches based on comments from Christos. The new patch used atomic_inc_uint_nv to limit the number of sems used by each process. I have tested these patches. They worked. 2016-05-30 14:19 GMT-07:00 Charles Cui : > good to know atomic_inc_uint_nv is implemented us

Re: pthread library related

2016-06-02 Thread Charles Cui
If there are no comments for these two patches. I will move forward for other parts. Sounds good? 2016-06-01 19:28 GMT-07:00 Charles Cui : > Hi guys, > >I have attached patches based on comments from Christos. > The new patch used atomic_inc_uint_nv to limit the number of &g

timers related

2016-06-03 Thread Charles Cui
HI guys, I have 3 timers related macro to be added, which are _SC_CPUTIME, _SC_THREAD_CPUTIME and _SC_DELAYTIMER_MAX. the first and second are set to be 200112L in freebsd. I am wondering what's the meaning of those macros? and what are the cases to use these macros? I am thinking of where to

Re: timers related

2016-06-03 Thread Charles Cui
Yes, sure. I will finish it as soon as possible. And will let you know if I encounter new problems. Thanks, Charles 2016-06-03 16:59 GMT-07:00 Christos Zoulas : > On Jun 3, 4:37pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: timers related > > | Thanks Zafer

Re: timers related

2016-06-04 Thread Charles Cui
GMT-07:00 Zafer Aydoğan : > You can find the FreeBSD sources at: > > http://src.illumos.org/source/ > or > https://grok.dragonflybsd.org/ > or > http://bxr.su/ > > 2016-05-30 4:28 GMT+02:00 Charles Cui : > > Thanks for these information! > > I wil

Re: timers related

2016-06-05 Thread Charles Cui
Sure, I will keep an eye on them. Thanks, Charles. 2016-06-05 10:18 GMT-07:00 Christos Zoulas : > On Jun 5, 9:53am, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: timers related > > | Hi Christos, > | > |I have completed the man pages for bsd_signal,

Re: timers related

2016-06-05 Thread Charles Cui
17:05 GMT-07:00 Christos Zoulas : > On Jun 3, 5:01pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: timers related > > | Yes, sure. I will finish it as soon as possible. > | And will let you know if I encounter new problems. > > Yes, and for all the other p

Re: timers related

2016-06-05 Thread Charles Cui
Thanks! 2016-06-05 14:00 GMT-07:00 Christos Zoulas : > On Jun 5, 1:14pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: timers related > > | Hi Christos, > | > |One quick question about this commit. > | > https://github.com/IIJ-

Re: timers related

2016-06-05 Thread Charles Cui
Hi Christos, One quick question about this commit. https://github.com/IIJ-NetBSD/netbsd-src/commit/ef38d5736b7367bff9aba260f532e5b24728b224 why do we need this line twice? +./usr/share/man/cat3/bsd_signal.0 comp-c-catman .cat 2016-06-05 12:21 GMT-07:00 Charles Cui : > Sure, I will keep

Re: PTHREAD_STACK_MIN support

2016-06-07 Thread Charles Cui
Cool! that's a really good idea, I will see whether SIGIO can replace SIGPOLL totally. Thanks for the advice! Charles. 2016-06-07 19:44 GMT-07:00 Christos Zoulas : > On Jun 7, 7:33pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: PTHREAD_STACK_MIN support > &

PTHREAD_STACK_MIN support

2016-06-07 Thread Charles Cui
Hi Christos, I have PTHREAD_STACK_MIN supported and attached patch for your review. My next step is to focus on the remaining part of signal (SIGPOLL, _SC_REALTIME_SIGNALS and _SC_SIGQUEUE_MAX). Seems we need much more significant changes in this part. Thanks, Charles 0003-add-PTHREAD_STAC

_SC_SIGQUEUE_MAX

2016-06-09 Thread Charles Cui
Hi guys, I am trying to add the support of SIGQUEUE_MAX, which is the maximal number of real time signals to the target process. There are several ways to send a signal to a process like, kill, raise, etc. I am wondering whether all real time signals should be only sent via sigqueue? (in which

Re: _SC_SIGQUEUE_MAX

2016-06-11 Thread Charles Cui
Please see my comments inline. 2016-06-10 16:29 GMT-07:00 Christos Zoulas : > On Jun 10, 2:37pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: _SC_SIGQUEUE_MAX > > | Thanks, Christos, I will read FreeBSD related code carefully. > > In the meantime also: >

Re: _SC_SIGQUEUE_MAX

2016-06-13 Thread Charles Cui
. After adding the unit tests, I will continue the work of real time signals. Thanks, Charles. 2016-06-10 16:29 GMT-07:00 Christos Zoulas : > On Jun 10, 2:37pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: _SC_SIGQUEUE_MAX > > | Thanks, Christos, I will read Fre

Re: _SC_SIGQUEUE_MAX

2016-06-14 Thread Charles Cui
2016-06-14 14:14 GMT-07:00 Christos Zoulas : > On Jun 14, 1:29pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: _SC_SIGQUEUE_MAX > > | 1. add unit tests for ad's work to make sure it works well. > | 2. may add some changes according to your comments

Re: _SC_SIGQUEUE_MAX

2016-06-14 Thread Charles Cui
I got it. Thanks Christos. 2016-06-14 15:43 GMT-07:00 Christos Zoulas : > On Jun 14, 2:25pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: _SC_SIGQUEUE_MAX > > | One thing I guess you can commit is pthread_condattr_getclock and it's > | man pages. >

Re: _SC_SIGQUEUE_MAX

2016-06-14 Thread Charles Cui
Hi Christos, Please find my comments below. 2016-06-14 9:50 GMT-07:00 Christos Zoulas : > In article < > ca+sxe9s4by1klxgxuwwgdv+0_z-balpbg2woeg18tfyg1yw...@mail.gmail.com>, > Charles Cui wrote: > > > >Let me know if there are problems. In the next several days

Re: _SC_SIGQUEUE_MAX

2016-06-17 Thread Charles Cui
Thanks, I will complete my test cases as soon as possible. 2016-06-14 16:02 GMT-07:00 Christos Zoulas : > On Jun 14, 3:50pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: _SC_SIGQUEUE_MAX > > | I got it. Thanks Christos. > > And here it is: > > http://

Re: _SC_SIGQUEUE_MAX

2016-06-17 Thread Charles Cui
Yeah, that makes sense. I will see how to construct such a unit test(or call it benchmark) Thanks, Charles. 2016-06-17 10:44 GMT-07:00 Christos Zoulas : > On Jun 16, 9:28pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: _SC_SIGQUEUE_MAX > > | Hi Christos, > |

Re: _SC_SIGQUEUE_MAX

2016-06-19 Thread Charles Cui
arles Cui : > Thanks, I will complete my test cases as soon as possible. > > 2016-06-14 16:02 GMT-07:00 Christos Zoulas : > >> On Jun 14, 3:50pm, charles.cui1...@gmail.com (Charles Cui) wrote: >> -- Subject: Re: _SC_SIGQUEUE_MAX >> >> | I got it. Thanks C

Re: _SC_SIGQUEUE_MAX

2016-06-21 Thread Charles Cui
com (Charles Cui) wrote: > -- Subject: Re: _SC_SIGQUEUE_MAX > > | I have write a draft of the benchmark, but have not verified successfully > | on the patched system. > | The idea is to > | 1. create a mutexattr data structure and set pthread priority protect > | protocol.

Re: _SC_SIGQUEUE_MAX

2016-06-22 Thread Charles Cui
:00 Christos Zoulas : > On Jun 17, 10:45am, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: _SC_SIGQUEUE_MAX > > | Yeah, that makes sense. I will see how to construct such a unit test(or > | call it benchmark) > > How's that coming along? Also can you plea

Re: _SC_SIGQUEUE_MAX

2016-06-22 Thread Charles Cui
provide the test? Thanks Charles. 2016-06-22 14:53 GMT-07:00 Christos Zoulas : > On Jun 22, 1:23pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: _SC_SIGQUEUE_MAX > > | Any comments on the tests? > > Yes, I am not finished yet testing and looking. Here are some

Re: _SC_SIGQUEUE_MAX

2016-06-22 Thread Charles Cui
Any comments on the tests? 2016-06-21 14:36 GMT-07:00 Charles Cui : > Hi Christos, > > Some updates on the tests of priority protect. > You need to apply my new patch here, > https://github.com/ycui1984/posixtestsuite/blob/master/patches/PRIOPROTECT_AND_GETCLOCK/0005-extend-sc

Re: _SC_SIGQUEUE_MAX

2016-06-24 Thread Charles Cui
1:23pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: _SC_SIGQUEUE_MAX > > | Any comments on the tests? > > Yes, I am not finished yet testing and looking. Here are some preliminary > ones: > > 1. You've added more fields to sched_params. This should no

Re: _SC_SIGQUEUE_MAX

2016-06-25 Thread Charles Cui
Hi Christos, This test generates a deadlock. t1 holds resource m1 and waits for m2, t2 holds resource m2 and waits for m1. Is this the result that you want to generate? 2016-06-24 6:05 GMT-07:00 Christos Zoulas : > In article 7dw...@mail.gmail.com>, > Charles Cu

Re: _SC_SIGQUEUE_MAX

2016-06-26 Thread Charles Cui
Yeah, I will try to construct a new test. Thanks, Charles. 2016-06-22 15:28 GMT-07:00 Christos Zoulas : > On Jun 22, 3:11pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: _SC_SIGQUEUE_MAX > > | Thanks Christos for these comments! > | In terms of the new fi

Re: _SC_SIGQUEUE_MAX

2016-07-01 Thread Charles Cui
/posixtestsuite/blob/master/patches/PRIOPROTECT_AND_GETCLOCK/0007-unit-test-for-scheduling-proof-of-priority-ceiling.patch Thanks, Charles 2016-06-27 12:45 GMT+08:00 Charles Cui : > I will think about how to do it. > > > Thanks Charles > > 2016-06-25 6:32 GMT-07:00 Christos Zo

Re: _SC_SIGQUEUE_MAX

2016-07-03 Thread Charles Cui
ink that > realtime signal support is a bit too much for GSoC, what part of mmap are > you suggesting to do? > > thanks! > > christos > > On Jul 3, 2016, at 6:33 PM, Charles Cui wrote: > > thanks! What's the next part do you want me to focus? signal, mmap, > S

Re: _SC_SIGQUEUE_MAX

2016-07-04 Thread Charles Cui
Well, in this case, what I suggest is that I try both things at the same time and see which part is more easily for me to make a breakthrough. Sounds good? I will let you guys know my progress. Thanks, Charles. 2016-07-04 23:24 GMT+08:00 Christos Zoulas : > On Jul 4, 4:34pm, mar...@duskware.de

Re: _SC_SIGQUEUE_MAX

2016-07-05 Thread Charles Cui
man pages for sched_protect https://github.com/ycui1984/posixtestsuite/commit/50450adf1a890965440d6e1bf9c6f113a247867e Thanks Charles 2016-07-05 7:30 GMT+08:00 Charles Cui : > Well, in this case, what I suggest is that I try both things at the same > time and > see which part is mo

Re: updates?

2016-07-16 Thread Charles Cui
Thanks for your feedbacks, I will try to fix these problems as soon as possible. Thanks, Charles. 2016-07-14 8:20 GMT-07:00 Christos Zoulas : > On Jul 14, 5:09pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: updates? > > | Hi Christos, > | > |actual

Re: updates?

2016-07-17 Thread Charles Cui
real time signal number, the earlier to be consumed.) Thanks, Charles. 2016-07-15 21:15 GMT-07:00 Charles Cui : > Thanks for your feedbacks, I will try to fix these problems as soon as > possible. > > > > Thanks, Charles. > > 2016-07-14 8:20 GMT-07:00 Christos Zoulas :

Re: updates?

2016-07-19 Thread Charles Cui
I will study FreeBSD logic first and share with you guys. 2016-07-17 6:39 GMT-07:00 Christos Zoulas : > On Jul 17, 2:02am, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: updates? > > | Hi Christos, > | > | I considered the questions that you asked. > |

sigqueue code paths

2016-07-19 Thread Charles Cui
Hi guys, I spent some time investigating the sigqueue code path, which is used by realtime signals, but I am confused about some logics, please provide comments if you have specific knowledge about this part. I followed the call chain path of sigqueue, and pretty confident about how a signal is

Re: updates?

2016-07-20 Thread Charles Cui
Please see my comments below. 2016-07-20 7:47 GMT-07:00 Christos Zoulas : > In article jbuco6x1ct4+7fjwq...@mail.gmail.com>, > Charles Cui wrote: > >-=-=-=-=-=- > > > >I will study FreeBSD logic first and share with you guys. > > > >2016-07-17 6:39 GMT-

Re: sigqueue code paths

2016-07-20 Thread Charles Cui
Thanks Robert for your understanding. In conclusion, you think the signals are consumed at the time of context switch. I will keep this information in mind and see how all functions are connected. Thanks Charles 2016-07-20 9:15 GMT-07:00 Robert Elz : > Date:Wed, 20 Jul 2016 15:28:13

Re: updates?

2016-07-21 Thread Charles Cui
2016-07-21 10:16 GMT-07:00 Christos Zoulas : > In article < > ca+sxe9uj7lg40xyt0g1v-cznxwkrnk79t0xcd4d2-qdlrma...@mail.gmail.com>, > Charles Cui wrote: > > >I did not quite understand it. > > > https://github.com/ycui1984/posixtestsuite/blob/master/patches/R

Re: updates?

2016-07-21 Thread Charles Cui
Christos Zoulas : > On Jul 21, 10:33am, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: updates? > > | Got it, I will fix it. > > Thanks! > > | OK, I can write a program as you designed. Right now I have netbsd and > | Linux environments, and > | can verify t

Re: updates?

2016-07-22 Thread Charles Cui
-07-17 7:11 GMT-07:00 Charles Cui : > I will study FreeBSD logic first and share with you guys. > > 2016-07-17 6:39 GMT-07:00 Christos Zoulas : > >> On Jul 17, 2:02am, charles.cui1...@gmail.com (Charles Cui) wrote: >> -- Subject: Re: updates? >> >> | Hi Ch

Re: updates?

2016-07-24 Thread Charles Cui
2016-07-23 3:10 GMT-07:00 Christos Zoulas : > In article < > ca+sxe9u+2snfnc7yov3c_b52dtcbek-9ie25+kwzosh7fnz...@mail.gmail.com>, > Charles Cui wrote: > >-=-=-=-=-=- > > > >Hi Christos, > >Here is a improved patch based on your code review, > > >

Re: updates?

2016-07-24 Thread Charles Cui
. Let me know if there are any problems. 2016-07-23 12:15 GMT-07:00 Charles Cui : > > 2016-07-23 3:10 GMT-07:00 Christos Zoulas : > >> In article < >> ca+sxe9u+2snfnc7yov3c_b52dtcbek-9ie25+kwzosh7fnz...@mail.gmail.com>, >> Charles Cui wrote: >> >-=-=-

Re: updates?

2016-07-24 Thread Charles Cui
I have attached the new version. But it seems both Linux and and netbsd will process signal with large signo number first. 2016-07-23 23:44 GMT-07:00 Christos Zoulas : > On Jul 23, 8:03pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: updates? > > | Hi Christos, &

Re: updates?

2016-07-24 Thread Charles Cui
Sure, I can implement the sigorder function and will get back to you soon. Thanks, Charles. 2016-07-24 20:52 GMT-07:00 Christos Zoulas : > On Jul 24, 3:00pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: updates? > > | I have attached the new version. > | Bu

Re: updates?

2016-07-26 Thread Charles Cui
25, 8:13pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: updates? > > | I have attached the test_signal v2 version, which fills the signal > | reorder function. After we fix the bug that you found, > | we can use this program to test. > > Great; I think that

Re: updates?

2016-07-26 Thread Charles Cui
I have attached the test_signal v2 version, which fills the signal reorder function. After we fix the bug that you found, we can use this program to test. 2016-07-25 16:03 GMT-07:00 Charles Cui : > I have see how to debug this. Hopefully my understanding for signal > delivery is enou

Re: updates?

2016-07-26 Thread Charles Cui
Hi Christos, This patch fixed the bug you found https://github.com/ycui1984/posixtestsuite/blob/master/patches/REALTIME_SIGNAL/0006-bug-fix-for-real-time-signals.patch 2016-07-25 21:33 GMT-07:00 Charles Cui : > yeah, it seems correct, > my solution use another array, so space complicity

Re: updates?

2016-07-27 Thread Charles Cui
-27 3:10 GMT-07:00 Christos Zoulas : > On Jul 26, 8:15pm, charles.cui1...@gmail.com (Charles Cui) wrote: > -- Subject: Re: updates? > > | Hi Christos, > | This patch fixed the bug you found > | > https://github.com/ycui1984/posixtestsuite/blob/master/patches/REALTIME_SIGNAL/

  1   2   >