- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How does sort command work in HP UX. ?
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
тАО12-15-2010 07:07 AM
тАО12-15-2010 07:07 AM
How does sort command work in HP UX. ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2010 07:27 AM
тАО12-15-2010 07:27 AM
Re: How does sort command work in HP UX. ?
-y [kmem] The amount of main memory used by the sort can have a
large impact on its performance. If this option is
omitted, sort begins using a system default memory
size, and continues to use more space as needed. If
this option is presented with a value, kmem, sort
starts using that number of kilobytes of memory,
unless the administrative minimum or maximum is
violated, in which case the corresponding extremum
will be used. Thus, -y 0 is guaranteed to start with
minimum memory. By convention, -y (with no argument)
starts with maximum memory.
So it likely uses whatever ulimit values for data you have (segsize?). Unsure though.
But for heavy sorting needs - you should really look at products like Syncsort.
Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2010 07:33 AM
тАО12-15-2010 07:33 AM
Re: How does sort command work in HP UX. ?
If you are sorting a very big file, you may need a lot of RAM/swap *and* a lot of disk space for temporary files.
If the standard environment variable TMPDIR is defined and points to a valid directory, sort uses that directory for its temporary files.
For example, if you need to sort a really big file and have a lot of free disk space at /big/empty/filesystem, you might use this command before starting the sort:
export TMPDIR=/big/empty/filesystem
If TMPDIR is not defined, sort uses /var/tmp; this is the most common case. If /var/tmp is not accessible, sort uses /tmp instead.
(You could have found this information yourself by using the command "man sort" on your HP-UX system.)
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2010 01:43 AM
тАО12-16-2010 01:43 AM
Re: How does sort command work in HP UX. ?
"How does sort command work in HP UX. ?"
'Sort' is a very short word but a very large subject in computing.
'sorting a very big file' takes planning and will probably require at least one or more reboots, depending on your current configuration.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2010 05:23 AM
тАО12-16-2010 05:23 AM
Re: How does sort command work in HP UX. ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2010 05:24 AM
тАО12-16-2010 05:24 AM