06-18-2007
Limame,
Don't you think it is important to tell us what you are using
to "open" a 4GB file?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
SunOS machinename 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-Enterprise-10000
I am gzipping a file over 2GB and get this error message:
Filename :Value too large for defined data type
Is this because the file is over 2GB? (1 Reply)
Discussion started by: dangral
1 Replies
2. Programming
Hi all,
Can anyone tell me a little about the datatype FILE, which represents stream. What does its structure look like, and in which header file is it defined and so on...
Ex :
FILE *fp ;
fp = fopen("filename", "w") ; (6 Replies)
Discussion started by: milhan
6 Replies
3. Shell Programming and Scripting
hi fndz.
Can you please help me with the code if I call a stored procedure from my shell script and stored procedure returns a cursor,
cursor output should be saved to a file (3 Replies)
Discussion started by: enigma_83
3 Replies
4. SCO
Hi all,
I have this problem in one of the SCO UNIXWare 7.1.4. We have an application which is working on hundreds of machines. When we try to install the same application on a new machine, the executable/binary gives the following error and exits...
"xxx startup failure: Value too large for... (1 Reply)
Discussion started by: chava01
1 Replies
5. Programming
i'm using a C program and running it on a linux server, i got 2 adressess of 2 variables, and 2 addresses of 2 chars, and compared it. and got the size of a int and the size of a char.
why is a size of a int (4 bytes) bigger then the size of a char (1 byte)?
also if i do &a-&b i get 1, but if i... (30 Replies)
Discussion started by: omega666
30 Replies
6. HP-UX
Hi,
I am trying to fetch sysname and nodename using struct utsname. I have two HP-UX servers on with 10 characters and other with 13 characters host name. For the first one I am getting truncated 8 characters as output but for the second one i am getting "Value too large to be stored in data type"... (1 Reply)
Discussion started by: shivarajbm
1 Replies
7. HP-UX
Hi All,
On HP Unix, 11.23 can following be checked ,
Processes which were consuming more
1)CPU
2)Memory
3)page faults
For particular Time Frame say Yesterday 7 Am to 7.30 Am
and , Yesterday Evening 19.00 Pm to 19.30 Pm
Please specify how.
whether we need to enable, some... (6 Replies)
Discussion started by: sidharthmellam
6 Replies
8. Shell Programming and Scripting
Greetings Experts,
As part of automating the sql generation, I have the source table name, target table name, join condition stored in a file join_conditions.txt which is a delimited file (I can edit the file if for any reason). The reason I needed to store is I have built SELECT list without... (5 Replies)
Discussion started by: chill3chee
5 Replies
9. AIX
root@test8:/config1>oslevel -s
5300-01-00-0000
root@test8:/config1>oslevel -r
5300-01
while moving a file sized 9GB i got this message
root@test8:/configapp>mv bkp_14JUN16_oraapp_2.tgz /oraapp
bkp_14JUN16_oraapp_2.tgz: Value too large to be stored in data type.
possibly need APAR... (2 Replies)
Discussion started by: filosophizer
2 Replies
LEARN ABOUT DEBIAN
sg_get_disk_io_stats
sg_get_disk_io_stats(3) Library Functions Manual sg_get_disk_io_stats(3)
NAME
sg_get_disk_io_stats, sg_get_disk_io_stats_diff - get disk io statistics
SYNOPSIS
#include <statgrab.h>
sg_disk_io_stats *sg_get_disk_io_stats(int *entries);
sg_disk_io_stats *sg_get_disk_io_stats_diff(int *entries);
DESCRIPTION
Both calls take a pointer to an int, entries, which is filled with the number of disks the machine has. This is needed to know how many
sg_disk_io_stats structures have been returned. A pointer is returned to the first sg_disk_io_stats.
sg_get_disk_io_stats returns the disk IO stored in the kernel which holds the amount of data transferred since bootup. On some platforms,
such as Solaris 7, this value is stored in a 32bit int, so wraps around when it reaches 4GB. Other platforms, such as Solaris 8, hold the
value in a 64bit int, which wraps somewhere near 17 million terabytes.
sg_get_disk_io_stats_diff is the same as sg_get_disk_io_stats except it will return the difference since the last call. So, for instance a
call to sg_get_disk_io_stats_diff is made, and called again 5 seconds later. Over that time, 2000 bytes of traffic were written and 10000
bytes read. write_bytes will store 2000 bytes, read_bytes will store 10000, and systime will store 5. This function copes with wrap
arounds by the O/S so should be seemless to use.
On Solaris libstatgrab will attempt to get the cXtXdXsX representation for the disk_name string. If it fails it will use a name like sd0.
On some systems programs calling libstatgrab will need elevated privileges to lookup some of the names. The mappings are built up when
sg_init is called.
RETURN VALUES
All diskio statistics return a pointer to a structure of type sg_disk_io_stats.
typedef struct{
char *disk_name;
long long read_bytes;
long long write_bytes;
time_t systime;
}sg_disk_io_stats;
disk_name
The name known to the operating system. (eg. on linux it might be hda)
read_bytes
The number of bytes the disk has read.
write_bytes
The number of bytes the disk has written.
systime
The time period over which read_bytes and write_bytes were transferred.
BUGS
On the very first call sg_get_disk_io_stats_diff will return the same as sg_get_disk_io_stats. After the first call it will always return
the difference.
On operating systems that hold only 32bits of data there is a problem if the values wrap twice. For example, on Solaris 7 if 9GB is trans-
ferred and the operating system wraps at 4GB, the sg_get_disk_io_stats_diff function will return 5GB.
SEE ALSO
statgrab(3)
WEBSITE
http://www.i-scream.org/libstatgrab/
i-scream $Date: 2005/04/25 11:25:45 $ sg_get_disk_io_stats(3)