Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2005 11:33 PM
тАО07-18-2005 11:33 PM
kmtune give the maximum and dmesg give info if the kthread is full.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-18-2005 11:47 PM
тАО07-18-2005 11:47 PM
SolutionPaste in the following:
#include
#include
#include
#include
int main()
{
struct pst_dynamic dyn;
int error;
if ( pstat_getdynamic( &dyn, sizeof(dyn), 1, 0) == 1 )
{
printf("Thread usage: %d of %d\n", dyn.psd_numkthreadsallocd,
dyn.psd_maxkthreads);
printf("Proc usage: %d of %d\n", dyn.psd_numprocsallocd,
dyn.psd_maxprocs);
}
else
perror("pstat_getdynamic:");
}
Press followed by Ctrl D to close the file.
# cc /tmp/nkthreads.c -o /tmp/nkthreads # Compile and name executable
nkthreads
# /tmp/nkthreads #Execute it
Sample output ....
Thread usage: 302 of 6000
Proc usage: 135 of 2048
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 05:34 PM
тАО07-19-2005 05:34 PM
Re: nkthread
cpp: "/tmp/nkthreads.c", line 1: error 4034: Bad syntax for #include directive.
cpp: "/tmp/nkthreads.c", line 2: error 4034: Bad syntax for #include directive.
cpp: "/tmp/nkthreads.c", line 3: error 4034: Bad syntax for #include directive.
cpp: "/tmp/nkthreads.c", line 4: error 4034: Bad syntax for #include directive.
could you supplie me with the includes.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 09:31 PM
тАО07-19-2005 09:31 PM
Re: nkthread
At 11.23 use kcweb and kcusage.
# kcusage -l nkthread
Parameter: nkthread
Usage: 361
Setting: 8416
Percentage: 4.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 10:58 PM
тАО07-19-2005 10:58 PM
Re: nkthread
#include
#include
see man pstat ... that said I'm haivng problems myself getting it to work now ...
appologies a bit busy at present.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 11:41 PM
тАО07-19-2005 11:41 PM
Re: nkthread
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 03:33 AM
тАО07-20-2005 03:33 AM
Re: nkthread
Drop me an email tomorrow morning ... alex_glennie@hp.com.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 07:57 PM
тАО09-13-2005 07:57 PM
Re: nkthread
cpp: "/tmp/nkthreads.c", line 1: error 4034: Bad syntax for #include directive.
cpp: "/tmp/nkthreads.c", line 2: error 4034: Bad syntax for #include directive.
cpp: "/tmp/nkthreads.c", line 3: error 4034: Bad syntax for #include directive.
cpp: "/tmp/nkthreads.c", line 4: error 4034: Bad syntax for #include directive.
Any possible help?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 08:05 PM
тАО09-13-2005 08:05 PM
Re: nkthread
Copy the file to say /tmp and do a chmod 755 /tmp/nkthreads and the run it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-13-2005 08:10 PM
тАО09-13-2005 08:10 PM
Re: nkthread
cc /tmp/nkthreads.c -o /tmp/nkthreads
or drop me a mail and i will send the compiled file: jto@telia.dk