- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: UBC pages 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-29-2004 08:54 PM
тАО07-29-2004 08:54 PM
UBC pages problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2004 10:27 PM
тАО07-29-2004 10:27 PM
Re: UBC pages problem
Now we start guessing the version of your os ;-)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2004 01:49 PM
тАО08-01-2004 01:49 PM
Re: UBC pages problem
What good would that do?
The damage (if any) is already done.
All you would do is release potentially usefull data by emptyness. And if anything, you'd tell the system to flush out what little older, more usefull usefulldata might be left, because that dd stuff is recent and will be removed last.
"our memory is almst used to zero by UBC buffer. "
And what is the problem with that?
Now I admit that is is unlikely you'll see a quick re-use of the dd data stream, and while filling up it may well have pushed out what was really more valuable (but the system can not look in the future!).
But, to anwer your question check out: sysconfig -q vm | grep ubc
To release the ubc memory (assuming a relatively decend Tru64 version) just temporarely set ubc_max way down, and back up again a little later.
To prevent 'bad citizen' from poluting the cache with large amounts of read-once data, verify settings (and definitions!) for specifically vm_ubcseqstartpercent, vm_ubcseqpercent but check the rest too.
Good luck!
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2005 08:11 PM
тАО05-31-2005 08:11 PM
Re: UBC pages problem
Nobody here mentioned ubc_borrowpercent, but this is the important kernel parameter.
Man page tells:
Percentage of memory above which the UBC is only borrowing memory from
the virtual memory subsystem. Paging does not occur until the UBC has
returned all its borrowed pages.
If ubc_borrowpercent is minimum (ubc_minpercent=0) ubc can treated like free memory. Unfortunatly I get other results
if I test it with dd and a simple memeater.
Borrowed UBC is not freed, instead UBC tries to grow on low memory condition (how its defined exactly?) and paging
happens. Whether I am completely wrong or system is buggy. No other operating system I know behaves like Tru64 (*sigh*).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 02:55 AM
тАО06-01-2005 02:55 AM
Re: UBC pages problem
Did lowering ubc-max not do the job?
(I guess not, considering the '1 point' :-)
Supposedly dd-ing a raw device into a file (through compress I hope!) creates v ery large single files.
Tru64 will aggressively try to cache those, but that is possibly (probably!) a waste of time and memory.
Did you since check out your settings for vm - vm_ubcseqstartpercent and vm - vm_ubcseqpercent as requested?
Check with: sysconfig -q vm | grep seq
For definitions check: man sys_attrs_vm
With the large default ubc-max those defaults are big (50%, 10%). You may want to trim those way down on your system.
For further help, please specify the OS version/patch level.
Also, please indicate why you think 'releasing ubc pages' is goodness.
And... consider a 'memeater' program like Joerg mentions to force out pages.
Just malloc a bunch and touch each page in a loop. I'll inluce a silly version below that uses shmget instead of malloc (in case you have gh to deal with).
hth,
Hein
#include
#include
#include
#include
main(int argc,char *argv[])
{
int shmid, stat=0, size, stride;
char *maddr, *px;
char usage[] = "Usage: %s MB [command like sleep or ipcs -m] \n";
if (argc < 2) printf(usage, argv[0]), (void) exit(1);
size = 1024*1024*atoi(argv[1]);
shmid = shmget( IPC_PRIVATE, size, 0);
maddr = shmat (shmid, 0, 0);
printf ("shm id = %d, address= %ld %lX\n", shmid, maddr, maddr);
if ((int) maddr != -1) {
stride = getpagesize();
for ( px = maddr; px < (maddr + size); px += stride ) {
*(int *) px = 0;
}
if (argc > 2) system (argv[2]);
printf ("Deleting %d.\n", shmid);
stat = shmctl(shmid, IPC_RMID, NULL);
}
return (stat);
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2005 03:19 AM
тАО06-01-2005 03:19 AM
Re: UBC pages problem
If you still monitor this forum, can you tell us, what the "problem" is?
Is it just the fact that top shows you that
no memory is left, or did you got performance problems (I mean paging, growing swap etc.).
Especially if you have the second case it
would be very helpful for me to know about.
Regards.