GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
NSSTEST(8) nsstest $PACKAGE_VERSION@ man page NSSTEST(8)

nsstest - test nsswitch (and nss_ndb) functionality

nsstest [options]action[arguments]

This manual page documents briefly the nsstest command.

nsstest is a tool that can be used to test and measure latency in nsswitch lookups (currently only for passwd & group databases). The normal (non ndb_xx) actions tests the whole chain so can be used to test the speed of other nsswitch backends.

Show summary of options.
Increase verbosity.
Expect failure (give error if not failed)
Validate returned data
Keep database(s) open (setpwent, setgrent)
Compare returned data
Buffer size [default: 1048576 bytes]
Timeout limit [default: 2 s]
Repeat test [default: 0 times]
Run in parallel [default: 0 (single-threaded)]

Test the various library calls (or ndb directly for the ndb_xxx actions). The argument is typically the user/group name or uid/gids needed.

$ nsstest getpwnam peter
Call results:

Calls: 38561
Time: 2.00 s
Time/call: 51.87 µs Test results:
Min: 47.68 µs/c
Avg: 51.87 µs/c
Max: 870.70 µs/c

$ nsstest -P 4 getgrnam_r employees
Call results:

Calls: 79659
Time: 2.00 s
Time/call: 25.16 µs Test results:
Min: 78.92 µs/c
Avg: 100.44 µs/c
Max: 2.03 ms/c

$ nsstest  -P10 -s -x ndb_getpwnam_r no-such-user
Call results:

Calls: 237570
Time: 2.01 s
Time/call: 8.45 µs Test results:
Min: 34.57 µs/c
Avg: 84.20 µs/c
Max: 1.01 ms/c

nss_ndb(8), makendb(8), nss_ndb.conf(5), nsswitch.conf(5), nsdispatch(3), https://github.com/ptrrkssn/nss_ndb

nss_ndb and tools was written by Peter Eriksson <pen@lysator.liu.se>.

13 Jun 2020 1.0.24

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.