taseikyo@ubuntu:~/Desktop/osv/apps/my-pagerank-test$ lsMakefile module.py pagerank.c usr.manifest web-NotreDame.txt
taseikyo@ubuntu:~/Desktop/osv/apps/my-pagerank-test$ makecc -pie -o pagerank pagerank.c
taseikyo@ubuntu:~/Desktop/osv/apps/my-pagerank-test$ ll -htotal 21Mdrwxrwxr-x 2 taseikyo taseikyo 4.0K Jan 14 11:59 ./drwxrwxr-x 128 taseikyo taseikyo 4.0K Jan 14 11:51 ../-rw-rw-r-- 1 taseikyo taseikyo 110 Jan 14 11:51 Makefile-rw-rw-r-- 1 taseikyo taseikyo 60 Jan 13 11:26 module.py-rwxrwxr-x 1 taseikyo taseikyo 17K Jan 14 11:59 pagerank*-rw-rw-r-- 1 taseikyo taseikyo 5.6K Jan 14 11:51 pagerank.c-rw-rw-r-- 1 taseikyo taseikyo 85 Jan 14 11:53 usr.manifest-rw-rw-r-- 1 taseikyo taseikyo 21M Jan 14 11:54 web-NotreDame.txt
taseikyo@ubuntu:~/Desktop/osv/apps/my-pagerank-test$ ./pagerankGraph data:
Nodes: 325729, Edges: 1497134
Number of iteration to converge: 52
Final Pagerank values:[0.002066 , 0.000181 , ...]
Time spent: 0.896491 seconds.
taseikyo@ubuntu:~/Desktop/osv$ ./scripts/build image=my-pagerank-testtaseikyo@ubuntu:~/Desktop/osv$ ./scripts/run.pyOSv v0.54.0-71-g69a0ce39eth0: 192.168.122.15Booted up in 338.86 msCmdline: /pagerank
Graph data:
Nodes: 325729, Edges: 1497134
Fail to read data...
From: 6 To: 119
while (!feof(fp)) { fret = fscanf(fp, "%d%d", &fromnode, &tonode); if (fret == 0) { printf("Fail to read data...\n"); printf("\n From: %d To: %d\n",fromnode, tonode); return -1; } ...}
taseikyo@ubuntu:~/Desktop/osv$ ./scripts/build image=my-pagerank-testtaseikyo@ubuntu:~/Desktop/osv$ ./scripts/run.pyOSv v0.54.0-71-g69a0ce39eth0: 192.168.122.15Booted up in 356.44 msCmdline: /pagerank
Graph data:
Nodes: 4, Edges: 7
Number of iteration to converge: 41
Final Pagerank values:
[0.159913 , 0.144016 , 0.144016 , 0.082809 ]
Time spent: 0.693802 seconds.
When I run pagerank on Ubuntu, the code works fine. (the graph data is stored in web-NotreDame.txt, 21M)
When I use a small graph (4 nodes, 7 edges), it runs normally.
taseikyo@ubuntu:~/Desktop/osv$ ./scripts/build image=my-pagerank-testtaseikyo@ubuntu:~/Desktop/osv$ ./scripts/run.pyOSv v0.54.0-71-g69a0ce39eth0: 192.168.122.15Booted up in 356.44 msCmdline: /pagerankGraph data:Nodes: 4, Edges: 7Number of iteration to converge: 41Final Pagerank values:[0.159913 , 0.144016 , 0.144016 , 0.082809 ]Time spent: 0.693802 seconds.Is osv unable to read large files (bug?) I'll appreciate your help very much! : )
--
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/50f3a073-e364-484c-803e-570e0dd6530c%40googlegroups.com.
Graph data:
Nodes: 325729, Edges: 1497134
fret: 1position: 1025next char:
--When I use a small graph (4 nodes, 7 edges), it runs normally.
taseikyo@ubuntu:~/Desktop/osv$ ./scripts/build image=my-pagerank-testtaseikyo@ubuntu:~/Desktop/osv$ ./scripts/run.pyOSv v0.54.0-71-g69a0ce39eth0: 192.168.122.15Booted up in 356.44 msCmdline: /pagerankGraph data:Nodes: 4, Edges: 7Number of iteration to converge: 41Final Pagerank values:[0.159913 , 0.144016 , 0.144016 , 0.082809 ]Time spent: 0.693802 seconds.Is osv unable to read large files (bug?) I'll appreciate your help very much! : )
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv...@googlegroups.com.
----When I use a small graph (4 nodes, 7 edges), it runs normally.
taseikyo@ubuntu:~/Desktop/osv$ ./scripts/build image=my-pagerank-testtaseikyo@ubuntu:~/Desktop/osv$ ./scripts/run.pyOSv v0.54.0-71-g69a0ce39eth0: 192.168.122.15Booted up in 356.44 msCmdline: /pagerankGraph data:Nodes: 4, Edges: 7Number of iteration to converge: 41Final Pagerank values:[0.159913 , 0.144016 , 0.144016 , 0.082809 ]Time spent: 0.693802 seconds.Is osv unable to read large files (bug?) I'll appreciate your help very much! : )
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/50f3a073-e364-484c-803e-570e0dd6530c%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/ae3d8e59-bb13-40a4-bdd0-b03ec89b9ff3%40googlegroups.com.
----When I use a small graph (4 nodes, 7 edges), it runs normally.
taseikyo@ubuntu:~/Desktop/osv$ ./scripts/build image=my-pagerank-testtaseikyo@ubuntu:~/Desktop/osv$ ./scripts/run.pyOSv v0.54.0-71-g69a0ce39eth0: 192.168.122.15Booted up in 356.44 msCmdline: /pagerankGraph data:Nodes: 4, Edges: 7Number of iteration to converge: 41Final Pagerank values:[0.159913 , 0.144016 , 0.144016 , 0.082809 ]Time spent: 0.693802 seconds.Is osv unable to read large files (bug?) I'll appreciate your help very much! : )
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/50f3a073-e364-484c-803e-570e0dd6530c%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/ae3d8e59-bb13-40a4-bdd0-b03ec89b9ff3%40googlegroups.com.
On Tuesday, January 14, 2020 at 4:45:27 PM UTC+8, Nadav Har'El wrote:Interesting. Smells like a serious stdio bug that needs to be debugged :-(I think it's not a coincidence that position is 1025, with stdio's BUFSIZ=1024.Just as a completely wild guess, can you please try if the following patch to libc/internal/shgetc.c helps?@@ -22,5 +22,6 @@
else
f->shend = f->rend;
if (f->rend) f->shcnt += f->rend - f->rpos + 1;
+ if (f->rpos[-1] != c) f->rpos[-1] = c;
return c;
}Yeah, the patch is helpful! Thanks! : )
------When I use a small graph (4 nodes, 7 edges), it runs normally.
taseikyo@ubuntu:~/Desktop/osv$ ./scripts/build image=my-pagerank-testtaseikyo@ubuntu:~/Desktop/osv$ ./scripts/run.pyOSv v0.54.0-71-g69a0ce39eth0: 192.168.122.15Booted up in 356.44 msCmdline: /pagerankGraph data:Nodes: 4, Edges: 7Number of iteration to converge: 41Final Pagerank values:[0.159913 , 0.144016 , 0.144016 , 0.082809 ]Time spent: 0.693802 seconds.Is osv unable to read large files (bug?) I'll appreciate your help very much! : )
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/50f3a073-e364-484c-803e-570e0dd6530c%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/ae3d8e59-bb13-40a4-bdd0-b03ec89b9ff3%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/9e83516e-d25f-4409-a15d-a0a59871978d%40googlegroups.com.