HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HPUX 11.11, Number of copy on write pages
Operating System - HP-UX
1829692
Members
7964
Online
109992
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
04-17-2002 08:46 AM
04-17-2002 08:46 AM
HPUX 11.11, Number of copy on write pages
The problem is with HP-UX 11.11.
I want to know the number of copy on write pages, this member (v_cwfaults) is in the structure vmmeter in the header file /usr/include/sys/vmmeter.h.
I wrote the following code to access it. I used cnt which is declared in vmmeter.h along
with the variables rate & sum but it is giving error in system call nlist(). Please help me out.
1 #include
2 #include
3 #include
4 #include
5 main()
6 {
7 struct nlist nl[2] = { { "cnt"} , {"NULL"} };
8 struct vmmeter cnt;
9 int fd;
10 long address;
11
12 if(( fd = open("/dev/kmem",O_RDONLY)) == -1 )
13 printf("\nERROR IN OPENING FILE /dev/kmem \n");
14
15 printf("fd is %d\n",fd);
16
17 if(( nlist("/stand/vmunix",nl)) == -1 )
18 printf("\nERROR IN nlist\n");
19
20 address = nl[0].n_value;
21 printf("\naddress is %ld\n",address);
22 printf("\nreturn value of lseek
%ld\n",lseek(fd,address,SEEK_SE
T));
23 if (read(fd,&cnt,sizeof (struct vmmeter)) == -1 );
24 printf("\nERROR IN read\n");
25
26 printf("The number of COW pages is :
%ld\n",cnt.v_cwfault);
29 }
Thank you,
sushaga
I want to know the number of copy on write pages, this member (v_cwfaults) is in the structure vmmeter in the header file /usr/include/sys/vmmeter.h.
I wrote the following code to access it. I used cnt which is declared in vmmeter.h along
with the variables rate & sum but it is giving error in system call nlist(). Please help me out.
1 #include
2 #include
3 #include
4 #include
5 main()
6 {
7 struct nlist nl[2] = { { "cnt"} , {"NULL"} };
8 struct vmmeter cnt;
9 int fd;
10 long address;
11
12 if(( fd = open("/dev/kmem",O_RDONLY)) == -1 )
13 printf("\nERROR IN OPENING FILE /dev/kmem \n");
14
15 printf("fd is %d\n",fd);
16
17 if(( nlist("/stand/vmunix",nl)) == -1 )
18 printf("\nERROR IN nlist\n");
19
20 address = nl[0].n_value;
21 printf("\naddress is %ld\n",address);
22 printf("\nreturn value of lseek
%ld\n",lseek(fd,address,SEEK_SE
T));
23 if (read(fd,&cnt,sizeof (struct vmmeter)) == -1 );
24 printf("\nERROR IN read\n");
25
26 printf("The number of COW pages is :
%ld\n",cnt.v_cwfault);
29 }
Thank you,
sushaga
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2002 09:19 AM
04-17-2002 09:19 AM
Re: HPUX 11.11, Number of copy on write pages
Try this thread on nlist & nlist64:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x987450011d20d6118ff40090279cd0f9,00.html
live free or die
harry
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x987450011d20d6118ff40090279cd0f9,00.html
live free or die
harry
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2002 07:57 PM
04-26-2002 07:57 PM
Re: HPUX 11.11, Number of copy on write pages
Thanks harry,
My code is running perfectly fine.
My code is running perfectly fine.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP