Re: Work queue questions

2012-09-24 Thread Deepawali Verma
Hi Tejun, I do not have ordering as requirement. I can use system work queue as well. what is max_active by default for system wq per cpu? Regards, Deepa On Mon, Sep 24, 2012 at 9:08 PM, Tejun Heo wrote: > Hello, > > On Mon, Sep 24, 2012 at 08:57:40PM +0100, Deepawali Verma wrote: &g

Re: Work queue questions

2012-09-24 Thread Deepawali Verma
. Regards, Deepa On Mon, Sep 24, 2012 at 7:10 PM, Tejun Heo wrote: > On Mon, Sep 24, 2012 at 05:56:10PM +0100, Deepawali Verma wrote: >> Hi, >> >> This is sample code snippet as I cannot post my project code. In >> reality here, this work handler is copying the big

Re: Work queue questions

2012-09-24 Thread Deepawali Verma
unning on a SMP(multicore) system?... >> >> On Mon, Sep 24, 2012 at 12:55 PM, Deepawali Verma >> wrote: >>> >>> Hi Tejun, >>> >>> Here are some code snippets from my device driver: >>> >>> #defind NUMBER_OF_SUBTASKS 3 >>>

Re: Work queue questions

2012-09-24 Thread Deepawali Verma
Hi Tejun, Here are some code snippets from my device driver: #defind NUMBER_OF_SUBTASKS 3 struct my_driver_object { struct workqueue_struct *sub_task_wq; struct work_struct sub_task_work; char my_obj_wq_name[80]; int task_id; }; struct my_driver_object obj[3];

Re: Work queue questions

2012-09-24 Thread Deepawali Verma
Hi Tejun, Here are some code snippets from my device driver: #defind NUMBER_OF_SUBTASKS 3 struct my_driver_object { struct workqueue_struct *sub_task_wq; struct work_struct sub_task_work; char my_obj_wq_name[80]; int task_id; }; struct my_driver_object obj[3];

Re: Work queue questions

2012-09-24 Thread Deepawali Verma
, 2012 at 12:55 PM, Deepawali Verma dverma...@gmail.com wrote: Hi Tejun, Here are some code snippets from my device driver: #defind NUMBER_OF_SUBTASKS 3 struct my_driver_object { struct workqueue_struct *sub_task_wq; struct work_struct sub_task_work; char

Re: Work queue questions

2012-09-24 Thread Deepawali Verma
. Regards, Deepa On Mon, Sep 24, 2012 at 7:10 PM, Tejun Heo t...@kernel.org wrote: On Mon, Sep 24, 2012 at 05:56:10PM +0100, Deepawali Verma wrote: Hi, This is sample code snippet as I cannot post my project code. In reality here, this work handler is copying the big chunks of data that code

Re: Work queue questions

2012-09-24 Thread Deepawali Verma
Hi Tejun, I do not have ordering as requirement. I can use system work queue as well. what is max_active by default for system wq per cpu? Regards, Deepa On Mon, Sep 24, 2012 at 9:08 PM, Tejun Heo t...@kernel.org wrote: Hello, On Mon, Sep 24, 2012 at 08:57:40PM +0100, Deepawali Verma wrote

Re: Work queue questions

2012-09-21 Thread Deepawali Verma
worker threads? Regards, Deepa On Fri, Sep 21, 2012 at 8:27 PM, Tejun Heo wrote: > On Fri, Sep 21, 2012 at 08:26:01PM +0100, Deepawali Verma wrote: >> kworker/u:1-21[000] 110.964895: task_event: MYTASKJOB2381 XStarted >> kworker/u:1-21[000] 110.964

Re: Work queue questions

2012-09-21 Thread Deepawali Verma
and so on. What I expected that it should start the three sub tasks in parallel, not one by one. Where is concurrency here? Regards, Deepa On Fri, Sep 21, 2012 at 7:35 PM, Tejun Heo wrote: > Hello, > > On Fri, Sep 21, 2012 at 07:30:21PM +0100, Deepawali Verma wrote: >> Actually

Re: Work queue questions

2012-09-21 Thread Deepawali Verma
Hi Tejun, Actually I want to make parallelization of one task into three tasks. Therefore I created three single threaded work queues means divide the task into three tasks. You are right that I can use one work queue as well. But when I am doing three times schedule on different work queues, I

Re: Work queue questions

2012-09-21 Thread Deepawali Verma
Hi Tejun, Actually I want to make parallelization of one task into three tasks. Therefore I created three single threaded work queues means divide the task into three tasks. You are right that I can use one work queue as well. But when I am doing three times schedule on different work queues, I

Re: Work queue questions

2012-09-21 Thread Deepawali Verma
and so on. What I expected that it should start the three sub tasks in parallel, not one by one. Where is concurrency here? Regards, Deepa On Fri, Sep 21, 2012 at 7:35 PM, Tejun Heo t...@kernel.org wrote: Hello, On Fri, Sep 21, 2012 at 07:30:21PM +0100, Deepawali Verma wrote: Actually I want

Re: Work queue questions

2012-09-21 Thread Deepawali Verma
worker threads? Regards, Deepa On Fri, Sep 21, 2012 at 8:27 PM, Tejun Heo t...@kernel.org wrote: On Fri, Sep 21, 2012 at 08:26:01PM +0100, Deepawali Verma wrote: kworker/u:1-21[000] 110.964895: task_event: MYTASKJOB2381 XStarted kworker/u:1-21[000] 110.964909: task_event