01-17-2009
Sorting in ramdisk
Hi,
I have sort command that sorts in ramdisk created by a script 'mktd' and later unmounted by script 'rmtd'. The platform is AIX.
# code
sudo -E mktd 44 # create ramdisk of size 44GB
sort ... -k1,1 -2,2 ... # sort a file using the ramdisk on keys 1 and 2
sudo -E rmtd # unmount ramdisk
The keys I am sorting are on the first and second column on a ~810 million record dataset.
The error I am getting is below. Is this a memory issue?
sort: 0653-655 Cannot open /apps/tmp/stm242374aaqxg
2009-01-17 09:17:29 EST: ERROR: Error in step sortfile at line 18: Command return code: 2
Thanks,
- CB
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
This may be a stupid question but I've noticed that there is quite a bit out there currently for a ramdisk on that Redmond company's OS. Is there a ramdisk made for Unix and if not, why? (6 Replies)
Discussion started by: keelba
6 Replies
2. Shell Programming and Scripting
Hi all,
I wanted to make a ramdisk for a opensolaris distro.
I have very little idea of how to create it?
can anyone pls help me out?
Is there any tutorial on creating it on the net???
Also can i make changes to the actual os itself by changing the scripts involved in ramdisk then use it to... (1 Reply)
Discussion started by: wrapster
1 Replies
3. Shell Programming and Scripting
I am trying to mount the ramdisk for sorting, and i get the message "ramdisk already defined." What exactly is /dev/ramdisk0 and is it safe to remove it?
# command
sudo -S mktd 60 <<EOF
initiate
EOF
# block of code for mktd
...
&& {
print "ramdisk already defined."
... (1 Reply)
Discussion started by: ChicagoBlues
1 Replies
4. Ubuntu
hi everybody!
i need your help!
i have some problems with "initial ramdisk" (initrd).
i did with instructions of the following link
Linux initial RAM disk (initrd) overview
but my initrd not run.
after loading, it stopped,and failure notice :
"ramdisk : compressed image found at block 0
no... (0 Replies)
Discussion started by: xikechamh
0 Replies
5. AIX
Hi,
Do you know what is the maximum size I can use to create a ramdisk on AIX 5.3? I m pretty sure i've seen somewhere i can use more than 2 Gb but I can't remember where. I need to do some recommandations for one of my customer and they'll need to create a ramdisk of 20 Gb. Can this be done?
... (1 Reply)
Discussion started by: cedric hanquez
1 Replies
6. UNIX for Advanced & Expert Users
Dear all,
I read some articles about initrd, but how to view this process in my computer :(?
Is there anyway to display to the screen or write to the log file? (3 Replies)
Discussion started by: Hannibal2010
3 Replies
pseudo(4) File Formats pseudo(4)
NAME
pseudo - configuration files for pseudo device drivers
DESCRIPTION
Pseudo devices are devices that are implemented entirely in software. Drivers for pseudo devices must provide driver configuration files to
inform the system of each pseudo device that should be created.
Configuration files for pseudo device drivers must identify the parent driver explicitly as pseudo, and must create an integer property
called instance which is unique to this entry in the configuration file.
Each entry in the configuration file creates a prototype devinfo node. Each node is assigned an instance number which is determined by the
value of the instance property. This property is only applicable to children of the pseudo parent, and is required since pseudo devices
have no hardware address from which to determine the instance number. See driver.conf(4) for further details of configuration file syntax.
EXAMPLES
Example 1: A sample configuration file.
Here is a configuration file called ramdisk.conf for a pseudo device driver that implements a RAM disk. This file creates two nodes called
"ramdisk". The first entry creates ramdisk node instance 0, and the second creates ramdisk node, instance 1, with the additional disk-size
property set to 512.
#
# Copyright (c) 1993, by Sun Microsystems, Inc.
#
#ident "@(#)ramdisk.conf 1.3 93/06/04 SMI"
name="ramdisk" parent="pseudo" instance=0;
name="ramdisk" parent="pseudo" instance=1 disk-size=512;
SEE ALSO
driver.conf(4), ddi_prop_op(9F)
Writing Device Drivers
SunOS 5.10 15 Jun 1993 pseudo(4)