Xcode IOS Simulator on ZFS

All your general support questions for OpenZFS on OS X.

Xcode IOS Simulator on ZFS

Postby realfolkblues12 » Sun May 03, 2015 2:03 am

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!
realfolkblues12
 
Posts: 34
Joined: Thu Feb 12, 2015 10:41 pm

Re: Xcode IOS Simulator on ZFS

Postby ilovezfs » Sun May 03, 2015 5:58 pm

Have you set a limit on your arc_max?
ilovezfs
 
Posts: 232
Joined: Thu Mar 06, 2014 7:58 am

Re: Xcode IOS Simulator on ZFS

Postby realfolkblues12 » Sun May 03, 2015 7:35 pm

No I have not. Is that related?
realfolkblues12
 
Posts: 34
Joined: Thu Feb 12, 2015 10:41 pm

Re: Xcode IOS Simulator on ZFS

Postby ilovezfs » Sun May 03, 2015 9:02 pm

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.
ilovezfs
 
Posts: 232
Joined: Thu Mar 06, 2014 7:58 am

Re: Xcode IOS Simulator on ZFS

Postby realfolkblues12 » Sun May 03, 2015 11:36 pm

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
realfolkblues12
 
Posts: 34
Joined: Thu Feb 12, 2015 10:41 pm

Re: Xcode IOS Simulator on ZFS

Postby ilovezfs » Sun May 03, 2015 11:38 pm

Please try the new forum build:
viewtopic.php?f=20&t=2262
ilovezfs
 
Posts: 232
Joined: Thu Mar 06, 2014 7:58 am

Re: Xcode IOS Simulator on ZFS

Postby realfolkblues12 » Mon May 04, 2015 12:29 am

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.
realfolkblues12
 
Posts: 34
Joined: Thu Feb 12, 2015 10:41 pm

Re: Xcode IOS Simulator on ZFS

Postby ilovezfs » Mon May 04, 2015 12:31 am

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?
ilovezfs
 
Posts: 232
Joined: Thu Mar 06, 2014 7:58 am

Re: Xcode IOS Simulator on ZFS

Postby realfolkblues12 » Mon May 04, 2015 5:35 am

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.
realfolkblues12
 
Posts: 34
Joined: Thu Feb 12, 2015 10:41 pm

Re: Xcode IOS Simulator on ZFS

Postby ilovezfs » Mon May 04, 2015 5:39 am

That procedure should work all right.

Next time it hangs, see if you can run spindump from a preexisting ssh connection.
ilovezfs
 
Posts: 232
Joined: Thu Mar 06, 2014 7:58 am

Next

Return to General Help

Who is online

Users browsing this forum: No registered users and 27 guests