Thanks to visit codestin.com
Credit goes to github.com

Skip to content

rmdef takes a very long time to remove objects in xCAT DB when the DB is populated, nodeset offline is cause #2508

@whowutwut

Description

@whowutwut

Creating some dummy entries into xCAT, created 1000 node definitions very quickly...

[root@fs1 research92]# time mkdef c460c[0001-1000] groups=regEX_CORAL
1000 object definitions have been created or modified.

real	0m2.506s
user	0m0.256s
sys	0m0.005s

Removing it was another story. I tried to first use a wildcard noderange, and I thought xCAT hung and killed it....

root        616 142804  0 11:48 ?        00:00:00  \_ sshd: root@pts/5
root        626    616  0 11:48 pts/5    00:00:00  |   \_ -bash
root       2913    626  0 12:00 pts/5    00:00:00  |       \_ /usr/bin/perl /opt/xcat/bin/rmdef /c460c.*

[root@fs1 research92]# time rmdef /c460c.*
Killed

real	53m27.144s
user	0m0.385s
sys	0m0.021s

I think after the investigation, it's probably just that it was going to take a very long time to remove the definitions. DB is Postgres

Here's some investigation data....

[root@fs1 ~]# time rmdef c460c[0001-0010]
10 object definitions have been removed.

real	0m54.834s
user	0m0.256s
sys	0m0.015s

[root@fs1 ~]# time rmdef c460c[0011-0030]
20 object definitions have been removed.

real	1m48.741s
user	0m0.267s
sys	0m0.005s

Removing blocks of 100 (surprising after the first 100 was removed, the time actually increased...

[root@fs1 ~]# time rmdef c460c[0061-0160]
100 object definitions have been removed.

real	20m38.523s
user	0m0.313s
sys	0m0.014s
[root@fs1 ~]# time rmdef c460c[0161-0260]
100 object definitions have been removed.

real	34m36.380s
user	0m0.349s
sys	0m0.037s
[root@fs1 ~]# time rmdef c460c[0261-0360]
100 object definitions have been removed.

real	34m34.777s
user	0m0.374s
sys	0m0.005s

The good thing here is that noderm works a lot faster but it has an entry being printed out for each node removed. (Should consider making the output less verbose..)

[root@fs1 ~]# time mkdef c460c[0001-1000] groups="regEX_CORAL"
1000 object definitions have been created or modified.

real	0m2.508s
user	0m0.247s
sys	0m0.015s
[root@fs1 ~]# time noderm c460c[0001-1000] >> /dev/null 

real	0m24.958s
user	0m0.159s
sys	0m0.013s

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions