Re: Why do processes with higher priority to be allocated more timeslice?

2011-09-26 Thread Mulyadi Santosa
Hi :) On Tue, Sep 27, 2011 at 09:07, Parmenides wrote: > Actually, a common characteristics of Linux's schedulers is that > timeslices will be longer with priorities raising . generally I agree with that :) > I am just curious > about why the the schedulers takes this policy. simply to say

Re: Why do processes with higher priority to be allocated more timeslice?

2011-09-26 Thread Parmenides
Hi Jeff, 2011/9/27 Jeff Donner : > Well, if it doesn't need more time then it doesn't matter what its priority > is, > when it goes to sleep waiting for some IO it yields back the > remainder of its time. You could give it as long a timeslice > as you like; it won't use more than it needs, becau

Re: Issue about setting interface flag on network device.

2011-09-26 Thread Mulyadi Santosa
On Mon, Sep 26, 2011 at 15:17, 陳國成 wrote: > Hi, > > I encounter a strange problem when using 2.6.30 kernel. > > There are two processes, one runs main1() and the other runs main2(). > Two processes are running simultaneously on uni-processor system. > Besides, eth0 is a proprietory ethernet driver

Re: Why do processes with higher priority to be allocated more timeslice?

2011-09-26 Thread Jeff Donner
On Mon, Sep 26, 2011 at 10:10 AM, Parmenides wrote: > 2011/9/26 Mulyadi Santosa : >>>Actually, the CFS scheduler which >>> is a new scheduler in Linux kernel also does the same thing. But, I >>> think this way does not fit with scheduler's principle. >> >> remember the keyword you ask? "fairness"?

Re: Fw: Automatic module insert in boot time

2011-09-26 Thread Yacob Hassidim
Hello Matt, Thank you for your answer. The driver is a simple one (hello) and does not require any hardware. Sincerely, Yacob Hassidim. - Original Message - From: "Matt Schulte" To: "Yacob Hassidim" Sent: Monday, September 26, 2011 6:59 PM Subject: Re: Fw: Automatic module insert i

Re: Why do processes with higher priority to be allocated more timeslice?

2011-09-26 Thread Parmenides
2011/9/26 Mulyadi Santosa : > Hi :) > >>Actually, the CFS scheduler which >> is a new scheduler in Linux kernel also does the same thing. But, I >> think this way does not fit with scheduler's principle. > > remember the keyword you ask? "fairness"? that is being  fair to all > processes but si

Re: CPU pinning

2011-09-26 Thread Peter Teoh
well, use the term "cpu affinity" when u google and u will find more info (correct) from others - my answer is not complete - there are situation where u can do tuning - read further here: http://honglus.blogspot.com/2011/03/tune-interrupt-and-process-cpu-affinity.html http://www.ibm.com/developer

Re: Including library in the Linux open source

2011-09-26 Thread Greg KH
On Mon, Sep 26, 2011 at 05:59:19PM +0530, Sahana B Adiga - ERS, HCL Tech wrote: > > Hi All, > > For a new storage hardware we have a Linux device driver that uses a > custom library for hardware interface. This h/w interface library is > an intellectual property. We want to share the Linux device

Including library in the Linux open source

2011-09-26 Thread Sahana B Adiga - ERS, HCL Tech
Hi All, For a new storage hardware we have a Linux device driver that uses a custom library for hardware interface. This h/w interface library is an intellectual property. We want to share the Linux device driver source code, but not the library source code. 1) Is it possible to add to the L

Fw: Automatic module insert in boot time

2011-09-26 Thread Yacob Hassidim
- Original Message - From: "Yacob Hassidim" To: "Mulyadi Santosa" Sent: Monday, September 26, 2011 2:51 PM Subject: Re: Automatic module insert in boot time > Hello Mulyadi, > > Thank you for your response. > > I read the best way to automatically insert a module is via the > /etc/mo

Re: CPU pinning

2011-09-26 Thread Kernel Piddu
Thanks so much for the detailed info. It's very comprehensive. Thanks for taking the time. On Sep 26, 2011, at 6:51 AM, Peter Teoh wrote: > On Fri, Sep 16, 2011 at 5:08 AM, Kernel Piddu wrote: >> >>> I have a multi processor system/machine and I would like dedicate a CPU >>> entirely to list

Re: CPU pinning

2011-09-26 Thread Peter Teoh
On Fri, Sep 16, 2011 at 5:08 AM, Kernel Piddu wrote: > > > I have a multi processor system/machine and I would like dedicate a CPU > > entirely to listen on to a port. > > I would greatly appreciate if you could tell me how this can be done. > > > > Thanks! > doing this in the kernel, is perhaps

generic-usb: probe of 0003:074D:3576.0002 failed with error -22

2011-09-26 Thread Stanislav Stratu
Hello, I have some problems with a USB headset with PTT functionality on it, the audio works well, but not the PTT. I attached error messages from different kernels, also the device's description. The insertion receive error: generic-usb: probe of 0003:074D:3576.0002 failed with error -22 and the P

Issue about setting interface flag on network device.

2011-09-26 Thread 陳國成
Hi, I encounter a strange problem when using 2.6.30 kernel. There are two processes, one runs main1() and the other runs main2(). Two processes are running simultaneously on uni-processor system. Besides, eth0 is a proprietory ethernet driver. IFF_ALLMULTI can be set on eth0 successfully most of

Re: Automatic module insert in boot time

2011-09-26 Thread Mulyadi Santosa
Hi Yacob... 2011/9/26 Yacob Hassidim : > > Hello everyone, > > I ask for help to insert/install module automatically in boot time. > > I use Ubuntu 11.04. > > I try to insert a module automatically in boot time. > > I added the name of my module (hello) to the file

Automatic module insert in boot time

2011-09-26 Thread Yacob Hassidim
Hello everyone, I ask for help to insert/install module automatically in boot time. I use Ubuntu 11.04. I try to insert a module automatically in boot time. I added the name of my module (hello) to the file /etc/

Re: Why do processes with higher priority to be allocated more timeslice?

2011-09-26 Thread Mulyadi Santosa
Hi :) On Mon, Sep 26, 2011 at 09:16, Parmenides wrote: > Hi, > >    It seems that Linux's scheduler tends to allocate longer timeslice > for processes with higher priority. "tends".yes, at least theoritically. but not really in every cases in reality >Actually, the CFS scheduler whi

Re: Hooking exec system call

2011-09-26 Thread rohan puri
On Mon, Sep 26, 2011 at 1:00 PM, Abhijit Pawar wrote: > On 09/26/2011 12:57 PM, rohan puri wrote: > > > > On Mon, Sep 26, 2011 at 12:29 PM, Abhijit Pawar wrote: > >> On 09/26/2011 12:26 PM, rohan puri wrote: >> >> >> >> On Mon, Sep 26, 2011 at 12:02 PM, Abhijit Pawar >> wrote: >> >>> On 09/2

Re: Hooking exec system call

2011-09-26 Thread Abhijit Pawar
On 09/26/2011 12:57 PM, rohan puri wrote: On Mon, Sep 26, 2011 at 12:29 PM, Abhijit Pawar mailto:apawar.li...@gmail.com>> wrote: On 09/26/2011 12:26 PM, rohan puri wrote: On Mon, Sep 26, 2011 at 12:02 PM, Abhijit Pawar mailto:apawar.li...@gmail.com>> wrote: On 09/23/2

Re: Hooking exec system call

2011-09-26 Thread rohan puri
On Mon, Sep 26, 2011 at 12:29 PM, Abhijit Pawar wrote: > On 09/26/2011 12:26 PM, rohan puri wrote: > > > > On Mon, Sep 26, 2011 at 12:02 PM, Abhijit Pawar wrote: > >> On 09/23/2011 03:11 PM, rohan puri wrote: >> >> >> >> On Fri, Sep 23, 2011 at 2:43 PM, Abhijit Pawar wrote: >> >>> On 09/23/20

Re: Hooking exec system call

2011-09-26 Thread Abhijit Pawar
On 09/26/2011 12:26 PM, rohan puri wrote: On Mon, Sep 26, 2011 at 12:02 PM, Abhijit Pawar mailto:apawar.li...@gmail.com>> wrote: On 09/23/2011 03:11 PM, rohan puri wrote: On Fri, Sep 23, 2011 at 2:43 PM, Abhijit Pawar mailto:apawar.li...@gmail.com>> wrote: On 09/23/20