niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » SGI/IRIX » apps
Allocate non-cacheable memory question
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
gramos2000@gmail.com
*nix forums beginner


Joined: 28 Jun 2006
Posts: 7

PostPosted: Mon Jul 17, 2006 7:32 pm    Post subject: Re: Allocate non-cacheable memory question Reply with quote

Thanks Tony,

It turns out to be a hardware issue....but thanks for the time and
help.
Always appreciate it.


Tony 'Nicoya' Mantler wrote:
Quote:
In article <1153152437.194289.156610@i42g2000cwa.googlegroups.com>,
gramos2000@gmail.com wrote:

: Hi
: Anyone know how to allocate a non-cacheable memory in UNIX (IRIX 6.5 to
: be exact). I'm allocating some memory using malloc(), writing into it,
: but it seems to be getting some cached data somewhere.
: As always, appreciate any input.

SGI systems are cache-coherent, so that shouldn't be your problem. How exactly
are you reading and writing this memory? Perhaps you're missing some
"volatile"s, or require some locking around shared accesses? Is this memory area
aliased (accessed via more than one pointer in the same function)?

If you were allocating via mmap() I would suggest that you need some calls to
msync(), but that doesn't seem to be the case.


Cheers - Tony 'Nicoya' Mantler :)

--
Tony 'Nicoya' Mantler - Master of Code-fu
-- nicoya@ubb.ca -- http://www.ubb.ca/ --
Back to top
Tony 'Nicoya' Mantler
*nix forums Guru Wannabe


Joined: 02 Jul 2005
Posts: 139

PostPosted: Mon Jul 17, 2006 5:25 pm    Post subject: Re: Allocate non-cacheable memory question Reply with quote

In article <1153152437.194289.156610@i42g2000cwa.googlegroups.com>,
gramos2000@gmail.com wrote:

: Hi
: Anyone know how to allocate a non-cacheable memory in UNIX (IRIX 6.5 to
: be exact). I'm allocating some memory using malloc(), writing into it,
: but it seems to be getting some cached data somewhere.
: As always, appreciate any input.

SGI systems are cache-coherent, so that shouldn't be your problem. How exactly
are you reading and writing this memory? Perhaps you're missing some
"volatile"s, or require some locking around shared accesses? Is this memory area
aliased (accessed via more than one pointer in the same function)?

If you were allocating via mmap() I would suggest that you need some calls to
msync(), but that doesn't seem to be the case.


Cheers - Tony 'Nicoya' Mantler :)

--
Tony 'Nicoya' Mantler - Master of Code-fu
-- nicoya@ubb.ca -- http://www.ubb.ca/ --
Back to top
gramos2000@gmail.com
*nix forums beginner


Joined: 28 Jun 2006
Posts: 7

PostPosted: Mon Jul 17, 2006 4:07 pm    Post subject: Allocate non-cacheable memory question Reply with quote

Hi
Anyone know how to allocate a non-cacheable memory in UNIX (IRIX 6.5 to
be exact). I'm allocating some memory using malloc(), writing into it,
but it seems to be getting some cached data somewhere.
As always, appreciate any input.
Thanks.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Fri Nov 21, 2008 7:15 pm | All times are GMT
navigation Forum index » *nix » SGI/IRIX » apps
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Newbie question: How to forward a domain to a mailbox? leei Postfix 0 Fri Aug 24, 2007 4:55 pm
No new posts postfix out of memory error - please help metind Postfix 0 Mon Sep 11, 2006 1:54 am
No new posts configuration question for httpd Karl Wang Apache 1 Fri Jul 21, 2006 2:10 pm
No new posts Non IBM memory in p630 Ron AIX 0 Fri Jul 21, 2006 2:05 pm
No new posts nim problem/question Ron AIX 0 Fri Jul 21, 2006 1:57 pm

Internet Advertising | Debt Consolidation | Personal Loans | Debt Consolidation | Loan
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2262s ][ Queries: 20 (0.1503s) ][ GZIP on - Debug on ]