signals, syscalls and schedule()

2016-11-24 Thread zerons
Hi all. I have several doubts about signals and syscalls. When a signal handler gets involved? About signal, I think I have figured it out, maybe? I checked the source code, and found that when call `prepare_exit_to_usermode` -> `exit_to_usermode_loop`, then `do_signal` gets involved. So when

Re: Fwd: Custom Linux Kernel Scheduler issue

2016-11-24 Thread Kenneth Adam Miller
Thank you Greg. I got at least my unit tests to execute about as fast as my host when I turned on KVM support with qemu while testing. I can't test With the dedicated hardware or software yet, but now I have another test case to run by changing the provisioned memory. On Nov 24, 2016 1:47 PM,

Re: Fwd: Custom Linux Kernel Scheduler issue

2016-11-24 Thread Kenneth Adam Miller
So, I ran perf on my host and it came back far more true. The top consumers of time were all atomics and some function called sse3, which I believe is a super fast memcpy implementation provided the the arch. In addition, all the highest time consumers are within my image- it stayed out of the

Re: Fwd: Custom Linux Kernel Scheduler issue

2016-11-24 Thread Greg KH
On Thu, Nov 24, 2016 at 01:05:47PM -0500, Kenneth Adam Miller wrote: > So, I ran perf on my host and it came back far more true. The top consumers of > time were all atomics and some function called sse3, which I believe is a > super > fast memcpy implementation provided the the arch. In

Re: Fwd: Custom Linux Kernel Scheduler issue

2016-11-24 Thread Greg KH
On Thu, Nov 24, 2016 at 10:31:18AM -0500, Kenneth Adam Miller wrote: > On Nov 24, 2016 2:18 AM, "Greg KH" wrote: > > > > On Thu, Nov 24, 2016 at 02:01:41AM -0500, Kenneth Adam Miller wrote: > > > Hello, > > > > > > > > > I have a scheduler issue in two different respects: > > > >

Fwd: Custom Linux Kernel Scheduler issue

2016-11-24 Thread Kenneth Adam Miller
On Nov 24, 2016 2:18 AM, "Greg KH" wrote: > > On Thu, Nov 24, 2016 at 02:01:41AM -0500, Kenneth Adam Miller wrote: > > Hello, > > > > > > I have a scheduler issue in two different respects: > > > > 1) I have a process that is supposed to tight loop, and it is being > > given very

Re: Fwd: Custom Linux Kernel Scheduler issue

2016-11-24 Thread Kenneth Adam Miller
On Thu, Nov 24, 2016 at 11:13 AM, Greg KH wrote: > On Thu, Nov 24, 2016 at 10:31:18AM -0500, Kenneth Adam Miller wrote: >> On Nov 24, 2016 2:18 AM, "Greg KH" wrote: >> > >> > On Thu, Nov 24, 2016 at 02:01:41AM -0500, Kenneth Adam Miller wrote: >> > > Hello, >> > >