Page 1 of 2
Xcode IOS Simulator on ZFS

Posted:
Sun May 03, 2015 2:03 am
by realfolkblues12
Hello. I have gotten tired of waiting for large programs to download from the net when I do a reinstall of my OS. To that end I wanted to start keeping my non system apps on a ZFS dataset. However when I have xcode on a zfs data set and attempt a IOS build and run the ios simulator freezes and the gui becomes unresponsive. Force quit does not work I have to power off the machine.
Please let me know if i can help with any logs ect. Thanks!
Re: Xcode IOS Simulator on ZFS

Posted:
Sun May 03, 2015 5:58 pm
by ilovezfs
Have you set a limit on your arc_max?
Re: Xcode IOS Simulator on ZFS

Posted:
Sun May 03, 2015 7:35 pm
by realfolkblues12
No I have not. Is that related?
Re: Xcode IOS Simulator on ZFS

Posted:
Sun May 03, 2015 9:02 pm
by ilovezfs
It could be if the machine is coming under significant memory pressure while you "attempt an iOS build and run the iOS simulator" and your arc max is too high. Of course, there is no way to know unless you actually try restricting arc max, and then see if the problem is still reproducible.
Please read the document "Memory Utilitzation.rtf" in the 1.3.1-r2 dmg in order to learn how to limit arc max.
Re: Xcode IOS Simulator on ZFS

Posted:
Sun May 03, 2015 11:36 pm
by realfolkblues12
Ok I set a arc max of 6 gigs (I have 20 total) same issue. I also had activity monitor open when trying and it did not show a issue with memory pressure.
Also I am testing with a blank single view app made from the default Xcode template.
Building OS X apps does not cause the issue. It's just a simulator issue.
While the other apps I had open continue to work terminal, activity monitor. I am unable to close them they will beach ball as soon as I attempt to quit.
Thanks for the help and hope I can be of use figuring out what's up
Re: Xcode IOS Simulator on ZFS

Posted:
Sun May 03, 2015 11:38 pm
by ilovezfs
Please try the new forum build:
viewtopic.php?f=20&t=2262
Re: Xcode IOS Simulator on ZFS

Posted:
Mon May 04, 2015 12:29 am
by realfolkblues12
Ok tested with the forum build same issue.
I did some more testing it seems that Xcode can be on a ZFS dataset just fine as long as my home folder is on HFS. so my original description was wrong sorry.
configurations that cause freezing.
Home folder on ZFS/ Xcode on ZFS.
Home folder on ZFS/ Xcode on HFS
Working coonfigs
Home folder on HFS/ Xcode wherever.
Re: Xcode IOS Simulator on ZFS

Posted:
Mon May 04, 2015 12:31 am
by ilovezfs
It sounds like it could be a permissions/ownership/ACLs/witchcraft issue. What procedure did you use to set up a home directory on ZFS? What sort of chown'ing/chmod'ing have you done on the home directory?
Re: Xcode IOS Simulator on ZFS

Posted:
Mon May 04, 2015 5:35 am
by realfolkblues12
I created the user using system preferences.
With terminal sudo rm -R /Users/Username
Sudo zfs create take/Username
zfs set mountpoint=/Users/Username tank/Username
Sudo chown -R Username:staff /Users/Username.
This basically creates a new user sets up a zfs data set owned by the new user at the correct location to take over home folder duty. As soon as the user logs in for the first time OSX will constitute the correct folders eg desktop docs Library. And set the permissions up for said folders.
Re: Xcode IOS Simulator on ZFS

Posted:
Mon May 04, 2015 5:39 am
by ilovezfs
That procedure should work all right.
Next time it hangs, see if you can run spindump from a preexisting ssh connection.