sendfile(string path)
{
int length;
char buffer[10];
Hi,
I just need to get this clarified.
I already asked a similiar question but I think now the problem is different..
Im writing in C on eclipse ,linux machine.
I need to read the testfile and each time to try with different buffer size...
I know I need to run on the buffer several times if the size of the buffer is too small but im not sure how to do this...
this is my code ( when im running on buffer with size 67108864 im getting s
Hello,
In C, is it possible to serialize a buffer, and save the buffer in a file like in java ? and how ?
Thank you so much.
Hey everyone, I have a simple simple problem that is literally driving me insane.
Basically, I have a database of numbers seperated my spaces. I just took a segment of my code because I am soooo completely lost with the output!!
If the database is:
1 2 3 9 7 6 4 5 6 7
I'm writing a short program that's polling the buffer of a named pipe. To test it out, I'll log into 'nobody' and echo into the pipe. while it's hanging, I log in from a different user and run the program that reads the buffer. When it runs, the program returns nothing and the other user is logged out of the system.
The command shows the tcp receive buffer size in bytes.
$ cat /proc/sys/net/ipv4/tcp_rmem
4096 87380 4001344
where the three values signifies the min, default and max values respectively.
Then I tried to find the tcp window size using tcpdump command.
$ sudo tcpdump -n -i eth0 'tcp[tcpflags] & (tcp-syn|tcp-ack) == tcp-syn and port 80 and host google.com'
tcpdump: verbose output s
I am running httperf client on my m/c and after few seconds it is getting killed. The command is:
httperf --hog --client=0/1 --server=39.0.0.2 --port=80 --uri=/50kb --rate=20000 --send-buffer=4096 --recv-buffer=16384 --num-conns=6000000 --num-calls=1
Although I had done this test no. of times but never faced this error any time.
I was reading the design of unix OS by Maurice J bach and had a confusion.
Suppose a process requests for a buffer for disk block number 18. The kernel searches for a free buffer from the free list. Let the first buffer (say buffer for block number 5) in the free list be marked as delayed write.