>   Currently I want do some core dump on network device. but I don't
 >   know how to do that.  As we know that during system dump, all thread
 >   freezed instead of specified file system's dump thread. system become
 >   single thread at this time. but seems TCP/IP stack is multi-thread
 >   program, if we want to dump core file to network storage through
 >   TCP/IP stack, how could we do that?
 >   
 >   I had checked nfs_dump() in opensolaris source code, it use KTLI API
 >   function to dump nfs file through UDP protocol, but can we use TCP
 >   KTLI API here instead? or can here we start kernel TCP socket to
 >   transfer core dump file here?

While we've had support for dumping over NFS in the past (using polling
rather than interrupts), I'm not sure how well it actually works.
Further, even if it does work, I'd argue it's at odds with the core
constraints associated with panicking the system, which is that the panic
operation should be as safe and reliable as possible.  That is, since the
system is already known to be irrecoverably damaged at panic time, it
seems dangerous to rely on the correct operation of large subsystems such
as the networking stack to write out the dump -- and one may compromise
the integrity of the dump (or worse) by doing so.

-- 
meem
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to