Anzahl der offenen Dateien sehen?

  • Danke, das hat die Frage richtig beantwortet. Wie häufig war aber meine Frage ungenau ;)

    Ich suche die File Descriptors, und am liebsten möchte ich mit GDB oder Intruments rausbekommen, wer zum Teufel für die FDs verantwortlich ist.

    Gruss

    Alex
    The only thing that really worried me was the ether.
  • Und das geht nicht mit lsof?

    Wenn ich mir kurz die manpage anschaue, tauchen da alle gesuchten Begriffe auf:

    Quellcode

    1. a file access mode
    2. c process command name (all characters from proc or
    3. user structure)
    4. C file structure share count
    5. d file's device character code
    6. D file's major/minor device number (0x<hexadecimal>)
    7. f file descriptor
    8. F file structure address (0x<hexadecimal>)
    9. G file flaGs (0x<hexadecimal>; names if +fg follows)
    10. i file's inode number
    11. k link count
    12. l file's lock status
    13. L process login name
    14. m marker between repeated output
    15. n file name, comment, Internet address
    16. N node identifier (ox<hexadecimal>
    17. o file's offset (decimal)
    18. p process ID (always selected)
    19. g process group ID
    20. P protocol name
    21. r raw device number (0x<hexadecimal>)
    22. R parent process ID
    23. s file's size (decimal)
    24. S file's stream identification
    25. t file's type
    26. T TCP/TPI information, identified by prefixes (the
    27. a file access mode
    28. c process command name (all characters from proc or
    29. user structure)
    30. C file structure share count
    31. d file's device character code
    32. D file's major/minor device number (0x<hexadecimal>)
    33. f file descriptor
    34. F file structure address (0x<hexadecimal>)
    35. G file flaGs (0x<hexadecimal>; names if +fg follows)
    36. i file's inode number
    37. k link count
    38. l file's lock status
    39. L process login name
    40. m marker between repeated output
    41. n file name, comment, Internet address
    42. N node identifier (ox<hexadecimal>
    43. o file's offset (decimal)
    44. p process ID (always selected)
    45. g process group ID
    46. P protocol name
    47. r raw device number (0x<hexadecimal>)
    48. R parent process ID
    49. s file's size (decimal)
    50. S file's stream identification
    51. t file's type
    52. T TCP/TPI information, identified by prefixes (the
    53. u process user ID
    54. z Solaris 10 and higher zone name
    55. 0 use NUL field terminator character in place of NL
    56. 1-9 dialect-specific field identifiers (The output
    57. of -F? identifies the information to be found
    58. in dialect-specific fields.)
    Alles anzeigen


    Also lsof klinkt sich so tief in den Kernel ein, da würde es mich wundern, wenn es irgendeine Information nicht liefern könnte, die im Zusammenhang mit Dateien steht...
    Es gibt genau 10 Sorten von Menschen.
    Die eine kennt das binaere Zahlensystem, die andere nicht.