- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sloooowww writing of a file after a sql command
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
Forums
Discussions
Discussions
Discussions
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
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
03-09-2004 08:03 AM
03-09-2004 08:03 AM
sloooowww writing of a file after a sql command
They ran this same thing on a N-class and got the same result. I dont think with that taken into account it is a UNIX problem, but an Oracle one with writing out the file.
They executed a sql query to count the rows of a DB which about 6 minutes, but when they actually wrote out the file, it only wrote at about 30214 bytes/sec, or 1.8 M/min, about 19 hours to complete the file.
They also ran the prealloc command on the same filesystem to create a file and it went at 100times the rate of the file creation via sql command to write out the new file.
The filesystem is not striped, is concatenated disks. It is a 70GB FS with 51% free. The host is a Keystone 16-way 24GB memory.
I also have the buffer redirected to the Frame...but that didnt make a difference.
delaylog,nodatainlog,largefiles,mincache=direct,convosync=direct
Sorry I dont know exactly what they did, maybe you can help me decipher it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 08:04 AM
03-09-2004 08:04 AM
Re: sloooowww writing of a file after a sql command
QUOTE:
At present, after spending a lot of time with Jim Zeng and Jack Shuler, we suspect the root cause of this specific problem to be a SQL coding-design issue. There is a function call that is being executed >5M times, and each execution involves a separate fetch. Each exec & each fetch takes .005 seconds. The sum is >13 hours.
This is the direction we are heading at this time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 08:08 AM
03-09-2004 08:08 AM
Re: sloooowww writing of a file after a sql command
Even for database files, especially if this is 11.11, I've found better performance using "cooked" files for Oracle rather than your "pseudo-raw" mount options assuming you have plenty of memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 08:11 AM
03-09-2004 08:11 AM
Re: sloooowww writing of a file after a sql command
Then think about defragmenting the database(oracle function) or the filesystem(OS Online JFS).
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 08:14 AM
03-09-2004 08:14 AM
Re: sloooowww writing of a file after a sql command
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 08:15 AM
03-09-2004 08:15 AM
Re: sloooowww writing of a file after a sql command
They saw this problem before I did that change. i will change it back to what it was originally. :D
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 02:20 PM
03-09-2004 02:20 PM
Re: sloooowww writing of a file after a sql command
Todd, you failed to indicate the number of records counted! Was it approx that 5 million the dba indicated? Well certaintly if you execute a query per row, then that will take a while. 19 (hours) times 3600 second divided by 5 million (rows) leaves you about 13 milliseconds per execution. (hmmm.... about the time 1 IO might take).
If in that time you also have to go through SQLnet from a (SQLplus?) client to the (oracle) slave and back, then well that sounds about right. Is each row results 'appended' to the output?
How do they loop over the data?
Can it be turned into a single looping query?
Good luck,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-09-2004 06:48 PM
03-09-2004 06:48 PM
Re: sloooowww writing of a file after a sql command
please let us have the actual SQL-code.
The COUNT function just scans the primary key, or any other unique index, whichever is the smallest in size. This is in general much smaller than the entire table.
If the SQL does some SORTs or GROUPs or aggregates, it might be, that the entire process does a lot more on the read-side than on the write-side.
If you have isolated the slow SQL-statement, please attach it. Please attach a "describe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-10-2004 01:24 AM
03-10-2004 01:24 AM
Re: sloooowww writing of a file after a sql command
I was just curious what could cause their dilemma and hoped to pick your brains here to see if I could offer them any assistance.
Thanks for your responses!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2004 03:53 AM
03-15-2004 03:53 AM