- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HP-UX 11.0: unsetting logical IPs speed problem
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-03-2001 02:12 AM
тАО07-03-2001 02:12 AM
HP-UX 11.0: unsetting logical IPs speed problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2001 09:35 AM
тАО07-03-2001 09:35 AM
Re: HP-UX 11.0: unsetting logical IPs speed problem
also, as I understand it, there were some perf enahncements in the handling of adding/removing aliases in the latest 11.X patches. you might also try 11i on a test system and see how much that might improve things.
i thought though that the biggest issue with logical IPs was not removing them, but adding them, and that closing sockets shoudl be reasonably fast, but opening them migh get slower as you had more open, so things do sound a bit reversed from my prior experience
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-03-2001 05:56 PM
тАО07-03-2001 05:56 PM
Re: HP-UX 11.0: unsetting logical IPs speed problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-04-2001 06:39 AM
тАО07-04-2001 06:39 AM
Re: HP-UX 11.0: unsetting logical IPs speed problem
I noticed you've posted the same question in multiple locations. Anyways since Rick already replied here, I'll do so too.
I imagine you've already done some work by using tools such as HP GLANCE and tusc (get from http://hp-ux.cs.utah.edu )? I know there are some kernel routine profiling tools we use inside HP on occasion to find out what routings the kernel is spending its time which is visibility beyond the system call level that might help if needed.
As for HPUX Kernel parameters, it appears you have not had the chance to go thru any of the HPUX docs on http://docs.hp.com , specifically the Whitepaper entitled "Configurable Kernel Parameters (HP-UX 11.0)". Take a good read there and also the ITRC Application Note UPERFKBAN00000726 is a good starting point too.
Hope this helps,
-> Brian Hackley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2001 09:24 AM
тАО07-05-2001 09:24 AM
Re: HP-UX 11.0: unsetting logical IPs speed problem
i doubt that nfile would be an issue for closing the sockets or removing the aliases. it would certainly come into play when you were creating the sockets, but the failure mode there would be that your call to socket() would fail, which presumeably is before you try to close the socket or remove the IP alias :)
it still seems awfully strange that you would have perf issues removing sockets and IPs and not adding them, especially the adding of IPs, but then it has been a little while since i've actually tried the IP's myself - when I did, it was an O(N^2) algorithm, but I though that delete was much lower.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2001 06:52 PM
тАО07-05-2001 06:52 PM
Re: HP-UX 11.0: unsetting logical IPs speed problem
clearing logical IPs is an OS job and we can also think that the OS plays a big factor in this problem... we cannot change the way the OS responds to our needs...
anyway, i can give youe the function we are using and i would be thankful if you can help us see its loopholes... this function unclears 40 logical IPs at a time... thanks in advance...
int SCOM_ifconfigunsetpage( devname_cp, ppa_i, msnum_i )
char *devname_cp;
int ppa_i;
int msnum_i;
{
int sd_i;
struct ifreq ifr_s;
struct sockaddr_in *sock_addr_sp;
int result_i;
int i_i;
int j_i;
/* create a socket */
sd_i = socket( AF_INET, SOCK_DGRAM, 0 );
if( sd_i < 0 ){
fprintf( stdout, "ifconfig socket creation for ms number %d
failed\n", msnum_i );
return( 1 );
}
for( i_i = msnum_i, j_i = 0; i_i < ( msnum_i + 40 ); i_i++, j_i++ ) {
/* construct the if data */
memset( &ifr_s, 0x00, sizeof( struct ifreq ) );
sock_addr_sp = ( struct sockaddr_in * )&( ifr_s.ifr_addr );
sprintf( ifr_s.ifr_name,"%s%d:%d", devname_cp, ppa_i, i_i );
/* set the if flags */
ifr_s.ifr_flags &= ~IFF_UP;
result_i = ioctl( sd_i, SIOCSIFFLAGS, &ifr_s );
if( result_i < 0 ) {
fprintf( stdout, "ifconfig flag setting for ms number %d
failed\n", i_i );
close( sd_i );
return( 1 );
} /* if */
/* set the ip address of the if to 0 */
ifr_s.ifr_addr.sa_family = AF_INET;
sock_addr_sp->sin_addr.s_addr = ( unsigned long )0;
result_i = ioctl( sd_i, SIOCSIFADDR, &ifr_s );
if( result_i < 0 ) {
fprintf( stdout, "ifconfig for ms number %d failed\n", i_i );
close( sd_i );
return( 1 );
} /* if */
} /* for */
close( sd_i );
return( 0 );
}