Em Tue, Apr 07, 2015 at 09:23:46PM +0800, Yunlong Song escreveu:
> > The other 6 patches in these patch sets still need to be applied to make
> > other improvements
> > and bug fixes.
> >
>
> These bugs in 'perf sched replay' reproduce one after another in x86_64 (with
> many cores), and
>
On 2015/4/1 15:06, Yunlong Song wrote:
> On 2015/3/31 23:56, Arnaldo Carvalho de Melo wrote:
>> Em Tue, Mar 31, 2015 at 08:32:37AM -0600, David Ahern escreveu:
>>> On 3/31/15 7:46 AM, Yunlong Song wrote:
- BUG_ON(pid >= MAX_PID);
+ if (sched->pid_to_task == NULL) {
+ if
Em Tue, Apr 07, 2015 at 09:23:46PM +0800, Yunlong Song escreveu:
The other 6 patches in these patch sets still need to be applied to make
other improvements
and bug fixes.
These bugs in 'perf sched replay' reproduce one after another in x86_64 (with
many cores), and
really need
On 2015/4/1 15:06, Yunlong Song wrote:
On 2015/3/31 23:56, Arnaldo Carvalho de Melo wrote:
Em Tue, Mar 31, 2015 at 08:32:37AM -0600, David Ahern escreveu:
On 3/31/15 7:46 AM, Yunlong Song wrote:
- BUG_ON(pid = MAX_PID);
+ if (sched-pid_to_task == NULL) {
+ if
On 2015/3/31 22:32, David Ahern wrote:
> On 3/31/15 7:46 AM, Yunlong Song wrote:
>> diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
>> index c466104..20d887b 100644
>> --- a/tools/perf/builtin-sched.c
>> +++ b/tools/perf/builtin-sched.c
>> @@ -23,6 +23,7 @@
>> #include
>>
On 2015/3/31 23:56, Arnaldo Carvalho de Melo wrote:
> Em Tue, Mar 31, 2015 at 08:32:37AM -0600, David Ahern escreveu:
>> On 3/31/15 7:46 AM, Yunlong Song wrote:
>>> - BUG_ON(pid >= MAX_PID);
>>> + if (sched->pid_to_task == NULL) {
>>> + if (sysctl__read_int("kernel/pid_max", _max) <
On 2015/3/31 22:32, David Ahern wrote:
On 3/31/15 7:46 AM, Yunlong Song wrote:
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
index c466104..20d887b 100644
--- a/tools/perf/builtin-sched.c
+++ b/tools/perf/builtin-sched.c
@@ -23,6 +23,7 @@
#include semaphore.h
On 2015/3/31 23:56, Arnaldo Carvalho de Melo wrote:
Em Tue, Mar 31, 2015 at 08:32:37AM -0600, David Ahern escreveu:
On 3/31/15 7:46 AM, Yunlong Song wrote:
- BUG_ON(pid = MAX_PID);
+ if (sched-pid_to_task == NULL) {
+ if (sysctl__read_int(kernel/pid_max, pid_max) 0)
+
Em Tue, Mar 31, 2015 at 04:26:04PM -0600, David Ahern escreveu:
> On 3/31/15 2:25 PM, Arnaldo Carvalho de Melo wrote:
> >Humm, we already have an rb_tree for each task, its called
> >machine->threads, and it has struct thread instances, that in turn have
> >a ->priv point, can't it be used here?
On 3/31/15 2:25 PM, Arnaldo Carvalho de Melo wrote:
Humm, we already have an rb_tree for each task, its called
machine->threads, and it has struct thread instances, that in turn have
a ->priv point, can't it be used here?
I think that would require a lot of churn to the existing code. The
Em Tue, Mar 31, 2015 at 08:32:37AM -0600, David Ahern escreveu:
> On 3/31/15 7:46 AM, Yunlong Song wrote:
> >diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
> >index c466104..20d887b 100644
> >--- a/tools/perf/builtin-sched.c
> >+++ b/tools/perf/builtin-sched.c
> >@@ -23,6
Em Tue, Mar 31, 2015 at 08:32:37AM -0600, David Ahern escreveu:
> On 3/31/15 7:46 AM, Yunlong Song wrote:
> >-BUG_ON(pid >= MAX_PID);
> >+if (sched->pid_to_task == NULL) {
> >+if (sysctl__read_int("kernel/pid_max", _max) < 0)
> >+pid_max = MAX_PID;
> >+
On 3/31/15 7:46 AM, Yunlong Song wrote:
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
index c466104..20d887b 100644
--- a/tools/perf/builtin-sched.c
+++ b/tools/perf/builtin-sched.c
@@ -23,6 +23,7 @@
#include
#include
#include
+#include
#define PR_SET_NAME
The current memory allocation of struct task_desc *pid_to_task[MAX_PID]
is in a permanent and preset way, and it has two problems:
Problem 1: If the pid_max, which is the max number of pids in the system,
is much smaller than MAX_PID (1024*1000), then it causes a waste of stack
memory. This may
The current memory allocation of struct task_desc *pid_to_task[MAX_PID]
is in a permanent and preset way, and it has two problems:
Problem 1: If the pid_max, which is the max number of pids in the system,
is much smaller than MAX_PID (1024*1000), then it causes a waste of stack
memory. This may
Em Tue, Mar 31, 2015 at 08:32:37AM -0600, David Ahern escreveu:
On 3/31/15 7:46 AM, Yunlong Song wrote:
-BUG_ON(pid = MAX_PID);
+if (sched-pid_to_task == NULL) {
+if (sysctl__read_int(kernel/pid_max, pid_max) 0)
+pid_max = MAX_PID;
+
Em Tue, Mar 31, 2015 at 08:32:37AM -0600, David Ahern escreveu:
On 3/31/15 7:46 AM, Yunlong Song wrote:
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
index c466104..20d887b 100644
--- a/tools/perf/builtin-sched.c
+++ b/tools/perf/builtin-sched.c
@@ -23,6 +23,7 @@
On 3/31/15 7:46 AM, Yunlong Song wrote:
diff --git a/tools/perf/builtin-sched.c b/tools/perf/builtin-sched.c
index c466104..20d887b 100644
--- a/tools/perf/builtin-sched.c
+++ b/tools/perf/builtin-sched.c
@@ -23,6 +23,7 @@
#include semaphore.h
#include pthread.h
#include math.h
+#include
On 3/31/15 2:25 PM, Arnaldo Carvalho de Melo wrote:
Humm, we already have an rb_tree for each task, its called
machine-threads, and it has struct thread instances, that in turn have
a -priv point, can't it be used here?
I think that would require a lot of churn to the existing code. The
Em Tue, Mar 31, 2015 at 04:26:04PM -0600, David Ahern escreveu:
On 3/31/15 2:25 PM, Arnaldo Carvalho de Melo wrote:
Humm, we already have an rb_tree for each task, its called
machine-threads, and it has struct thread instances, that in turn have
a -priv point, can't it be used here?
I think
20 matches
Mail list logo