sched_setaffinity: Invalid argument

461 views
Skip to first unread message

Ian Pan

unread,
Nov 7, 2014, 7:59:42 AM11/7/14
to snap...@googlegroups.com
Hi all,

When I run SNAP using snap single, I always run into this error:

sched_setaffinity: Invalid argument

Could anyone tell me what is the source of this error, and how I might be able to fix it?

Thank you.

Matei Zaharia

unread,
Nov 7, 2014, 12:14:58 PM11/7/14
to snap...@googlegroups.com
Did you compile SNAP yourself? It might be compiled on a different version of Linux than you have.

Matei

--
You received this message because you are subscribed to the Google Groups "SNAP Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snap-user+...@googlegroups.com.
To post to this group, send email to snap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/snap-user/8e403a37-a154-4e5d-a221-e12149185f58%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Bill Bolosky

unread,
Nov 7, 2014, 1:02:54 PM11/7/14
to snap...@googlegroups.com

What OS version are you using?  I’d like to repo it to see exactly what’s up.

 

You can safely ignore the warning.  SNAP likes to force its worker threads to not switch from core to core, which results in more efficient use of the processor, because the per-thread state doesn’t have to migrate.  This warning is saying that that binding failed for some reason.  Because it’s just an optimization, it won’t affect your results, though it may run a little (not a lot) slower.

 

You can also give the –b (dash dash b) command line option to turn off the (attempted) binding, which will make the warning go away.

 

--Bill

Ian Pan

unread,
Nov 7, 2014, 7:30:34 PM11/7/14
to snap...@googlegroups.com
The OS is CentOS 6.5.
Reply all
Reply to author
Forward
0 new messages