question about sys_call_table size
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
SU1ITyBhZGQgbmV3IHN5c2NhbGxzIGl0J3Mgbm90IGEgZ29vZCBpZGVhLCBhbmQgdGhlIG1haW4g cmVhc29uIGlzClBvcnRhYmlsaXR5LiBUaGUgUE9TSVggc3RhbmRhcmRzIGRlZmluZXMgYSBzZXQg b2Ygc3lzY2FsbHMgdG8Kb3BlcmF0aW5nIHN5c3RlbXMgYW5kIGEgbG90IG9mIG90aGVyIHRoaW5n cy4gUG9ydCBjb2RlIChsaWtlIGxpYmMpIHRvCmEgUE9TSVggc3lzdGVtIGlzIG11Y2ggbW9yZSBl YXN5IHRoYW4gcG9ydCB0byBhIG5vbi1QT1NJWCwgYW5kIHRoaXMgaXMKd2h5IHdlIGhhdmUgc29m dHdhcmVzIHJ1bm5pbmcgaW4gbWFueSBwbGF0Zm9ybXMgKHNwZWNpYWxseSBpbiBVbml4CnBsYXRm b3JtcywgbGlrZSBMaW51eCwgU29sYXJpcywgQlNELi4uKS4gT3RoZXIgcG9pbnQgaXMgY29tcGF0 aWJpbGl0eSwKaWYgTGludXggS2VybmVsIDIuNi4yNyBhZGQgYSBuZXcgc3lzY2FsbCB0byB0aGUg c3lzdGVtLCBzb2Z0d2FyZXMgdGhhdAp1c2UgdGhpcyBzeXNjYWxsIHdpbGwgbm90IHdvcmsgb24g b2xkZXIgdmVyc2lvbnMsIGltYWdpbmUgbm93IG90aGVyCm5ldyBzeXNjYWxsIGluIDIuNi4yNy40 IHJlbGVhc2UsIHNhbWUgdGhpbmcuLi4gc29mdHdhcmVzIHdpbGwg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FzCj4K
--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 10 lines · 陳國成
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?
Signature · 7 lines
Regards, Peter Teoh -- To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs