Re: [Linux-ia64] How do I enable direct IOs with ia64 ?

From: Andreas Schwab <schwab_at_suse.de>
Date: 2002-08-29 00:42:45
Jacky Malcles <Jacky.Malcles@bull.net> writes:

|> If I run the following piece of code to an ia64 (azusa) I can see that
|> direct
|> io are not enabled, but please,
|> what do i have to do to have them running? 

Use getpagesize.

|> compil:
|> cc -O  -D_GNU_SOURCE voyons.c   -o voyons#include <stdio.h>
|> #include <stdlib.h>
|> #include <unistd.h>
|> #include <signal.h>
|> #include <string.h>
|> #include <sys/fcntl.h>
|> #include <errno.h>
|> 
|> #define BUFSIZE 8192

Page size is 16k by default on ia64, but can be as large as 64k.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Received on Wed Aug 28 07:42:53 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:10 EST