[Libreoffice-bugs] [Bug 124478] New: Print number of file descriptors we have ...

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Apr 1 16:12:27 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=124478

            Bug ID: 124478
           Summary: Print number of file descriptors we have ...
           Product: LibreOffice Online
           Version: unspecified
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: michael.meeks at collabora.com

For very large Online instances we can be limited by the number of available
file-descriptors.

We can fetch that with:

http://man7.org/linux/man-pages/man2/setrlimit.2.html

getrlimit - with RLIMIT_NOFILE

For each client that connects - we accept a new file-descriptor, and for each
document we have another Kit process that we need to talk to down a file
descriptor - we also have a wakeup pipe that is 2 file descriptors per socket
poll.

So - we should divide this number by 4 to get a maximum number of documents
that we can open - and then take off a few - eg. 8 (ie. 32 fds) for the basic
console/output/and other polls we have around for things.

then we should print that number out in the logs at early startup - along with
the maximum-FD - since we print a lot of #<fd> numbers in the logs.

Thanks !

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190401/7677f6a6/attachment.html>


More information about the Libreoffice-bugs mailing list