Re: how to implement Thread Local Storage (TLS) in kernel

Tech-Archive recommends: Speed Up your PC by fixing your registry



Lets see, there are a limited number of sockets ever opened, but thousands
of thread occur in a running system, uh your design has big flaws here.
Even if the above were not the case, how are you going to track this stuff
in the kernel?


--
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply



"Ben Kial" <benkial@xxxxxxxxxxx> wrote in message
news:1118871686.725736.181250@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>I need to keep some access history information for user threads (like
> if
> this thread has opened an TCP/IP socket and where). The solution I can
> think of is to create a TLS in kernel, and store the access history
> when a thread is requesting such service.
>
>
> Ben
>
> P.S. Pavel: by the way, I don't belive Linux kernel has a TLS
> infrastructure
> either. So, moving my development to Linux won't help :-)...
>


.



Relevant Pages

  • Re: [RFC][PATCH 0/9] Network receive deadlock prevention for NBD
    ... OpenSSH works with network and unix sockets in parallel, ... kernel services, and the continued well being of the kernel, not ... And even if you will cover all kernel-only network allocations, ... Feel free to implement any receiving policy inside _separated_ allocator ...
    (Linux-Kernel)
  • SOLVED Re: Solaris 2.8 & 2.9 kernel eating all my memory?
    ... The problem ended up being an app issue that was framing the kernel. ... and repeat (keeping the older sockets open). ... I think we will end up rewriting the load generation program to use ... > simultaneous connections without any problems. ...
    (comp.unix.solaris)
  • Re: [RFC] Revised CKRM release
    ... >>implemented as kernel modules, ... they don't take resources away from the group serving a "gold" customer. ... rates for groups of listening sockets formed using source ip/port. ... independent - the resource controllers (which are/will be patches over ...
    (Linux-Kernel)
  • Re: sending messages, user process <--> kernel module
    ... >> about implementing something similar to unix routing socket, ... > buffers kernel log output for syslogd to pick up asynchronously. ... > userspace cache managers. ... including UNIX domain sockets and TCP/IP sockets. ...
    (freebsd-hackers)
  • Re: [RFC][PATCH 0/9] Network receive deadlock prevention for NBD
    ... It does not matter how condition when not every user can get memory is ... OpenSSH works with network and unix sockets in parallel, ... OpenSSH or any other user-space program will never ever have the problem ... kernel services, and the continued well being of the kernel, not ...
    (Linux-Kernel)