- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Error with paralell sorts
Operating System - HP-UX
1820699
Members
2736
Online
109627
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
Discussions
Discussions
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
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
тАО06-28-2005 03:50 AM
тАО06-28-2005 03:50 AM
Hi all,
I made a script that is merging, sorting and then splitting files in 500000 files.
The merge is ok, but with the sort command, I've got this error message:
sort: A write error occurred while sorting
The sort extract is as below:
${SORT} -o ${OUTDIR}/${SDAY}/INTEC_${SDAY}sorted.txt ${OUTDIR}/${SDAY}/INTEC_${SDAY}.txt
\rm -fr ${OUTDIR}/${SDAY}/INTEC_${SDAY}.txt
The files are quite big, and I paralellise it for 30 processes ($SDAY is each days of the month).
It is working fine with one, two,three paralells, but with four, I've got the error message mentionned.
ulimit is :
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 392192
memory(kbytes) unlimited
coredump(blocks) 4194303
The mount point is 12% full, /tmp is not full.
Has someone already met this thing, or have an idea?
I am thinking on some kernel parameters or sort limitations????
Version
HP-UX Release 11i: November 2000
Thanks in advance for all your help
Regards
Jerome C
I made a script that is merging, sorting and then splitting files in 500000 files.
The merge is ok, but with the sort command, I've got this error message:
sort: A write error occurred while sorting
The sort extract is as below:
${SORT} -o ${OUTDIR}/${SDAY}/INTEC_${SDAY}sorted.txt ${OUTDIR}/${SDAY}/INTEC_${SDAY}.txt
\rm -fr ${OUTDIR}/${SDAY}/INTEC_${SDAY}.txt
The files are quite big, and I paralellise it for 30 processes ($SDAY is each days of the month).
It is working fine with one, two,three paralells, but with four, I've got the error message mentionned.
ulimit is :
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) 1048576
stack(kbytes) 392192
memory(kbytes) unlimited
coredump(blocks) 4194303
The mount point is 12% full, /tmp is not full.
Has someone already met this thing, or have an idea?
I am thinking on some kernel parameters or sort limitations????
Version
HP-UX Release 11i: November 2000
Thanks in advance for all your help
Regards
Jerome C
J@Y
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-28-2005 04:02 AM
тАО06-28-2005 04:02 AM
Solution
My best guess is that either a filesystem is filling up (/var/tmp or whatever your TMPDIR is defined to be) or your are attempting to write a 2GB or larger file on a filesystem without largefiles enabled. You need to do continuous df or bdf while the sort is running. Also, add something like this:
STAT=${?}
if [[ ${STAT} -ne 0 ]]
then
echo "Sort failed; status ${STAT}" >&2
fi
immediately after the sort command. The errno may be very telling about which limit you are hitting.
STAT=${?}
if [[ ${STAT} -ne 0 ]]
then
echo "Sort failed; status ${STAT}" >&2
fi
immediately after the sort command. The errno may be very telling about which limit you are hitting.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2005 06:40 AM
тАО06-30-2005 06:40 AM
Re: Error with paralell sorts
Hi all,
Thanks for your reply.
During some bdf during the script execution, I've seen /var going up to 100%, then crashing sort with the error.
Any more idea?
Thanks in advance
Jerome
Thanks for your reply.
During some bdf during the script execution, I've seen /var going up to 100%, then crashing sort with the error.
Any more idea?
Thanks in advance
Jerome
J@Y
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-30-2005 06:46 AM
тАО06-30-2005 06:46 AM
Re: Error with paralell sorts
Well that is exactly what I expected. What you need to do is enlarge /var/tmp (possibly by creating a separate filesystem for it) or
setting and exporting TMPDIR before lauching sort.
e.g.
export TMPDIR=/xxx/mybigfilesystem
sort ...
setting and exporting TMPDIR before lauching sort.
e.g.
export TMPDIR=/xxx/mybigfilesystem
sort ...
If it ain't broke, I can fix that.
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP