| Date | Tue, 31 Mar 2015 08:25:56 -0600 | From | David Ahern <> | Subject | Re: [PATCH 2/9] perf sched replay: Increase the MAX_PID value to fix assertion failure problem |
| |
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 a1893e8..c466104 100644 > --- a/tools/perf/builtin-sched.c > +++ b/tools/perf/builtin-sched.c > @@ -28,7 +28,7 @@ > #define MAX_CPUS 4096 > #define COMM_LEN 20 > #define SYM_LEN 129 > -#define MAX_PID 65536 > +#define MAX_PID 1024000 > > struct sched_atom;
# cat /proc/sys/kernel/pid_max 1048576
so your proposed change is still not high enough for what I need.
It would be best to make it dynamic, not static, with run time reallocations as needed.
|