question about sys_call_table size

question about sys_call_table size

am 12.11.2008 02:49:02 von gcchen.org

Hi..
I have two questions:

1. Does anyone ever encounter a problem that must be solved by adding
new system calls. If yes, please briefly describe your problem.

2. If I add thousands of new system calls (say 2000) in linux kernel
and add these new system calls into sys_call_table, will there be any
stability or performance issues(or other concerns) on this new kernel?
Thanks~~~

gcchen
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: question about sys_call_table size

am 15.11.2008 01:52:49 von rene

SU1ITyBhZGQgbmV3IHN5c2NhbGxzIGl0J3Mgbm90IGEgZ29vZCBpZGVhLCBh bmQgdGhlIG1haW4g
cmVhc29uIGlzClBvcnRhYmlsaXR5LiBUaGUgUE9TSVggc3RhbmRhcmRzIGRl ZmluZXMgYSBzZXQg
b2Ygc3lzY2FsbHMgdG8Kb3BlcmF0aW5nIHN5c3RlbXMgYW5kIGEgbG90IG9m IG90aGVyIHRoaW5n
cy4gUG9ydCBjb2RlIChsaWtlIGxpYmMpIHRvCmEgUE9TSVggc3lzdGVtIGlz IG11Y2ggbW9yZSBl
YXN5IHRoYW4gcG9ydCB0byBhIG5vbi1QT1NJWCwgYW5kIHRoaXMgaXMKd2h5 IHdlIGhhdmUgc29m
dHdhcmVzIHJ1bm5pbmcgaW4gbWFueSBwbGF0Zm9ybXMgKHNwZWNpYWxseSBp biBVbml4CnBsYXRm
b3JtcywgbGlrZSBMaW51eCwgU29sYXJpcywgQlNELi4uKS4gT3RoZXIgcG9p bnQgaXMgY29tcGF0
aWJpbGl0eSwKaWYgTGludXggS2VybmVsIDIuNi4yNyBhZGQgYSBuZXcgc3lz Y2FsbCB0byB0aGUg
c3lzdGVtLCBzb2Z0d2FyZXMgdGhhdAp1c2UgdGhpcyBzeXNjYWxsIHdpbGwg bm90IHdvcmsgb24g
b2xkZXIgdmVyc2lvbnMsIGltYWdpbmUgbm93I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VsLm9yZy9tYWpvcmRvbW8taW5mby5odG1sCj4gUGxl YXNlIHJlYWQgdGhl
IEZBUSBhdCBodHRwOi8vd3d3LmxpbnV4LWxlYXJuLm9yZy9mYXFzCj4K
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

Re: question about sys_call_table size

am 15.11.2008 05:24:51 von Peter Teoh

On Wed, Nov 12, 2008 at 9:49 AM, 陳國成 wrote:
> Hi..
> I have two questions:
>
> 1. Does anyone ever encounter a problem that must be solved by adding
> new system calls. If yes, please briefly describe your problem.
>
> 2. If I add thousands of new system calls (say 2000) in linux kernel
> and add these new system calls into sys_call_table, will there be any
> stability or performance issues(or other concerns) on this new kernel?
> Thanks~~~

should not be a problem....but u will be overwhelmed with context
switching all the time......as every tasks is switched between
userspace/kernelspace via system call.

u will have a crawling system...unless u hardly used any of the
syscall, or having multicore CPUs, or employ some heuristics to delay
the processing of the syscalls (just like Xen), so as to combine and
execute all of them at the same time. this is also the reason for
the motivation behind asynchronous system call....check out
kernelnewbies project site.

am i correct?

--
Regards,
Peter Teoh
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs